No-You Clicker

try to take over the world!

// ==UserScript==
// @name         No-You Clicker
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  try to take over the world!
// @author       You
// @match        *://no-you.com/jp/*
// @match        http://no-you.com/jp/index.html
// ==/UserScript==

(function() {
    setInterval(function(){
        var xhr = new XMLHttpRequest();
        xhr.open('GET', "/heh.php", true);
        xhr.responseType = 'json';
        xhr.onload = function() {
            var status = xhr.status;
            if (status == 200) {
                var val = xhr.response;//document.getElementById("ctr").value;
                var digitOne = val % 10;
                var digitTwo = (val % 100 - digitOne)/10;
                console.log(val + " " + digitOne + " " + digitTwo);
                if(digitOne != digitTwo)
                    document.getElementById("ctr").click();
            }
            else {
                console.log("err");
            }
        };
        xhr.send();
    }, 2000 );
    // Your code here...
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址