Skip to content

Instantly share code, notes, and snippets.

@qerdcv
qerdcv / GetTotalContributinonsInGitlab.md
Created November 13, 2022 19:08
Get total count of contributions in gitlab for current year

Just paste it into the browser console, and it will count contributions for you.

Array.from(document.querySelectorAll(".user-contrib-cell")).reduce((acc, el) => (isNaN(+acc) ? 0 : acc) + (el.getAttribute("title").trim().split(" ").length > 1 && isNaN(+el.getAttribute("title").trim().split(" ")[0]) ? 0 : +el.getAttribute("title").trim().split(" ")[0]));

AUTOLOOT OF TWITCH CHANNEL CURRENCY

HOW OT USE

  • Open browser dev-tools
  • Open Console
  • Insert next script
let interval = setInterval(() => {
  let button = document.querySelector('.ScCoreButtonSuccess-sc-1qn4ixc-5');
 if (button) {