Last active
August 14, 2017 05:04
-
-
Save ishankhare07/2dc07ab23b01cfd19d34d876034fd741 to your computer and use it in GitHub Desktop.
hide annoying sarahah posts from fb news feed
This file contains hidden or 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
document.querySelectorAll('._5pcr.fbUserPost') | |
.forEach((element) => { | |
if(element.innerHTML.match(/sarahah/)) { | |
element.style.visibility = 'hidden'; | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment