Created
October 6, 2020 14:28
-
-
Save tayyebi/67ce6e831cc33cb48abe4d060e1f758b to your computer and use it in GitHub Desktop.
To filter hashtag #هزلیات from Mastodon.
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 childDivs = document.getElementsByClassName('status'); | |
for( i=0; i< childDivs.length; i++ ) | |
{ | |
var childDiv = childDivs[i]; | |
if (childDiv.textContent.includes("#هزلیات")) { | |
childDiv.style.display='none'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment