Takepoint.io - anti-kick script

made for marliskilla :) works by pausing the render loop while making a captcha token, putting less load on the cpu/gpu and thus resulting in higher captcha scores.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         Takepoint.io - anti-kick script
// @namespace    http://tampermonkey.net/
// @version      1
// @description  made for marliskilla :) works by pausing the render loop while making a captcha token, putting less load on the cpu/gpu and thus resulting in higher captcha scores.
// @author       You
// @match        https://takepoint.io/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=takepoint.io
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var loadLoop = setInterval(() => {
        if(ASM_CONSTS) {
            ASM_CONSTS[38092] = function($0) {
                grecaptcha.ready(function() {
                    Browser.mainLoop.pause()
                    setTimeout(() => { //give the client time to finish whatever it was doing last frame
                        grecaptcha.execute("6LcA3gsaAAAAAI-hzo7vC9uApeFk4SpfMKKTRAPs", {
                            action: "connect"
                        }).then(function(token) {
                            var msg = "v," + token;
                            var ptr = Module._malloc(msg.length);
                            Module.stringToUTF8(msg, ptr, msg.length * 4);
                            sockets[$0].send(HEAP8.subarray(ptr, ptr + msg.length));
                            Module._free(ptr);
                            Browser.mainLoop.resume()
                        });
                    }, 33);
                });
            }
            clearInterval(loadLoop)
        }
    }, 20)
})();