1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-11 02:16:23 +00:00

fix: NoPendingCount (#1871)

Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
redstonekasi 2023-10-25 18:46:32 +02:00 committed by Luna
parent bb9472b0df
commit 1a9c67bb56

View file

@ -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"
} }
} }
], ],