Skip to content

Instantly share code, notes, and snippets.

@secretdataz
Created April 24, 2019 07:20
Show Gist options
  • Select an option

  • Save secretdataz/44e337cc09753f3ec226faba447cb2ef to your computer and use it in GitHub Desktop.

Select an option

Save secretdataz/44e337cc09753f3ec226faba447cb2ef to your computer and use it in GitHub Desktop.
// ==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