更新通知:病毒 交易

This commit is contained in:
李万一 2021-11-04 06:23:31 +00:00 committed by Gitee
parent 475435d625
commit f97c387be8

View File

@ -307,14 +307,82 @@
return; return;
} }
if ($(e).text().indexOf('trade') >= 0) { // 交易 /**
if ($(e).text().indexOf('You must now accept') >= 0) { // 接受交易 * 交易
*/
if ($(e).text().indexOf('trade') >= 0) {
const PCHC = '点此继续';
if ($(e).text().indexOf('You must now accept') >= 0) {
/**
* 接受交易
* <a href="profiles.php?XID=2703642">JNZR</a>
* has accepted the trade titled "g't". You must now accept to finalize it.
* <a href="trade.php#step=view&amp;ID=6567058" i-data="i_598_654_156_14">Please click here to continue.</a>
* JNZR已经接受了名为 "g't "的交易你现在必须接受以完成它
*/
const firstWords = e.childNodes[1].nodeValue.split('. You must')[0];
const tradeName = firstWords.slice(31, firstWords.length);
e.childNodes[1].nodeValue = ' 已经接受了名为 ' + tradeName + ' 的交易。你现在必须接受以完成它。';
e.childNodes[2].firstChild.nodeValue = PCHC;
return; return;
} }
if ($(e).text().indexOf('expired') >= 0) { // 交易过期 if ($(e).text().indexOf('expired') >= 0) {
/**
* 交易过期
* The trade with
* <a href="profiles.php?XID=2696209" i-data="i_278_269_71_14">sabrina_devil</a>
* has expired
* 与sabrina_devil的交易已经过期
*/
e.firstChild.nodeValue = '与 ';
e.childNodes[2].nodeValue = ' 的交易已过期。';
return; return;
} }
if ($(e).text().indexOf('initiated') >= 0) { // 交易发起 if ($(e).text().indexOf('initiated') >= 0) {
/**
* 交易发起
* <a href="profiles.php?XID=2696209" i-data="i_199_374_71_14">sabrina_devil</a>
* has initiated a trade titled "gt".
* <a href="trade.php#step=view&amp;ID=6563577" i-data="i_435_374_156_14">Please click here to continue.</a>
* sabrina_devil发起了一项名为 "gt "的交易
*/
const node2 = e.childNodes[1].nodeValue;
const tradeName = node2.slice(30, node2.length - 2);
e.childNodes[1].nodeValue = ' 发起了标题为 ' + tradeName + ' 的交易。';
e.childNodes[2].firstChild.nodeValue = PCHC;
return;
}
if ($(e).text().indexOf('now complete') >= 0) {
/**
* 交易完成
* <a href="profiles.php?XID=2692672" i-data="i_199_829_51_14">Tmipimlie</a>
* has accepted the trade. The trade is now complete.
* Tmipimlie已经接受交易现在交易已经完成
*/
e.childNodes[1].nodeValue = ' 已经接受交易。该交易现已完成。';
return;
}
if ($(e).text().indexOf('canceled') >= 0) {
/**
* 交易完成
* <a href="profiles.php?XID=2431991">WOW</a>
* has canceled the trade.
* WOW已经取消了这项交易
*/
e.childNodes[1].nodeValue = ' 已经取消了这个交易。';
return;
}
if ($(e).text().indexOf('commented') >= 0) {
/**
* 交易评论
* <a href="profiles.php?XID=2567772">QIJI</a>
* commented on your
* <a href="/trade.php#step=view&amp;ID=6405880" i-data="i_334_968_73_14">pending trade</a>
* : "Thank you for trading with me! The total is $19,461,755 and you can view your receipt here: https://www.tornexchange.com/receipt/mhWuuL7hrE"
*/
e.childNodes[1].nodeValue = ' 对';
e.childNodes[2].firstChild.nodeValue='进行中的交易';
e.childNodes[3].nodeValue = '添加了一条评论'+e.childNodes[3].nodeValue;
return; return;
} }
return; return;
@ -347,7 +415,7 @@
* zstorm won $5,574,200 in the Daily Dime lottery! * zstorm won $5,574,200 in the Daily Dime lottery!
*/ */
if ($(e).text().indexOf('lottery') >= 0) { if ($(e).text().indexOf('lottery') >= 0) {
console.log('彩票') //console.log('彩票')
const split = e.childNodes[1].nodeValue.split(' '); const split = e.childNodes[1].nodeValue.split(' ');
const type = split[split.length - 3] + ' ' + split[split.length - 2]; const type = split[split.length - 3] + ' ' + split[split.length - 2];
const money = split[2]; const money = split[2];
@ -375,6 +443,22 @@
return; return;
} }
/**
* new virus病毒
* You completed the Simple Virus which is now in your inventory. You can begin programming a new virus
* <a href="pc.php">here</a>
* .
*
* 你完成了 "简单病毒"它现在在你的库存中你可以点此开始编程一个新的病毒
*/
if ($(e).text().indexOf('new virus') >= 0) {
const virusName=e.firstChild.nodeValue.split(' ').slice(3,5).join(' ');
e.firstChild.nodeValue='你完成了 '+virusName+' ,它现在在你的物品库存中。你可以';
e.childNodes[1].firstChild.nodeValue='点此';
e.childNodes[2].nodeValue='开始编程一个新的病毒。';
return;
}
if ($(e).text().indexOf('doorstep') >= 0) { // 蓝星奖励 if ($(e).text().indexOf('doorstep') >= 0) { // 蓝星奖励
return; return;
} }