Last active
August 30, 2021 14:39
-
-
Save shioken/6327a97128fc5f143b894e3099ab6f41 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
tags = document.getElementsByTagName("A"); | |
for (j = 0; j < tags.length; j++) { | |
tag = tags[j]; | |
if (tag.text == "これはひどい") | |
{ | |
console.log(tag.text); | |
tag.parentNode.parentNode.parentNode.style.display = "none"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment