ShowHiddenThings: more effectively explode Algolia filters (#2484)
Co-authored-by: vee <vendicated@riseup.net>
This commit is contained in:
parent
9c092b9c29
commit
08d7de06b2
1 changed files with 11 additions and 3 deletions
|
@ -80,11 +80,19 @@ export default definePlugin({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: "auto_removed:",
|
find: "prod_discoverable_guilds",
|
||||||
predicate: () => settings.store.disableDiscoveryFilters,
|
predicate: () => settings.store.disableDiscoveryFilters,
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /filters:\i\.join\(" AND "\),facets:\[/,
|
match: /\{"auto_removed:.*?\}/,
|
||||||
replace: "facets:["
|
replace: "{}"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
find: "MINIMUM_MEMBER_COUNT:",
|
||||||
|
predicate: () => settings.store.disableDiscoveryFilters,
|
||||||
|
replacement: {
|
||||||
|
match: /MINIMUM_MEMBER_COUNT:function\(\)\{return \i}/,
|
||||||
|
replace: "MINIMUM_MEMBER_COUNT:() => \">0\""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue