您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Open qidian website automatically
当前为
// ==UserScript== // @name QidianTimer // @namespace https://saltbo.cn/ // @version 0.2 // @description Open qidian website automatically // @author saltbo // @match http*://*/* // @exclude /^https?://my\.qidian\.com/* // @grant GM_openInTab // @grant GM_setValue // @grant GM_getValue // ==/UserScript== (function() { 'use strict'; let timeIntervals = [0, 300, 600, 1200, 1800, 3600, 3600, 3600] let todayCntKey = "today_cnt" let lastCheckTimeKey = "last_check_time" let nowTime = new Date().getTime(); let todayCnt = GM_getValue(todayCntKey, 0) let lastCheckTime = GM_getValue(lastCheckTimeKey, nowTime) let nowInterval = (nowTime-lastCheckTime)/1000 console.log("QidianTimer: ", nowInterval, timeIntervals[todayCnt]) if(nowInterval >= timeIntervals[todayCnt]){ let tab = GM_openInTab("https://my.qidian.com/level", true) setTimeout(tab.close, 5000) todayCnt++ if(todayCnt > timeIntervals.length){ todayCnt=0 } GM_setValue(todayCntKey, todayCnt) GM_setValue(lastCheckTimeKey, nowTime) } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址