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.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

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