• 本帖最后由 dupit8 于 2017-4-1 22:08 编辑 *

先安装firefox的油猴插件,然后安装下面的油猴子脚本:
http://asset.cachefiles.net/downloads/surfbar/eb-rescue.user.js

接着用 about:config 打开 firefox 的配置:
dom.allow_scripts_to_close_windows = true
dom.disable_beforeunload = true
xpinstall.signatures.required = false

接着安装firefox插件:
http://asset.cachefiles.net/downloads/surfbar/quit_on_break.xpi

需要手工下载下来,然后拖到firefox窗口安装。

最好, 按照需要修改一下脚本, 记得改里面的用户名:
http://asset.cachefiles.net/downloads/surfbar/killfirefoxon100cpu.sh

说明一下:
第一个脚本的作用,是当弹出其它非ebesucher的窗口的时候,自动关闭它。
第二个插件的作用,是当弹出下载框的时候,自动退出firefox。
第三个是个shell脚本,当firefox退出的时候,自动重启firefox,里面还包括了监控CPU使用的代码(对于杜甫可以删除)。