ShowHiddenThings: Allow opening mod view on yourself (#3045)

This commit is contained in:
sadan4 2024-11-24 19:30:27 -05:00 committed by GitHub
parent 5fb63246ca
commit 23c9e2ce22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -75,6 +75,15 @@ export default definePlugin({
replace: "$1$2arguments[0].member.highestRoleId]",
}
},
// allows you to open mod view on yourself
{
find: ".MEMBER_SAFETY,{modViewPanel:",
predicate: () => settings.store.showModView,
replacement: {
match: /\i(?=\?null)/,
replace: "false"
}
},
{
find: "prod_discoverable_guilds",
predicate: () => settings.store.disableDiscoveryFilters,