Created
March 13, 2019 05:03
-
-
Save lieldulev/4e9bf6038ae3a8b09a7798742e18947c to your computer and use it in GitHub Desktop.
Hide Zehut Related Comments on Facebook להסתיר תגובות על זהות בפייבסוק
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
// Copy paste into your chrome console to periodically hide any comments containing זהות. | |
setInterval(()=>{Array(...document.getElementsByTagName('span')).filter(c=>c.textContent.includes('זהות')).forEach(c=>{c.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.style.display = 'none';});}, 500); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tested only on facebook.com using google chrome.
Open the console (View->Developer->Javascript Console),
ignore FB warning, the code doesn't collect or send anything. it just hides comments.
paste the code above. close the console. have some quiet.
someone should make this into an extension that allows setting the text values.