NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Kill Facebook Sponsored // @namespace http://tampermonkey.net/ // @version 0.1 // @description removes sponsored ads and "Suggested for You" garbage stories from Facebook // @author ajsnyde // @match https://www.facebook.com // @grant none // @license MIT // ==/UserScript== (function () { 'use strict'; window.setInterval(function () { var stories = document.querySelectorAll('[data-testid=fbfeed_story]'); [...stories].forEach(function (story) { if (story.innerText.includes("Suggested for You")) { story.remove(); } }); [...stories].forEach(function (story) { var buttons = story.querySelectorAll('[role=button]'); [...buttons].forEach(function (element) { if (element.getElementsByTagName('span').length > 20) { story.remove(); } }); }); }, 1000); })();