您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Shows a ratio of Blocks/B2B
当前为
// ==UserScript== // @name Blocks per B2B Script // @namespace http://tampermonkey.net/ // @version 0.1 // @description Shows a ratio of Blocks/B2B // @author Oki // @match https://*.jstris.jezevec10.com/* // @grant none // ==/UserScript== /************************** Blocks per B2B Script **************************/ var b2bStat= document.createElement("tr"); b2bStat.innerHTML = '<td class="ter">B2B</td><td class="sval"><span id="b2bs">0</span></td>' aux2.parentNode.parentNode.insertBefore(b2bStat, aux2.parentNode); var replacedFunc2 = Game['prototype']['updateQueueBox'].toString() replacedFunc2 = replacedFunc2.slice(0,-1) replacedFunc2 = replacedFunc2.substr(replacedFunc2.indexOf("{")+1) replacedFunc2 = "stat=this['placedBlocks']/this['gamedata']['B2B'];b2bs.innerHTML=(stat==Infinity||isNaN(stat))?('∞'):(stat.toFixed(2));" + replacedFunc2; Game['prototype']["updateQueueBox"] = new Function(replacedFunc2);