Created
April 24, 2019 07:20
-
-
Save secretdataz/44e337cc09753f3ec226faba447cb2ef to your computer and use it in GitHub Desktop.
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 No Endgame spoil | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author komcal | |
| // @match *.facebook.com/* | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| const banList = ['avenger', 'endgame', 'end game']; | |
| setInterval(function() { | |
| var a = document.querySelectorAll('[role="article"]') | |
| a.forEach((d) => { | |
| banList.map((text) => { | |
| if (d.innerText.toLocaleLowerCase().indexOf(text) >= 0) { | |
| d.remove() | |
| } | |
| }) | |
| }) | |
| }, 2000) | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment