Blocks detection of focus/tab/clipboard events without breaking user behavior; applies globally, incl. iframes/shadow DOMs. MAY break some functions.
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.
addEventListener, removeEventListener, and dispatchEvent for targeted event types.document.hidden to false and visibilityState to 'visible'.document.hasFocus() to always return true.onblur, onfocus, or visibility handlers.Intended for use cases where sites try to monitor user attention or restrict standard browser interactions through JavaScript.