Skip to content

Instantly share code, notes, and snippets.

@J2TEAM
Created May 31, 2018 14:42
Show Gist options
  • Save J2TEAM/e01e02c8cb5ce849c618514dbaac705b to your computer and use it in GitHub Desktop.
Save J2TEAM/e01e02c8cb5ce849c618514dbaac705b to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Facebook Sidebar Cleaner
// @namespace https://junookyo.blogspot.com/
// @version 0.1
// @description Remove useless section on Sidebar
// @author Juno_okyo
// @match https://www.facebook.com/*
// @grant none
// ==/UserScript==
(function(b,e){function c(){if(!f){f=!0;for(var a=0;a<d.length;a++)d[a].fn.call(window,d[a].ctx);d=[]}}function h(){"complete"===document.readyState&&c()}e=e||window;var d=[],f=!1,g=!1;e[b||"docReady"]=function(a,b){if("function"!==typeof a)throw new TypeError("callback for docReady(fn) must be a function");f?setTimeout(function(){a(b)},1):(d.push({fn:a,ctx:b}),"complete"===document.readyState||!document.attachEvent&&"interactive"===document.readyState?setTimeout(c,1):g||(document.addEventListener?
(document.addEventListener("DOMContentLoaded",c,!1),window.addEventListener("load",c,!1)):(document.attachEvent("onreadystatechange",h),window.attachEvent("onload",c)),g=!0))}})("docReady",window);(function(){docReady(function(){var b=document.getElementById("pagelet_canvas_nav_content");null!==b&&b.remove()})})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment