Created
September 22, 2011 17:54
-
-
Save felds/1235475 to your computer and use it in GitHub Desktop.
FB Cleanup
This file contains 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 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