Skip to content

Instantly share code, notes, and snippets.

@meowabyte
Created August 2, 2024 06:02
Show Gist options
  • Save meowabyte/02a3a81700112fbe415c773dc4f93802 to your computer and use it in GitHub Desktop.
Save meowabyte/02a3a81700112fbe415c773dc4f93802 to your computer and use it in GitHub Desktop.
Simple script for cleaning Vencord out of old themes/configurations of nonexistant plugins
// You need to save configuration after that by for example
// force saving config to cloud or by clicking save on any
// plugin settings
Vencord.Settings.enabledThemes = []
console.log("Disabled all local themes")
const pluginsNow = Object.keys(Vencord.Plugins.plugins).map(p => p.toLowerCase())
let pc = 0
Object.keys(Vencord.Settings.plugins).forEach(p => {
if(!pluginsNow.includes(p.toLowerCase())) {
pc++
console.log(`${p} doesn't exist. Removing configuration.`)
delete Vencord.Settings.plugins[p]
}
})
console.log(`Cleared ${pc} configurations`)
console.log("Force save your config now!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment