Update class names of all themes in a folder.
Thanks to SyndiShanX for the diff. If you are updating only a single file, use their online tool instead: https://syndishanx.github.io/Website/Update_Classes.html
⚠ Make a backup of your themes before using this script.
Next to themes folder:
git clone https://github.com/Saltssaumure/ClassUpdate
cd ./ClassUpdate
python ./replace.py
Feel free to delete or move the ClassUpdate
folder after use.
Variable | Default value |
---|---|
Themes directory | themes |
File extension | css |
Diff URL | https://raw.githubusercontent.com/SyndiShanX/Update-Classes/main/Changes.txt |
Files marked with ↻
will be updated by the script if using the default values above.
WorseDiscord/
├── themes/
│ ├── CoolTheme.theme.css ↻
│ ├── DarkMode2.theme.css ↻
│ ├── another.theme.css ↻
│ └── testfolder/
│ ├── test.theme.css ↻
│ ├── something.css ↻
│ └── wargh.txt
├── MyCoolWebsite/
│ ├── site.html
│ └── main.css
└── ClassUpdate (this tool)/
├── replace.py
└── README.md