GitHub Contribute Modifier

try to take over the world!

06.02.2021 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         GitHub Contribute Modifier
// @namespace    http://tampermonkey.net/
// @version      0.1.3
// @description  try to take over the world!
// @author       SheldonCoulson
// @match        *://github.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    let rect = document.getElementsByClassName("ContributionCalendar-day");
    let total = 0;
    for (let i = 0; i < rect.length - 5; i++) {
        let num = Math.floor(Math.random() * 4) + 1;
        total += num;
        i % Math.abs(Math.floor(Math.random() * 10) - Math.floor(Math.random() * 10) + 1) ? rect[i].attributes["data-count"].value = Math.floor(Math.random() * 10) + 1 : rect[i].attributes["data-count"].value = Math.floor(Math.random() * 10) * 4;
        let color = rect[i].attributes["data-count"].value;
        if (color >= 1 && color <= 10) {
            rect[i].attributes["data-level"].value = 1;
        } else if (color > 10 && color <= 15) {
            rect[i].attributes["data-level"].value = 2;
        } else if (color > 15 && color <= 20) {
            rect[i].attributes["data-level"].value = 3;
        } else if (color > 20) {
            rect[i].attributes["data-level"].value = 4;
        } else {
            rect[i].attributes["data-level"].value = 0;
        }
    }
    let NUM = document.getElementsByClassName("f4 text-normal mb-2");
    NUM[1].innerText = total + " contributions in the last year";
})();