您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
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... })();