Created
November 24, 2021 01:57
-
-
Save DavidWells/41bdcf43a5f0cae78af11403b3323b3b to your computer and use it in GitHub Desktop.
Drop this script into a tool like https://chrome.google.com/webstore/detail/custom-javascript-for-web/ddbjnfjiigjmcpcpkmhogomapikjbjdk to kill twitter garbage
This file contains hidden or 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
setInterval(function() { | |
var heading = Array.from(document.querySelectorAll('h2[role="heading"]')).find((header) => { | |
return header.innerText === "What’s happening" | |
}) | |
var whatsHappening = heading && heading.parentNode && heading.parentNode.parentNode && heading.parentNode.parentNode.parentNode | |
// Kill Whats happening garbage | |
if (whatsHappening) { | |
whatsHappening.style.display = 'none' | |
} | |
}, 2000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment