diff --git a/torn-trans-zhcn.user.js b/torn-trans-zhcn.user.js
index 7c70c41..14d8583 100644
--- a/torn-trans-zhcn.user.js
+++ b/torn-trans-zhcn.user.js
@@ -1077,6 +1077,7 @@
'View {$}\'s personal statistics': '查看 {$} 的个人统计数据',
'{$} is currently traveling': '{$} 目前正在飞行',
'{$} has no items in their bazaar': '{$} 的集市上没有物品',
+ 'View {$}\'s bazaar': '{$} 的集市上没有物品',
'Place a bounty on {$}': '悬赏 {$}',
'Report {$} to staff': '向 Torn City 工作人员举报 {$}',
'Attack {$}': '攻击 {$}',
@@ -1091,6 +1092,17 @@
'FRIEND': '朋友',
'Cancel': '取消',
};
+ const sendCashDict = {
+ 'Some players may be out to part you from your money, using any means necessary. Use the secure trade feature if you want to protect an exchange and check the contents very carefully.':
+ '有些玩家可能会利用任何必要的手段来骗走你的钱。如果你想保护交易,请使用更安全的“交易”功能,并仔细检查交易的内容。',
+ 'Do not fall for scams!':'切勿上当受骗!',
+ 'For more info please visit here.':'欲了解更多信息,请点击访问。',
+ 'SEND':'发送',
+ 'Cancel':'取消',
+ 'Message (optional, up to 200 characters)':'附带信息 (可选,最多200字符)',
+ 'Click here to add the maximum amount, or use shortcuts like
5k, 1.5m, max, half, quarter, 1/2, 1/3, 1/4, 25%':
+ '点此添加最大额度,或输入快捷选项如
5k, 1.5m, max, half, quarter, 1/2, 1/3, 1/4, 25%',
+ };
// 默认开启通知翻译
if (!localStorage.getItem('wh_trans_event')) {
@@ -1234,6 +1246,8 @@
}
}
});
+ // 转钱
+ sendCashTrans('div.profile-mini-root');
};
if ($('div.profile-mini-root').length > 0)
miniprofTrans();
@@ -1848,13 +1862,16 @@
// 黑框标题
$('.content-wrapper .title-black').each((i, e) => {
+ if (i === 1) {
+ if (profileDict[e.firstChild.nodeValue.trim().replace(playerName, '{$}')]) {
+ e.firstChild.nodeValue=(
+ profileDict[$(e).text().trim().replace(playerName, '{$}')]
+ .replace('{$}', playerName)
+ );
+ }
+ }
if (profileDict[$(e).text().trim()]) {
$(e).text(profileDict[$(e).text().trim()]);
- } else if (profileDict[$(e).text().trim().replace(playerName,'{$}')]) {
- $(e).text(
- profileDict[$(e).text().trim().replace(playerName,'{$}')]
- .replace('{$}',playerName)
- );
}
});
@@ -1916,8 +1933,10 @@
}
}
});
+
+ sendCashTrans();
};
- profileTrans();
+ profileTrans('.content-wrapper');
profileOB.observe($('.content-wrapper').get(0), {characterData:true,attributes: true, subtree: true, childList: true});
return;
}
@@ -3365,14 +3384,22 @@ ${htmlCont}