您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Telling you if the price of the sets is between the lower price (var minprice) and your maximum price (var maxprice) by coloring the gems price (Green is ok, red isn't).
当前为
// ==UserScript== // @name Sets price indicator // @version 0.2 // @description Telling you if the price of the sets is between the lower price (var minprice) and your maximum price (var maxprice) by coloring the gems price (Green is ok, red isn't). // @author Zeper // @match https://steamlvlup.com/levelup* // @grant none // @namespace https://greasyfork.org/users/191481 // ==/UserScript== var sets = document.getElementById('calc_sets'); var gems = document.getElementById("calc_gems"); var minprice = 230; var maxprice = 240; function check() { var setsvalue = sets.innerHTML; var setsprice = Math.round(gems.innerHTML/setsvalue); if (setsprice > 0) { if (setsprice >= minprice && setsprice <= maxprice) { gems.style = "color: green;"; } else { gems.style = "color: red;"; } gems.title = setsprice + " gems per Sets" ; } } new MutationObserver(check).observe(sets, { attributes: false, childList: true, subtree: false });