ShowHiddenThings: fix discovery filter bypass (#2626)

Co-authored-by: vee <vendicated@riseup.net>
main
Lorenzo Rizzotti 5 months ago committed by GitHub
parent cd205b1386
commit 4008c93069
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -105,6 +105,15 @@ export default definePlugin({
replace: "=[]" replace: "=[]"
} }
}, },
// empty 2nd word filter
{
find: '"pepe","nude"',
predicate: () => settings.store.disableDisallowedDiscoveryFilters,
replacement: {
match: /\?\["pepe",.+?\]/,
replace: "?[]",
},
},
// patch request that queries if term is allowed // patch request that queries if term is allowed
{ {
find: ".GUILD_DISCOVERY_VALID_TERM", find: ".GUILD_DISCOVERY_VALID_TERM",

Loading…
Cancel
Save