Last active
February 28, 2023 01:22
-
-
Save brenoferreira/bc6f3c1d6afc23af8b527e68e0570693 to your computer and use it in GitHub Desktop.
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
(function makeMeSeniorDev() { | |
const els = document.getElementsByClassName('ContributionCalendar-day'); | |
const levels = [1, 2, 3, 4]; | |
for (i = 0; i < els.length; i++) { | |
const level = levels[Math.floor(Math.random() * levels.length)]; | |
els[i].setAttribute('data-level', level) | |
} | |
el = document.querySelector('.js-yearly-contributions > .position-relative > .text-normal'); | |
el.innerHTML = "100,000 contributions in the last year" | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment