Skip to content

Commit a287908

Browse files
authored
Remove internal market trades in ViewTrades #14
Remove internal market trades in ViewTrades
2 parents fe3731e + ccdf83e commit a287908

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

static/scripts/ViewTrades.user.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name Doc: View Trades
33
// @namespace https://politicsandwar.com/nation/id=19818
4-
// @version 6.92
4+
// @version 6.93
55
// @description Make Trading on the market Better!
66
// @author BlackAsLight
77
// @include https://politicsandwar.com/index.php?id=26*
@@ -448,6 +448,10 @@ function UpdateQuantities() {
448448
}
449449

450450
function CreateRow(tdTags) {
451+
const internalMarketTrade = tdTags[1].querySelector('span[title*="This trade from your shared alliance market"]')
452+
if (internalMarketTrade) {
453+
return
454+
}
451455
const sellerWanted = tdTags[1].textContent === 'SELLER WANTED'
452456
const buyerWanted = tdTags[2].textContent === 'BUYER WANTED'
453457
const offerType = (() => {

0 commit comments

Comments
 (0)