Skip to content

Instantly share code, notes, and snippets.

View Gyong1211's full-sized avatar

GiHong Kim Gyong1211

View GitHub Profile
@MahouSirin
MahouSirin / backup.js
Created July 13, 2021 10:31
PAIMON.MOE Backup/Restore Script
var keys = ['wish-counter-beginners', 'wish-counter-character-event', 'wish-counter-standard', 'wish-counter-weapon-event'];
var backupData = {};
(async () => {
for await (const key of keys) {
backupData[key] = await localforage.getItem(key);
}
copyToClipboard(JSON.stringify(backupData));
console.log('Copy completed!!!');
})();