Prevent a tab from popping up dialogs when closing the tab

Prevent a tab from popping up dialogs when closing the tab. Copied from UserScripts.org

// ==UserScript==
// @name        Prevent a tab from popping up dialogs when closing the tab
// @namespace   *
// @include     https://support.mozilla.org/en-US/questions/760727
// @version     1
// @author      unknown
// @description Prevent a tab from popping up dialogs when closing the tab.  Copied from UserScripts.org
// @grant       none
// ==/UserScript==

window.onbeforeunload=null;

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址