GoCoderzHack

im too lazy i hope it works

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         GoCoderzHack
// @version      2
// @description  im too lazy i hope it works
// @author       You
// @match        https://play.gocoderz.com/dashboard/*
// @grant        none
// @run-at       document-start
// @namespace https://google.com
// ==/UserScript==

function makecomplete(id){
fetch("https://play.gocoderz.com/coderz-api/updateAttempts",{method:"POST",body:JSON.stringify({id: id, completed: "1", score: 100}), headers:{"content-type": "application/json;charset=UTF-8"}})
}

function addattempt(id, t){
    for(var b=0;b<t;b++){
        fetch("https://play.gocoderz.com/coderz-api/updateAttempts",{method:"POST",body:JSON.stringify({id: id, completed: "0", score: 0}), headers:{"content-type": "application/json;charset=UTF-8"}})
    }
}

function addcompletetime(id,s){
fetch("https://play.gocoderz.com/coderz-api/updateDuration",{method:"POST",body:JSON.stringify({id: id, completed: "0", duration: s}), headers:{"content-type": "application/json;charset=UTF-8"}})
}

function legitcomplete(id){
let c = 3+Math.floor(Math.random()*5);
let t = c*40+(Math.floor(Math.random()*21)-10)
addattempt(id, c);
addcompletetime(id, c*40);
makecomplete(id);

document.write("Succesfully added "+c+" attempts, "+t+" seconds, and completed the mission of id: "+window.location.toString().match(/[0-9]{7}/)[0]+".</br>You can go back now and refresh and it will show :)");
}
if(window.location.toString().match(/[0-9]{7}/)[0].length>0){
   legitcomplete(window.location.toString().match(/[0-9]{7}/)[0]);
   }