Binding to an event of the unsafeWindow in Firefox 30 with Greasemonkey 2.0
I'm maintaining a Greasemonkey script and got some trouble due to Mozilla's change to the unsafeWindow API in Firefox 30. The page my script runs on, triggers an event "MyEvent" and my script is interested in that event. The event is fired using jQuery 1.6.4 Before, I used this code to hook into this event: var jQuery = unsafeWindow.jQuery; jQuery(unsafeWindow.document) .bind("MyEvent", function() { console.log("MyEvent Triggered!"); }); But due to Mozilla's change this won’t work anymore. I tried to insert my own jQuery in conflict-free mode but I don't think this can access events that are