Event Listener Blocker & Focus Lock

Blocks detection of focus/tab/clipboard events without breaking user behavior; applies globally, incl. iframes/shadow DOMs. MAY break some functions.

作者
ShortTimeNoSee
今日安裝
0
安裝總數
0
評價
0 0 0
版本
1.12
建立日期
2025-07-16
更新日期
2025-07-16
尺寸
5.9 KB
授權條款
MIT
腳本執行於
所有網站

This userscript intends to generally prevent websites from detecting specific user actions by blocking their ability to listen for certain browser events. It intercepts and disables the registration and dispatch of events like blur, focus, visibilitychange, copy, cut, contextmenu, selectstart, and others commonly used to track focus changes, disable right-click, or monitor clipboard activity.

  • Overrides addEventListener, removeEventListener, and dispatchEvent for targeted event types.
  • Forces document.hidden to false and visibilityState to 'visible'.
  • Forces document.hasFocus() to always return true.
  • Clears any existing onblur, onfocus, or visibility handlers.
  • Applies to iframes and shadow DOMs as they're created.
  • Automatically re-applies every second to persist through dynamic changes.

Intended for use cases where sites try to monitor user attention or restrict standard browser interactions through JavaScript.

QingJ © 2025

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