Created
May 31, 2024 01:18
-
-
Save jeffersonlicet/5466671f39c4bb4c70af270fa2af0fc3 to your computer and use it in GitHub Desktop.
Stop ChatGPT Web Memory Leak
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.original = window.addEventListener; | |
window.addEventListener = function (type, listener, options) { | |
if (type === "DOMContentLoaded") { | |
console.warn( | |
"Adding new DOMContentLoaded event listeners has been blocked." | |
); | |
return; | |
} | |
window.original.call(window, type, listener, options); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment