Last active
August 29, 2015 14:04
-
-
Save stecb/14b21c949ecf2d34429a to your computer and use it in GitHub Desktop.
Github Rockstar faker
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
// 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