Skip to content

Instantly share code, notes, and snippets.

@bbbrrriiiaaannn
Created October 26, 2011 18:42
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 bbbrrriiiaaannn/1317339 to your computer and use it in GitHub Desktop.
Save bbbrrriiiaaannn/1317339 to your computer and use it in GitHub Desktop.
dotjs plugin for Nate Bolt's "Get A Life" badges for Facebook
//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
});
}
# 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