Disable Google Chrome popup

1124515 pts.
Tags:
Google Chrome
This is a small issue but it's driving me nuts! Every time I leave a page in Google Chrome, it asks me: Are you sure you want to leave this page? Can I disable it completely? Thank you so much!
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

In Google Chrome, type chrome:://settings/content into the address bar and hit Enter. Scroll down to the JavaScript section and click ‘Do not allow any site to run JavaScript’. If you’d like to enable or disable JavaScript on a site-by-site basis, you can click the manage exceptions button and set up rules based on partial URLs.  

Those messages are implemented by website developers by listening to the onunload or onbeforeunload events.

There is a userscript available from about.com that blocks those events.

In order to install this userscript (or other userscripts, for that sake) you need to first install a Chrome extension called TamperMonkey.

Be careful when installing userscripts, they are capable of doing things you might not want. Only install userscripts from trusted sources.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Subhendu Sen
    Yes, these types of scripts may harm/create danger for your system, if not install/download from very trusted sources. You can also try Firefox for safe browsing and can overcome this issue. Download/install Firefox and can open these websites to check if that happens again.
    130,690 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: