Created
August 2, 2024 06:02
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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