您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Notice that your action is done
当前为
// ==UserScript== // @name Aincrad Notification // @namespace https://itiscaleb.com/ // @version 0.3 // @description Notice that your action is done // @author ItisCaleb // @match https://ourfloatingcastle.com/* // @grant none // ==/UserScript== (function() { 'use strict'; var timeComplete; var token = window.localStorage.getItem('token2') function calTime(){ fetch("https://api.ourfloatingcastle.com/api/profile", { "headers": { "token": token }, "referrer": "https://ourfloatingcastle.com/", "body": null, "method": "GET", }) .then(res=>res.json()) .then(data=>{ timeComplete = data.actionUntil }); } function init(){ if (Notification.permission === 'default' || Notification.permission === 'undefined') { Notification.requestPermission(); } if (Notification.permission === 'denied'){ console.log("請開啟通知才能作用") return } calTime() } setTimeout(init,1000) setInterval(()=>{ if(!timeComplete) return let timeleft = timeComplete-Date.now() if(timeleft<=0){ new Notification('你的浮游城已經完成動作!') timeComplete=null } },1000) })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址