Skip to content

Instantly share code, notes, and snippets.

@hax0kartik
Created April 10, 2024 06:09
Show Gist options
  • Save hax0kartik/4b9cb36d000ecc6da7274adb39822649 to your computer and use it in GitHub Desktop.
Save hax0kartik/4b9cb36d000ecc6da7274adb39822649 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Remove blur event
// @version 0.1
// @description Remove all blur events
// @author unknown
// @match **
// @grant none
// ==/UserScript==
window.addEventListener("blur", function(event) {
event.stopImmediatePropagation();
}, true);
window.addEventListener("visibilitychange", function(event) {
event.stopImmediatePropagation();
}, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment