From 8ea4aceb7a13a2c971e2351ff3ba9a18c56ddb2c Mon Sep 17 00:00:00 2001 From: woohoo Date: Sun, 14 Nov 2021 17:54:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- torn-trans-zhcn.user.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/torn-trans-zhcn.user.js b/torn-trans-zhcn.user.js index 1119cfe..1056057 100644 --- a/torn-trans-zhcn.user.js +++ b/torn-trans-zhcn.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Torn翻译 // @namespace WOOH -// @version 0.1.1114a +// @version 0.1.1114b // @description UI翻译 // @author Woohoo-[2687093] sabrina_devil[2696209] // @match https://www.torn.com/* @@ -824,7 +824,7 @@ 'Increases damage and accuracy of slashing weapons': '提高切割武器的伤害与命中', 'Increases damage and accuracy of mechanical devices': '提高机械武器的伤害与命中', 'Increases damage and accuracy of temporary weapons': '提高临时武器的伤害与命中', - 'Are you sure you want to spend': '确定要花费', + 'Are you sure you want to spend': '确定要花费 ', 'on': '在', 'upgrade?': '升级上吗?', 'You have upgraded this merit upgrade to the maximum already.': @@ -948,7 +948,7 @@ miniprofTrans(); miniprofOB.observe($('div.profile-mini-root').get(0), {attributes: true, childList: true, subtree: true}); }); - const miniprofTrans = function miniprofTrans(){ + const miniprofTrans = function miniprofTrans() { // let barDescr = $('div[class^="tooltip"]').children('p[class^="bar-descr"]'); // if (barDescr.length !== 0) { // barDescr[0].childNodes.forEach(i => { @@ -964,12 +964,12 @@ // //todo 通配符匹配 // } }; - if($('div.profile-mini-root').length>0) + if ($('div.profile-mini-root').length > 0) miniprofTrans(); else { const intervalInit = setInterval(() => { const miniProfileFirst = $('div.profile-mini-root').get(0); - if(miniProfileFirst){ + if (miniProfileFirst) { clearInterval(intervalInit); miniprofTrans(); miniprofOB.observe(miniProfileFirst, {attributes: true, childList: true, subtree: true});