|
|
@ -31,12 +31,22 @@ const settings = definePluginSettings({
|
|
|
|
description: "Show the invites paused tooltip in the server list.",
|
|
|
|
description: "Show the invites paused tooltip in the server list.",
|
|
|
|
default: true,
|
|
|
|
default: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
showModView: {
|
|
|
|
|
|
|
|
type: OptionType.BOOLEAN,
|
|
|
|
|
|
|
|
description: "Show the member mod view context menu item in all servers.",
|
|
|
|
|
|
|
|
default: true,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
disableDiscoveryFilters: {
|
|
|
|
|
|
|
|
type: OptionType.BOOLEAN,
|
|
|
|
|
|
|
|
description: "Disable filters in Server Discovery search that hide servers that don't meet discovery criteria.",
|
|
|
|
|
|
|
|
default: true,
|
|
|
|
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
migratePluginSettings("ShowHiddenThings", "ShowTimeouts");
|
|
|
|
migratePluginSettings("ShowHiddenThings", "ShowTimeouts");
|
|
|
|
export default definePlugin({
|
|
|
|
export default definePlugin({
|
|
|
|
name: "ShowHiddenThings",
|
|
|
|
name: "ShowHiddenThings",
|
|
|
|
tags: ["ShowTimeouts", "ShowInvitesPaused"],
|
|
|
|
tags: ["ShowTimeouts", "ShowInvitesPaused", "ShowModView", "DisableDiscoveryFilters"],
|
|
|
|
description: "Displays various moderator-only elements regardless of permissions.",
|
|
|
|
description: "Displays various moderator-only elements regardless of permissions.",
|
|
|
|
authors: [Devs.Dolfies],
|
|
|
|
authors: [Devs.Dolfies],
|
|
|
|
patches: [
|
|
|
|
patches: [
|
|
|
@ -55,6 +65,22 @@ export default definePlugin({
|
|
|
|
match: /\i\.\i\.can\(\i\.Permissions.MANAGE_GUILD,\i\)/,
|
|
|
|
match: /\i\.\i\.can\(\i\.Permissions.MANAGE_GUILD,\i\)/,
|
|
|
|
replace: "true",
|
|
|
|
replace: "true",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
find: "canAccessGuildMemberModViewWithExperiment:",
|
|
|
|
|
|
|
|
predicate: () => settings.store.showModView,
|
|
|
|
|
|
|
|
replacement: {
|
|
|
|
|
|
|
|
match: /return \i\.hasAny\(\i\.computePermissions\(\{user:\i,context:\i,checkElevated:!1\}\),\i\.MemberSafetyPagePermissions\)/,
|
|
|
|
|
|
|
|
replace: "return true",
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
find: "auto_removed:",
|
|
|
|
|
|
|
|
predicate: () => settings.store.disableDiscoveryFilters,
|
|
|
|
|
|
|
|
replacement: {
|
|
|
|
|
|
|
|
match: /filters:\i\.join\(" AND "\),facets:\[/,
|
|
|
|
|
|
|
|
replace: "facets:["
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
settings,
|
|
|
|
settings,
|
|
|
|