Disable window confirm dialog?

Ask for help about NoScript, no registration needed to post
gigi

Disable window confirm dialog?

Post by gigi »

I want ask if noscript it's possible disable window dialog box such as :Are you sure you want to navigate away from this page?
in firefox
Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Disable window confirm dialog?

Post by Giorgio Maone »

Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
gigi

Re: Disable window confirm dialog?

Post by gigi »

ok.. i'm a newbie can you explain me how enable this in noscript ?
thanks
Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Disable window confirm dialog?

Post by Giorgio Maone »

Open about:config and create the two "string" preferences mentioned, i.e.
  1. Name:
    noscript.surrogate.trap.replacement
    Value:
    __defineSetter__("onbeforeunload", function() {})
  2. Name:
    noscript.surrogate.trap.sources
    Value:
    @*
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
gigi

Re: Disable window confirm dialog?

Post by gigi »

thanks :mrgreen: :mrgreen: :mrgreen: :mrgreen:
Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)
Locked