Skip to content

Instantly share code, notes, and snippets.

@hunterbridges
Created March 6, 2013 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hunterbridges/5101579 to your computer and use it in GitHub Desktop.
Save hunterbridges/5101579 to your computer and use it in GitHub Desktop.
// ==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