Created
September 5, 2014 02:42
-
-
Save BrianRosamilia/a7dd905a5dd2517f9c8e to your computer and use it in GitHub Desktop.
Removing Facebook Posts
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
Array.prototype.slice.call(document.getElementsByClassName('userContentWrapper')).forEach(function(itm) { | |
if (itm.innerHTML.search(/nfl|football/i) != -1) { | |
itm.parentNode.removeChild(itm) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment