Montag, 22. Februar 2010

jQuery 1.4 for Greasemonkey

For some random reason jQuery 1.4 no longer works with Greasemonkey. But the fix is trivial. Either use this fixed 1.4.2 version with @require, or do it your self: Simply replace the window at the very end of the jQuery source code with unsafeWindow. You might also want to add this line to the beginning of your GM Script:

var $=unsafeWindow.jQuery;

Keep on scripting!


mfG Kambfhase

edit: Either I am to stupid or jQuery is not capable of triggering events out of GM. Or probably both.

Keine Kommentare:

Kommentar veröffentlichen