您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Shows the runtime of the contest in the title
// ==UserScript== // @name gleam.io remaining runtime in document title // @namespace http://tampermonkey.net/ // @version 0.1 // @description Shows the runtime of the contest in the title // @author woebbi // @license GNU GPLv3 https://choosealicense.com/licenses/gpl-3.0/ // @match *gleam.io/* // @icon https://www.google.com/s2/favicons?domain=gleam.io // @grant none // ==/UserScript== $(document).ready(function() { if (document.getElementsByClassName("status ng-binding")[1] !== null) { var status = document.getElementsByClassName("status ng-binding"); var duration = status[status.length - 1].innerHTML.trim(); var descr = document.getElementsByClassName("description ng-binding") descr = descr[descr.length - 1].innerHTML; var timething = descr.trim().charAt(0).toLowerCase(); if (duration == "Ended"){ duration = "e"; timething = "" } console.log(duration + " " + timething); var textfortitle = "(" + duration + timething + ")"; document.title = textfortitle + document.title; } });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址