2 // @name No-You Clicker
3 // @namespace http://tampermonkey.net/
5 // @description try to take over the world!
7 // @match *://no-you.com/jp/*
8 // @match http://no-you.com/jp/index.html
9 // @updateURL https://github.com/ECHibiki/Misc-UserScripts/raw/master/No-You_Clicker.user.js
10 // @downloadURL https://github.com/ECHibiki/Misc-UserScripts/raw/master/No-You_Clicker.user.js
14 setInterval(function(){
15 var xhr
= new XMLHttpRequest();
16 xhr
.open('GET', "/heh.php", true);
17 xhr
.responseType
= 'json';
18 xhr
.onload = function() {
19 var status
= xhr
.status
;
21 var val
= xhr
.response
;//document.getElementById("ctr").value;
22 var digitOne
= val
% 10;
23 var digitTwo
= (val
% 100 - digitOne
)/10;
24 console
.log(val
+ " " + digitOne
+ " " + digitTwo
);
25 if(digitOne
!= digitTwo
)
26 document
.getElementById("ctr").click();