Skip to content

Instantly share code, notes, and snippets.

@stimpy77
Created June 29, 2020 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stimpy77/6a172ff3f08a2af2dae48bf701d9cfcf to your computer and use it in GitHub Desktop.
Save stimpy77/6a172ff3f08a2af2dae48bf701d9cfcf to your computer and use it in GitHub Desktop.
Remove unwanted link in Facebook sidebar
function clearLeftistPropaganda() {
// remove Lift Black Voices tag on left sidebar
var aTags = document.getElementsByTagName("a");
for(var t in aTags) {
var tag = aTags[t];
if (tag.getAttribute && tag.getAttribute("data-testid") === "left_nav_item_Lift Black Voices") {
tag.parentElement.removeChild(tag);
}
}
}
window.addEventListener('load', (event)=> {
clearLeftistPropaganda();
setInterval(clearLeftistPropaganda, 5000);
});
try {
clearLeftistPropaganda();
} catch (e) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment