Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Kill Trending
- // @namespace http://127.0.0.1
- // @description Remove Facebook trending topics and activity ticker
- // @author fritigern
- // @include https://facebook.com/*
- // @include https://*.facebook.com/*
- // @include http://facebook.com/*
- // @include http://*.facebook.com/*
- // @run-at document-start
- // @version 1.01
- // This is a fork of Remove Facebook Distractions by borisjoffe
- // Original URL : http://boris.joff3.com
- // Original script at : https://greasyfork.org/en/scripts/16650-remove-facebook-distractions
- // ==/UserScript==
- (function() {var css = [
- '#pagelet_trending_tags_and_topics, #pagelet_rhc_ticker { display: none }',
- '#pagelet_megaphone{ display: block }'
- ].join("\n");
- if (typeof GM_addStyle != "undefined") {
- GM_addStyle(css);
- } else if (typeof PRO_addStyle != "undefined") {
- PRO_addStyle(css);
- } else if (typeof addStyle != "undefined") {
- addStyle(css);
- } else {
- var node = document.createElement("style");
- node.type = "text/css";
- node.appendChild(document.createTextNode(css));
- var heads = document.getElementsByTagName("head");
- if (heads.length > 0) {
- heads[0].appendChild(node);
- } else {
- // no head yet, stick it whereever
- document.documentElement.appendChild(node);
- }
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment