您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
try to take over the world!
// ==UserScript== // @name CSDN论坛自动签到抽奖 // @namespace http://tampermonkey.net/ // @version 0.4 // @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"); console.log(has_sign); if (has_sign.length == 0) { var sign = $(".to_sign"); console.log(sign[0]); sign[0].click(); setTimeout(function() { var close = $(".close"); console.log(close[0]); close[0].click(); }, 2000); } }, 2000); setTimeout(function() { var reward = $(".to_reward"); console.log(reward); if (reward.length > 0) { console.log(reward[0]); reward[0].click(); setTimeout(function() { var group = $(".btn_group"); console.log(group[0].children[0]); group[0].children[0].click(); setTimeout(function() { var close1 = $(".close"); console.log(close1[0]); close1[0].click(); }, 8000); }, 2000); } }, 5000); } function refresher() { window.location.href="https://i.csdn.net/#/uc/reward"; window.location.reload(true); } window.addEventListener("load", clicker); setInterval(refresher, 60*30*1000); })();