Skip to content

Instantly share code, notes, and snippets.

@enghqii
Created March 4, 2017 13:20
Show Gist options
  • Save enghqii/a2da9ebdc363e6c123db05807372a260 to your computer and use it in GitHub Desktop.
Save enghqii/a2da9ebdc363e6c123db05807372a260 to your computer and use it in GitHub Desktop.
Facebook newsfeed sanitizer
// ==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