Add NoOnboarding Setting (#1361)

* Add NoOnboarding plugin

* Move NoOnboarding logic to EquicordHelper
This commit is contained in:
Kofhisho 2026-09-23 06:15:49 +01:00 • committed by GitHub
parent 852eafd2b9
commit b31d339182
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -137,6 +137,12 @@ const settings = definePluginSettings({
description: "Hide voice indicator in server list when only active channels are muted", description: "Hide voice indicator in server list when only active channels are muted",
restartNeeded: true, restartNeeded: true,
default: false, default: false,
},
noOnboarding: {
type: OptionType.BOOLEAN,
description: "Skips the server onboarding by gaslighting it",
restartNeeded: true,
default: false,
} }
}); });
@ -155,7 +161,8 @@ export default definePlugin({
EquicordDevs.omaw, EquicordDevs.omaw,
Devs.Samwich, Devs.Samwich,
Devs.AutumnVN, Devs.AutumnVN,
EquicordDevs.auggeeo EquicordDevs.auggeeo,
EquicordDevs.secp192k1
], ],
required: true, required: true,
settings, settings,
@ -349,6 +356,14 @@ export default definePlugin({
], ],
predicate: () => settings.store.hideVoiceIndicatorForMutedChannels, predicate: () => settings.store.hideVoiceIndicatorForMutedChannels,
}, },
{
find: 'type:"GUILD_ONBOARDING_PROMPTS_FETCH_START"',
replacement: {
match: /(?<="GUILD_ONBOARDING_PROMPTS_FETCH_SUCCESS",guildId:\i,\.\.\.\i)(?=\})/,
replace: ",enabled:!1"
},
predicate: () => settings.store.noOnboarding
},
// Add opening profile functionality to some connections // Add opening profile functionality to some connections
{ {
find: "getPlatformUserUrl:", find: "getPlatformUserUrl:",