您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
every 10 secs it tells you in console wowsers
当前为
// ==UserScript== // @name magic firefly event time thing // @namespace http://tampermonkey.net/ // @version 1.0 // @description every 10 secs it tells you in console wowsers // @author Kosuken // @match https://florr.io/* // @grant none // @license MIT // ==/UserScript== (function () { 'use strict'; function nextMfs() { const intv = 4732; const startT = 1733449900; // when const Tnow = Math.floor(Date.now() / 1000); const nextT = startT + (Math.floor((Tnow - startT) / intv) + 1) * intv; // left const secsLeft = nextT - Tnow; const hours = Math.floor(secsLeft / 3600); const minutes = Math.floor((secsLeft % 3600) / 60); const seconds = secsLeft % 60; console.log("Next ff event:", new Date(nextT * 1000)); console.log(`Time left: ${hours} hours, ${minutes} minutes, and ${seconds} seconds`); } // Run the function every 10 seconds setInterval(nextMfs, 10000); })();