Skip to content

Instantly share code, notes, and snippets.

@brenoferreira
Last active February 28, 2023 01:22
Show Gist options
  • Save brenoferreira/bc6f3c1d6afc23af8b527e68e0570693 to your computer and use it in GitHub Desktop.
Save brenoferreira/bc6f3c1d6afc23af8b527e68e0570693 to your computer and use it in GitHub Desktop.
(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