From 76d0ee990fbdb61355cc8838217b8806f1525a7d Mon Sep 17 00:00:00 2001 From: Thorin-Oakenpants Date: Wed, 15 Mar 2017 07:03:38 +1300 Subject: [PATCH] Updated 3.1 User Scripts (markdown) --- 3.1-User-Scripts.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/3.1-User-Scripts.md b/3.1-User-Scripts.md index 505725c..5856237 100644 --- a/3.1-User-Scripts.md +++ b/3.1-User-Scripts.md @@ -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 ''; + } +} }); ```