Created
March 6, 2013 18:08
-
-
Save hunterbridges/5101579 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Hide FB Chat button | |
// @description Hides FB chat button and sidebar | |
// @include *.facebook.com/* | |
// @exclude *.facebook.com/ajax/* | |
// @grant GM_getValue | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js | |
// ==/UserScript== | |
// | |
document.addEventListener('DOMSubtreeModified', function() { | |
var button = document.getElementById('fbDockChatBuddylistNub'); | |
if (button) button.parentNode.removeChild(button); | |
var sidebar = document.getElementById('pagelet_sidebar'); | |
if (sidebar) sidebar.parentNode.removeChild(sidebar); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment