Greasy Fork is available in English.
Disable page close confirmation (onBeforeUnload)
< Commentaires sur Disable page close confirmation
Try the updated the script.
Yes, that works as well.
Since the window.addEventListener() part doesn't work for me, and I don't know whether it's still supposed to work, or work with Safari, I'm just using the thing I posted. Thanks though!
Didn't work for me
Didn't work for me with Safari and JS Blocker 5.
For example, see the links here:
http://www.4guysfromrolla.com/webtech/100604-1.shtml
But this does work:
window.onbeforeunload = function(){null}
window.onunload = function(){null}
Found it here:
http://stackoverflow.com/questions/4084152/disable-onbeforeunload-for-links