6

如何阻止网站在切到其他标签时修改标签标题?

 2 years ago
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.
neoserver,ios ssh client

V2EX  ›  程序员

如何阻止网站在切到其他标签时修改标签标题?

  n0th1ng · 2 小时 3 分钟前 · 275 次点击

有些网站,搞笑也好,搞小心思也好,当你切换到别的标签时,标签标题变成“崩溃了”,你切回来,它又变成“又好了”,有什么扩展或者设置可以阻止吗?

不想用 NoScript 这种大杀器

6 条回复    2021-12-20 13:18:18 +08:00

Jooooooooo      1 小时 29 分钟前

?感觉网站犯贱就不要用它

n0th1ng      49 分钟前

@Jooooooooo #1 好的 要不我也犯贱了

vanton      40 分钟前   1

F12 打开控制台。

```javascript

getEventListeners(document).visibilitychange.forEach(
function(o) { document.removeEventListener('visibilitychange', o.listener) }
)
window.onfocus = null
window.onblur = null

```

能阻止所有监控窗口状态的 js 。
有兴趣自己做个油猴脚本存一下。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK