Skip to content

Instantly share code, notes, and snippets.

@dylan-chong
Last active April 28, 2023 02:28
Show Gist options
  • Save dylan-chong/8972a73b3491878eb8c60fdf9e157f57 to your computer and use it in GitHub Desktop.
Save dylan-chong/8972a73b3491878eb8c60fdf9e157f57 to your computer and use it in GitHub Desktop.
var pattern = /\b(SEARCHTERM)\b/
Array
.from(document.getElementsByClassName("manhattan--container--1lP57Ag"))
.forEach(con =>
con
.querySelector("h1")
.innerHTML
.match(pattern)
|| con.remove()
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment