Skip to content

Instantly share code, notes, and snippets.

@barzik
Last active December 12, 2015 03:28
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 barzik/4706881 to your computer and use it in GitHub Desktop.
Save barzik/4706881 to your computer and use it in GitHub Desktop.
Anti-doppelganger Grease Monkey script
// ==UserScript==
// @name Anti-doppelganger ver 1.3
// @namespace http://internet-israel.com
// @description Remove doppelganger week from my fucking feed
// @grant none
// @include https://www.facebook.com/*
// @include http://www.facebook.com/*
// @require http://code.jquery.com/jquery.js
// ==/UserScript==
function main(){
var change_my_profile = $("span:contains('profile picture')");
if(change_my_profile.length > 0) {
change_my_profile.closest('.userContentWrapper').remove();
}
$('.userContentWrapper').children('a').hide();
$('.UFIActorImage').hide();
}
window.addEventListener('scroll', function() {
main();
});
main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment