Possible Duplicate:
jQuery in Greasemonkey 1.0 conflicts with websites using jQuery
It appears that if any of my greasemonkey scripts have the line like the below i get errors on sites that include jquery. I’m not sure why but i do notice some javascript events outright not firing. (For example on SO i cant add a comment).
I could exclude SO in the script but is there a nicer solution? Maybe i should dynamically add jquery after testing if jquery exist. How do I solve this problem and how do I add the jquery script tags to a body without using jquery?
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
Greasemonkey 1.0, radically changed the way the sandbox works, busting thousands of scripts. See also, jQuery in Greasemonkey 1.0 conflicts with websites using jQuery.
This is a huge problem, and the lead developer of Greasemonkey has expressed a complete unwillingness to resolve it in a sensible way.
To work around it, restore the sandbox to your script, and resolve the
$conflict, by editing your Metadata Block to end with the following lines:Specifying a
@grantvalue (other thannone) reactivates the sandbox.You might also consider switching to Scriptish, which has offered superior features and performance in the past, and does not suffer from this new sandbox behavior.
Scriptish, so far, hasn’t posted updates that destroy a large portion of its install base, either.