Created
June 29, 2020 17:09
-
-
Save stimpy77/6a172ff3f08a2af2dae48bf701d9cfcf to your computer and use it in GitHub Desktop.
Remove unwanted link in Facebook sidebar
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
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