alert with Force Quit

window.alert = function (msg) {
if (!confirm(msg)) throw new Error('Force Quit');
};

source

Leave a Reply