We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Custom CSS from old Bandaged Discord doesn't move over.
To Reproduce Steps to reproduce the behavior:
Expected behavior CSS is converted to newer version.
System Information:
The text was updated successfully, but these errors were encountered:
Open the devtools with Ctrl + Shift + i Go to Console Paste this code and press enter
Ctrl + Shift + i
Console
function getLegacyCustomCSS() { const fs = require('fs'); let bdStorage = JSON.parse(fs.readFileSync(process.env.APPDATA + '\\BetterDiscord\\bdstorage.json', 'utf8')); BdApi.showConfirmationModal('Migrate Legacy Custom CSS', [ BdApi.React.createElement('div', { className: 'markup-2BOw-j' }, BdApi.React.createElement('pre', { style: {maxWidth: 'unset'} }, BdApi.React.createElement('code', { className: 'scrollbarGhostHairline-1mSOM1 scrollbar-3dvm_9 hljs' }, atob(bdStorage.bdcustomcss)))) ], { danger: false, confirmText: 'Migrate CSS', onConfirm: () => { migrate('stable'); migrate('ptb'); migrate('canary'); } } ); function migrate(platform) { fs.appendFile(process.env.APPDATA + `\\BetterDiscord\\data\\${platform}\\custom.css`, atob(bdStorage.bdcustomcss), (err) => { if (err) { BdApi.showToast(`Could not migrate CSS on ${platform}.`, {type: 'danger'}); } else { BdApi.showToast(`CSS migrated to ${process.env.APPDATA}\\BetterDiscord\\data\\${platform}\\custom.css`, {type: 'success'}); } }); } } getLegacyCustomCSS();
Sorry, something went wrong.
Thanks! It worked like a charm!
No branches or pull requests
Describe the bug
Custom CSS from old Bandaged Discord doesn't move over.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
CSS is converted to newer version.
System Information:
The text was updated successfully, but these errors were encountered: