Created
August 17, 2016 22:25
-
-
Save cha0s/cf271653b030febddeb91f2d0c937940 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 World's Laziest FB Cleaner | |
// @namespace gm.cha0s | |
// @description Checks if there's suggest post bullshit on your FB feed once a second. Nukes it with prejudice. | |
// @include https://www.facebook.com/ | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
var FACEBOOK_STUPID = '._5g-l'; | |
window.setInterval(function() { | |
var elms = document.querySelectorAll(FACEBOOK_STUPID); | |
for (var i in elms) { | |
var node = elms[i]; | |
for (var j = 0; j < 4; ++j) { | |
node = node.parentNode; | |
} | |
node.style.display = 'none'; | |
} | |
}, 1000); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment