您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Show elapsed time of current rip
// ==UserScript== // @name ARM Rip Elapsed // @namespace http://tampermonkey.net/ // @version 0.1 // @description Show elapsed time of current rip // @author thompcha // @include http://*.*.*.*:8080/history // @grant none // @require https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/moment.min.js // @license FSFAP // ==/UserScript== $( document ).ready(function() { var start = $('tr:eq(1) td:first').text(); var start_parsed = moment(start,'DD-MM-YYYY hh:mm:ss') setInterval(function(){ var elapsed = moment.duration(moment().diff(start_parsed)); var elapsed_formatted = moment.utc(elapsed.as('milliseconds')).format('H:mm:ss'); $('tr:eq(1) td:eq(2)').html(elapsed_formatted); }, 1000); });