您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
https://geekhub.com/自动签到
// ==UserScript== // @name geekhub自动签到 // @namespace http://tampermonkey.net/ // @version 0.3 // @description https://geekhub.com/自动签到 // @author zz // @match *.geekhub.com/* // @grant none // ==/UserScript== (function() { 'use strict'; // Your code here... var nowDate = new Date(); var geekhubAutologinFlag = JSON.parse(localStorage.getItem('geekhubAutologinFlag')) || {}; var sessionDay = geekhubAutologinFlag.sessionDay; var sessionMonth = geekhubAutologinFlag.sessionMonth; console.log(geekhubAutologinFlag) if (nowDate.getDay() != sessionDay || nowDate.getMonth() != sessionMonth) { ajaxLogin(); } })(); function ajaxLogin() { $.ajax({ url: '/checkins/start', type: 'post', dataType: 'json', data: { }, beforeSend: function () { console.log("自动签到中,请稍后..."); }, complete: function (data) { console.log("签到完成"); var sessionObj = new Object(); sessionObj.sessionDay = new Date().getDay(); sessionObj.sessionMonth = new Date().getMonth(); console.log(JSON.stringify(sessionObj)) localStorage.setItem('geekhubAutologinFlag', JSON.stringify(sessionObj)); } }); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址