Confirm before closing tab

Prevent closing tabs accidently

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
PYUDNG
Daily installs
2
Total installs
55
Ratings
1 0 1
Version
0.1
Created
2022-11-16
Updated
2022-11-16
Size
2.91 KB
License
GPL-v3
Applies to
All sites

埋头苦干N小时,刷新一键重新开始
为防止在网页上写了好久的内容随着一次不小心的刷新或者关闭标签页悄然离去,可使用本脚本为网页添加退出确认,在离开当前页面时弹出确认窗口;如下图,在Chrome关闭开启了确认的标签页时会弹出这样的提示。

可以设置“此页面确认”和“全部页面确认”,前者开启后只在离开当前页面时弹出确认,单次生效;后者开启后在每一个页面离开前都进行确认,不嫌麻烦的可以使用。