bitcoinker

Let it work while it works

目前為 2024-10-13 提交的版本,檢視 最新版本

// ==UserScript==
// @name         bitcoinker
// @namespace    http://tampermonkey.net/
// @version      2024-10-13
// @description  Let it work while it works
// @author       Dank Odze
// @match        https://bitcoinker.com/
// @license MIT
// @icon         https://www.google.com/s2/favicons?sz=64&domain=bitcoinker.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
function click(x, y)
{
    var ev = new MouseEvent('click', {
        'view': window,
        'bubbles': true,
        'cancelable': true,
        'screenX': x,
        'screenY': y
    });

    var el = document.elementFromPoint(x, y);
    console.log(el); //print element to console
    el.dispatchEvent(ev);
}

if(document.getElementsByClassName("timer").length==0){
var intervalID = setInterval(function() {
setTimeout(() => {
	if(grecaptcha.getResponse()!='') {
		clearInterval(intervalID);
        console.log('click');
        click(400, 468);
	}
}, 2*1000)
}, 1000)
}})();