ShowHiddenThings: fix discovery filter bypass (#2626)
Co-authored-by: vee <vendicated@riseup.net>
This commit is contained in:
parent
cd205b1386
commit
4008c93069
1 changed files with 9 additions and 0 deletions
|
@ -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…
Reference in a new issue