Page 1 of 1

Recaptcha surrogate script

Posted: Sun Sep 28, 2014 2:47 am
by ozjuggler
Hello all,
I have a suggestion for a new surrogate script which allows sites that load Google's Recaptcha code to still work while blocking Google.com.
The sources and replacements settings have been pasted here: http://pastebin.com/RqBma0UZ
They are:

Code: Select all

 noscript.surrogate.gcaptcha.replacement :        Recaptcha = {create:function(a,b,c){return "Yes";}};
noscript.surrogate.gcaptcha.sources     :        *www.google.com/recaptcha/api/js/recaptcha_ajax.js 
This has been tested only on the imgur.com login and seems to work.
Well it works until you get the password wrong too many times, at which point you will have to use their Captcha to re-establish that you have more humanity than Google. ;)

Hopefully someone else out there finds this a nice addition to their NoScript ammunition.

Re: Recaptcha surrogate script

Posted: Wed Oct 22, 2014 6:10 am
by shirish
It doesn't work in Mozilla Firefox 31.0.2 and NoScript 2.6.9.2 :( I tried and don't get the recaptcha :(

Re: Recaptcha surrogate script

Posted: Mon Oct 27, 2014 9:11 am
by ozjuggler
shirish wrote:It doesn't work in Mozilla Firefox 31.0.2 and NoScript 2.6.9.2 :(
I was certainly using the same version of NoScript as you have. I was using FF 26, not 31, however I do not think the FF version will make any difference.
shirish wrote:I tried and don't get the recaptcha :(
Congratulations, the surrogate works exactly as intended. :) If you are blocking google then of course Recaptcha must also be blocked because it is a Google script.
The whole purpose of the surrogate script is to allow the rest of the scripts on the web page to run without crashing even while Recaptcha is blocked.
So what you saw was not an error, that's the intended effect. Of course if you don't want to block Recaptcha then don't block google.com.