Making a surrogate script

Ask for help about NoScript, no registration needed to post
access2godzilla
Senior Member
Posts: 109
Joined: Sun May 20, 2012 5:09 pm

Making a surrogate script

Post by access2godzilla »

I want to make surrogates for each major release of jquery. How do I make them?

Any help is appreciated.
Opera/9.80 (Android; Opera Mini/7.5.31657/29.3709; U; en) Presto/2.8.119 Version/11.10
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Making a surrogate script

Post by Thrawn »

Er...you mean a surrogate to make a site work when it depends on JQuery, but JQuery is blocked?

In a nutshell: no way.

JQuery is a large (and very useful) JavaScript library. Pages don't just depend on it if they're badly designed, like Google Analytics; they often use it to perform most of their important functions. A surrogate for it would have to be about as big as the original, and the page still wouldn't behave properly, because it expects JQuery to do meaningful work, which a surrogate would not.

I guess you could download a specific version of JQuery, review it to ensure that it's safe, and copy the whole thing into a surrogate...if surrogates are allowed to be that big...but for myself, I'd be happy to just allow it. I really doubt that JQuery is going to attack anyone.
Mozilla/5.0 (Windows NT 5.1; rv:21.0) Gecko/20100101 Firefox/21.0
Post Reply