Skip to content

Instantly share code, notes, and snippets.

@ebrensi
Created September 1, 2021 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebrensi/b4495fb04f9b752913d98539e11cab4a to your computer and use it in GitHub Desktop.
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)
/*
* 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