Created
September 1, 2021 18:13
-
-
Save ebrensi/b4495fb04f9b752913d98539e11cab4a to your computer and use it in GitHub Desktop.
Hide posts from certain authors on letsrun.com message forum (https://www.letsrun.com/forum)
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
/* | |
* Run this in your browser when you're at https://www.letsrun.com/forum, | |
* either directly in the console (ctrl-shift-i) | |
* or via a userscript extension like Tampermonkey | |
*/ | |
// Author names of trolls you want to hide | |
toHide = ["troll guy", "other troll"] | |
document.querySelectorAll(".author-name").forEach(el => { | |
if (toHide.includes(el.innerText)) { | |
el.closest("li").remove() | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment