Updated 3.1 User Scripts (markdown)

Thorin-Oakenpants 2017-03-15 07:03:38 +13:00
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}; var _window={name:window.name};
Object.defineProperty(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 return _window.name;
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 '';
}
} }
else
{
if(_window.name!='')
{
console.warn('Intercepted read access to window.name "'+_window.name+'" from '+window.location);
}
return '';
}
}
}); });
``` ```