Created
June 26, 2014 15:10
-
-
Save git2samus/88f8d88c8ed24d4feb76 to your computer and use it in GitHub Desktop.
Facebook Suárez Filter
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
| // ==UserScript== | |
| // @name Facebook Suarez Filter | |
| // @namespace git2samus | |
| // @include https://www.facebook.com/* | |
| // @match https://www.facebook.com/* | |
| // ==/UserScript== | |
| var suarez_re = /Su[aá]rez/i; | |
| for (contentNode in document.getElementsByClassName('userContentWrapper')) { | |
| if (suarez_re.test(contentNode.textContent) { | |
| contentNode.deleteNode(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment