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.

اعتبارا من 16-07-2025. شاهد أحدث إصدار.

المؤلف
ShortTimeNoSee
التقييمات
0 0 0
الإصدار
1.1
تم إنشاؤه
16-07-2025
تم تحديثه
16-07-2025
الحجم
5.85 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.

长期地址
遇到问题?请前往 GitHub 提 Issues。