Skip to content

Instantly share code, notes, and snippets.

@stecb
Last active August 29, 2015 14:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stecb/14b21c949ecf2d34429a to your computer and use it in GitHub Desktop.
Save stecb/14b21c949ecf2d34429a to your computer and use it in GitHub Desktop.
Github Rockstar faker
// go to your github.com/xxx page, copy and paste this inside your favorite web dev tools console, make a screenshot, and boom: You're the new github rockstar
!function(){
var contribsRgbSets=["214,230,133","140,198,101","68,163,64","30,104,35"],
l=contribsRgbSets.length,
selector = '.day';
[].forEach.call(document.querySelectorAll(selector), function(el) {
el.style.fill="rgb(" + contribsRgbSets[~~(Math.random()*l-1)] + ")";
});
}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment