Last active
April 28, 2023 02:28
-
-
Save dylan-chong/8972a73b3491878eb8c60fdf9e157f57 to your computer and use it in GitHub Desktop.
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
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