mirror of
https://github.com/arkenfox/user.js.git
synced 2024-11-22 10:31:40 +01:00
Updated 3.1 User Scripts (markdown)
parent
1df0415ce2
commit
76d0ee990f
@ -42,22 +42,22 @@ You can test it at [JoDonym](http://ip-check.info/?lang=en)
|
||||
|
||||
var _window={name:window.name};
|
||||
Object.defineProperty(window,'name',{
|
||||
get:function()
|
||||
get:function()
|
||||
{
|
||||
//No CAPTCHA reCAPTCHA
|
||||
if(/^https:\/\/www\.google\.com\/recaptcha\/api2\/(?:anchor|frame)\?.+$/.test(window.location.href)&&/^I[0-1]_[1-9][0-9]+$/.test(_window.name))
|
||||
{
|
||||
//No CAPTCHA reCAPTCHA
|
||||
if(/^https:\/\/www\.google\.com\/recaptcha\/api2\/(?:anchor|frame)\?.+$/.test(window.location.href)&&/^I[0-1]_[1-9][0-9]+$/.test(_window.name))
|
||||
{
|
||||
return _window.name;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(_window.name!='')
|
||||
{
|
||||
console.warn('Intercepted read access to window.name "'+_window.name+'" from '+window.location);
|
||||
}
|
||||
return '';
|
||||
}
|
||||
return _window.name;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(_window.name!='')
|
||||
{
|
||||
console.warn('Intercepted read access to window.name "'+_window.name+'" from '+window.location);
|
||||
}
|
||||
return '';
|
||||
}
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user