Post: Disabling 'Are you sure you want to leave' on NGU
02-09-2015, 08:15 AM #1
Cryptic
Former Staff | Content Manager
(adsbygoogle = window.adsbygoogle || []).push({});
You must login or register to view this content.


That center box. Annoying as all fuck isn't it?

Today we're going to disable that.

To do this you need to do a few things.




  1. Install Tamper Monkey (Chrome and Firefox, you shouldn't be using IE or those other shitty browsers you twit).
  2. Create a new script from the Tamper Monkey Dashboard

    • Name it whatever you like, I named mine Post Exit Disabler


  3. Input the following included code into the script.

    
// ==UserScript==
// @name Disable Leave Page
// @namespace https://www.nextgenupdate.com
// @include *

// ==/UserScript==

location.href = "javascript:(" + function() {
window.onbeforeunload = null;
window.onunload = null;
} + ")()";



Then press the save button (floppy disk in the top right if you're new to Tamper Monkey) and you're done.

Happy posting without that annoying error popping up.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 3 users say thank you to Cryptic for this useful post:

Kryptus, Nick, Ciri
02-09-2015, 08:27 AM #2
Nick
Who’s Jim Erased?
Thank's for this CS. Happy

Edit: This works good.
02-09-2015, 10:00 AM #3
Ciri
I defeated!
Thanks Winky Winky

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo