如何阻止网站在切到其他标签时修改标签标题?
source link: https://www.v2ex.com/t/823286
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
有些网站,搞笑也好,搞小心思也好,当你切换到别的标签时,标签标题变成“崩溃了”,你切回来,它又变成“又好了”,有什么扩展或者设置可以阻止吗?
不想用 NoScript 这种大杀器
Jooooooooo 1 小时 29 分钟前
n0th1ng 49 分钟前
vanton 40 分钟前 1
F12 打开控制台。
```javascript
getEventListeners(document).visibilitychange.forEach(
function(o) { document.removeEventListener('visibilitychange', o.listener) }
)
window.onfocus = null
window.onblur = null
```
能阻止所有监控窗口状态的 js 。
有兴趣自己做个油猴脚本存一下。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK