Skip to content

Instantly share code, notes, and snippets.

@lieldulev
Created March 13, 2019 05:03
Show Gist options
  • Save lieldulev/4e9bf6038ae3a8b09a7798742e18947c to your computer and use it in GitHub Desktop.
Save lieldulev/4e9bf6038ae3a8b09a7798742e18947c to your computer and use it in GitHub Desktop.
Hide Zehut Related Comments on Facebook להסתיר תגובות על זהות בפייבסוק
// 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);
@lieldulev
Copy link
Author

lieldulev commented Mar 13, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment