Skip to content

Instantly share code, notes, and snippets.

@nitinthewiz
Last active August 29, 2015 13:57
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 nitinthewiz/9689181 to your computer and use it in GitHub Desktop.
Save nitinthewiz/9689181 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name FB Cleanse
// @version 0.1
// @namespace http://blog.nitinkhanna.com
// @author nitinkhanna
// @run-at document-end
// @include *facebook*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// ==/UserScript==
var rra = function() {
setInterval(rra,2000);
var divs = document.getElementsByClassName('tickerActivityStories');
$(divs).each(function() {
singlepost = $(this);
singlepost.hide();
});
var divs = document.getElementsByClassName('rightColumnWrapper');
$(divs).each(function() {
singlepost1 = $(this);
singlepost1.hide();
});
var divs = document.getElementsByClassName('_64b fixed_elem');
$(divs).each(function() {
singlepost2 = $(this);
singlepost2.hide();
});
}
rra();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment