Skip to content

Instantly share code, notes, and snippets.

@cha0s
Created August 17, 2016 22:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cha0s/cf271653b030febddeb91f2d0c937940 to your computer and use it in GitHub Desktop.
Save cha0s/cf271653b030febddeb91f2d0c937940 to your computer and use it in GitHub Desktop.
// ==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