Created
March 4, 2017 13:20
-
-
Save enghqii/a2da9ebdc363e6c123db05807372a260 to your computer and use it in GitHub Desktop.
Facebook newsfeed sanitizer
This file contains 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 fb_sanitizer | |
// @namespace enghqii | |
// @description make clean facebook newsfeed | |
// @include https://www.facebook.com/ | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
function sanitize() { | |
document | |
.querySelectorAll("div[id^='topnews_main_stream']") | |
.forEach(function(node) { node.remove(); }); | |
} | |
sanitize(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment