Last active
December 12, 2015 03:28
-
-
Save barzik/4706881 to your computer and use it in GitHub Desktop.
Anti-doppelganger Grease Monkey script
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 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