In <
news:E_2dna8LW4dtgDDP...@mozilla.org>,
Chuck Anderson <cyclet...@invalid.invalid> wrote:
>
powellj...@gmail.com wrote:
> > On Saturday, June 16, 2012 3:48:13 PM UTC-6, Thai Guy wrote:
> >> I frequent a forum that has very slow page loading and frequently
> >> get a "this page is asking you if you want to leave the page" after I
> >> post something. If I don't click "Leave Page" the warning stays up
> >> there until I click either "leave" or "stay".
> >>
> >>
> >>
> >> Which warning in 'about:config' removes this warning? I can find
> >> lots
> >>
> >> of warnings that may be it, but I don't want to just change a
> >> bunch willy-nilly to find the right one.
> >>
> >> just use internet explorer it won't do it
>
> Was this answered?
Yeah. See the parts of the thread from June 2013 with stuff about
scripts for Greasemonkey.
(Clueless Google Groupers keep reviving the thread, including this
latest "just use IE" troll.)
> I've been playing with JavaScript a lot lately and am using this
> JavaScript feature to avoid losing entered data (email message
> composition. I am writing my own browser based email client).
>
> That "should I stay or should I go" window is fired from a JavaScript
> event called onBeforeUnload (another JavaScript function the Gecko
> team has ruined with their nanny design philosophy). It is
> programmed into the page you are on and the only practical way to get
> rid of it is to disable all JavaScript.
A Greasemonkey script can prevent onBeforeUnload events.
(It's also possible to use something called Configurable Security
Policies (CAPS) to control what events are allowed on which sites.
CAPS gives very finely grained control of everything JavaScript can do,
but it involves setting up a lot of hidden prefs and is complicated to
get right and easy to bork. IIRC this thread never got into it. The
Greasemonkey way is much easier for anybody who's not an IT
professional.)