Skip to content

Instantly share code, notes, and snippets.

@U-C-S
Last active September 10, 2021 05:58
Show Gist options
  • Save U-C-S/677794c4a884686641725b5fcb40aa69 to your computer and use it in GitHub Desktop.
Save U-C-S/677794c4a884686641725b5fcb40aa69 to your computer and use it in GitHub Desktop.
Adding this Year's Github Contributions
let x = document.getElementsByClassName("ContributionCalendar-day");
let y = 0;
for(let i = 0; i < x.length-10; i++) {
let val = parseInt(x[i].dataset.count);
if(val != NaN){
y = y + val;
}
}
@U-C-S
Copy link
Author

U-C-S commented Sep 10, 2021

WHY ??

DON'T know..... Just messing with github profile page in DevTools and Tried this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment