'On Close' or 'On Exit' Messages

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
Post Reply
compupix
Posts: 1
Joined: Sun Oct 01, 2017 4:39 pm

'On Close' or 'On Exit' Messages

Post by compupix »

Is there a way to block all (or most) messages that appear when you try to leave a page?
Thanks!
lewisje
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

Re: 'On Close' or 'On Exit' Messages

Post by lewisje »

It's all about the beforeunload handlers, and although there is no way for a UserScript or an extension to clear out all such handlers from a specific page, Firefox does have an about:config preference that disables such prompts for all pages (dom.disable_beforeunload): https://developer.mozilla.org/en-US/doc ... load#Notes
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
Post Reply