Created
October 26, 2011 18:42
-
-
Save bbbrrriiiaaannn/1317339 to your computer and use it in GitHub Desktop.
dotjs plugin for Nate Bolt's "Get A Life" badges for Facebook
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
//Thanks to http://boltron.tumblr.com/post/11616794382/its-always-funny-finding-weird-shit-i-make-out-on I guess | |
if( $("#blueBarHolder").length ) { //Are we on a blue bar page? This gates this from running on billions of Like buttons. | |
$(".fbJewel").css({"position":"relative"}); //This normally only applies to .fbJewel.hasNew, but seemingly no harm in forcing it. | |
$(".jewelCount").css({"display":"block"}).each(function(i,ele) { //Likewise, .hasNew .jewelCount, but no harm. | |
$(ele).append("<span class='getThatLife'>" + ["GET","A","LIFE"][i] +"</span>"); | |
}).children(".getThatLife").css({ | |
"position": "absolute", | |
"top": 0, | |
"right": 0 | |
}); | |
} |
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
# If you have dotjs ( http://defunkt.io/dotjs/ ) installed this will create/append to your Facebook .js | |
sudo sh -c "curl https://raw.github.com/gist/1317339/cb91786350bec0317077dede3182820cd33c02c5/facebook.com.js >> ~/.js/facebook.com.js" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment