LOCAL DATA
Your data. Your move.
Both languages use the same storage keys on the same origin. Switching language does not translate or reset your saved names, recipes or bills. Different domains, protocols, ports and browser profiles have separate storage; migration is never automatic.
1. Export from the old origin
- Open the old site in the browser profile that contains your data.
- On a desktop browser, read the script below before running it in that old site’s developer console. This new site cannot read another origin’s storage, and there is no one-click mobile migration.
- Keep the exported JSON file and the original site data.
Read the export script (six original storage keys)
/* 在旧站标签页的开发者工具 Console 中执行整个脚本。
只读取下方六个键;不联网、不改动存储、不读取其他键、不自动复制剪贴板。 */
(() => {
const keys = ['just-spin-options-v1','just-spin-presets-v1','tiny-toolbox-unit-price-v1','tiny-toolbox-aa-ledgers-v1','tiny-toolbox-recipes-v1','tiny-toolbox-random-groups-v1'];
try {
const entries = {};
for (const key of keys) { const raw = localStorage.getItem(key); if (raw !== null) entries[key] = raw; }
const text = JSON.stringify({format:'tiny-task-kit-local-data',version:1,exportedAt:new Date().toISOString(),sourceOrigin:location.origin,entries},null,2);
if (new TextEncoder().encode(text).length > 5*1024*1024) throw new Error('备份超过 5 MiB,未下载也未改动存储。');
const url = URL.createObjectURL(new Blob([text],{type:'application/json'}));
const link=document.createElement('a');link.href=url;link.download='tiny-toolbox-local-data.json';document.body.append(link);link.click();link.remove();setTimeout(()=>URL.revokeObjectURL(url),1000);
console.info(`已发起备份下载:${Object.keys(entries).length} 个键。请确认文件已保存。旧站数据没有删除。`);
} catch (error) { console.error('导出失败,原数据未修改。',error); }
})();
Download export scriptIncludes wheel drafts/presets, unit-price drafts, bills, saved original recipes, and group members/rules. Images, comparison lists, unsaved recipes and generated group results are not backed up.
2. Inspect a local backup
Up to 5 MiB. Invalid formats and unknown keys are rejected. Close other tool tabs to avoid conflicting autosaves. English and Chinese data use the same validation rules.
3. Back up the destination, then replace deliberately
No keys are selected by default. This replaces selected storage values; it does not merge names or IDs. Download the destination backup first, make sure it is saved, then choose the keys to import.
Reopen tools after import to check your data. Browser storage has no multi-key transaction: failed writes attempt rollback and report the outcome, but rollback is not guaranteed if storage stays unavailable. Browser storage is not a permanent backup or cloud sync.
Privacy notes →