Hides DisableGyousyo from tags

I edited your script that adds color to tags to hide DisableGyousyo tag.
This commit is contained in:
Feripe-a 2022-01-01 19:05:58 -03:00 committed by GitHub
parent ddaa85dee9
commit 6d597b1a6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,4 +50,23 @@ Thu Feb 4 01:06:07 AM UTC 2021
splitTagDiv()
highlightNames()
applyQuizFont()
</script>
</script>
<script>
// Hides DisableGyousyo from tags.
document.addEventListener('DOMContentLoaded', tagActions(), false);
function hidedisablegyousyo() {
const tags_elems = document.getElementsByClassName("tags");
for (const tag_elem of tags_elems) {
if (tag_elem.innerHTML.includes("DisableGyousyo")) {
tag_elem.style.display = "none";
}
}
}
function tagActions() {
hidedisablegyousyo()
}
</script>