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.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==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)
})();