Skip to content

Instantly share code, notes, and snippets.

@felds
Created September 22, 2011 17:54
Show Gist options
  • Save felds/1235475 to your computer and use it in GitHub Desktop.
Save felds/1235475 to your computer and use it in GitHub Desktop.
FB Cleanup
// ==UserScript==
// @name FB Cleanup
// @namespace https://gist.github.com/1235475
// @description Removes live feed ticker from Facebook (Sep 2011 update)
// @include *facebook.com/*
// @version 1.0b
// @author Felds Liscia (@felds)
// ==/UserScript==
!function() {
function removeById(id)
{
var node = document.getElementById(id);
if (node != null) node.parentNode.removeChild(node);
}
removeById('pagelet_ticker');
removeById('pagelet_rhc_ticker');
// resets the sidebar to fix the missing scrollbar
window.ChatSidebar.resize();
}()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment