try to take over the world!
当前为
// ==UserScript==
// @name CSDN论坛自动签到抽奖
// @namespace http://tampermonkey.net/
// @version 0.2
// @description try to take over the world!
// @description:ZH-CN 打开自动签到的页面,然后让脚本在后台自动处理所有工作!
// @author 大西瓜一块五一斤
// @match https://i.csdn.net*/*
// @grant none
// @requrie https://code.jquery.com/jquery-3.4.1.min.js
// ==/UserScript==
(function() {
'use strict';
function clicker() {
setTimeout(function() {
var has_sign = $(".has_sign");
if (has_sign.length == 0) {
var sign = $(".to_sign");
sign[0].click();
setTimeout(function() {
var close = $(".close");
close[0].click();
},
2000);
}
},
2000);
setTimeout(function() {
var reward = $(".to_reward");
if (reward.length > 0) {
reward[0].click();
setTimeout(function() {
var group = $(".btn_group");
group[0].click();
setTimeout(function() {
var close1 = $(".close");
close1[0].click();
},
8000);
},
2000);
}
},
5000);
}
function refresher() {
window.location.reload(true);
}
window.addEventListener("load", clicker);
setInterval(refresher, 30*60*1000);
})();