Page 1 of 1
Possible to request ajax.googleapis.com surrogate?
Posted: Sat Jan 17, 2015 10:49 pm
by Username
Hi,
Is it possible to request an ajax.googleapis.com surrogate that would allow
http://www.frys.com/ads/view-all-store-ads to function without allowing the ajax.googleapis.com script to run? I noticed user thunderscript created a Microsoft one recently,
viewtopic.php?f=26&t=20455, so I was curious if some knowledgeable person might be able to do the same for this.
Thanks.
Re: Possible to request ajax.googleapis.com surrogate?
Posted: Sat Jan 17, 2015 11:46 pm
by barbaz
... er.. that's one script, which is only an
entire jquery library... that's not suitable for a default NoScript surrogate...
Anyway, see if this works?
1) download this script
http://ajax.aspnetcdn.com/ajax/jQuery/j ... 9.1.min.js
2) go to about:config
right-click > new > string
name: noscript.surrogate.gjq191.replacement
value: file URL pointing to the script downloaded in (1)
3) also in about:config
right-click > new > string
name: noscript.surrogate.gjq191.sources
value: ^https?://ajax\.googleapis\.com/.*[^0-9A-Za-z]1\.9\.1[^0-9A-Za-z].*jquery\.min\.js
Re: Possible to request ajax.googleapis.com surrogate?
Posted: Tue Jan 20, 2015 8:34 pm
by Username
Thank you barbaz for the thoughtful and detailed response. Very helpful.
Re: Possible to request ajax.googleapis.com surrogate?
Posted: Wed Jan 21, 2015 11:00 pm
by Thrawn
barbaz wrote:... er.. that's one script, which is only an
entire jquery library... that's not suitable for a default NoScript surrogate...
Actually the minified JQuery 1.11.2 is only 95.9KB uncompressed (about 35KB compressed), and there's potential to re-use it as a surrogate in lots of places, so I don't think it's entirely unreasonable.
It could even make some sites safer by providing a forced JQuery upgrade
