parent
1a607639cc
commit
61fac0a8f1
1 changed files with 4 additions and 2 deletions
|
@ -84,8 +84,10 @@ export default definePlugin({
|
||||||
find: "showProgressBadge:",
|
find: "showProgressBadge:",
|
||||||
predicate: () => settings.store.hidePremiumOffersCount,
|
predicate: () => settings.store.hidePremiumOffersCount,
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /=\i\.unviewedTrialCount\+\i\.unviewedDiscountCount/,
|
// The two groups inside the first group grab the minified names of the variables,
|
||||||
replace: "=0"
|
// they are then referenced later to find unviewedTrialCount + unviewedDiscountCount.
|
||||||
|
match: /(?<=\{unviewedTrialCount:(\i),unviewedDiscountCount:(\i)\}.{0,200}\i=)\1\+\2/,
|
||||||
|
replace: "0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue