您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Changes the progress bar display for quests to display the percent progress
当前为
// ==UserScript== // @name Soulforged Progress Bar Percentages // @description Changes the progress bar display for quests to display the percent progress // @version 1.1.3 // @include *://soulforged.net:8443/* // @include *://soulforged.net/* // @include *://soulforged.westeurope.cloudapp.azure.com/* // @include *://play.soulforged.net/* // @namespace soulforged.net // @grant none // @author Sakir, with **heavy** inspiritation from Zap // ==/UserScript== function waitDecimalizeProgressBars() { setTimeout(decimalizeQuestBars, 25); } function decimalizeQuestBars() { let regexp = /\d+/g; let already_edited = /%/g; var playerQuests = document.getElementsByClassName("player-quests"); var objectives = playerQuests[0].getElementsByClassName("objective"); for(var objective of objectives) { var progress = objective.getElementsByClassName("fill")[0] .attributes.style.value.match(regexp)[0]; if (!progress.match(already_edited)) { var insideText = " ("+progress+"% completed)"; objective.getElementsByClassName("label")[0].innerHTML += insideText; } } } //assuming there is just the one window.addEventListener("click", waitDecimalizeProgressBars);