中文 | English
Universal Multi-Site Multi-Account Switcher
AnMe is a userscript for Tampermonkey and ScriptCat that saves and restores login snapshots for multiple websites. It captures Cookies, LocalStorage, and SessionStorage so you can switch between accounts in the same browser window without re-entering credentials every time.
- Fast account switching with one-click snapshot restore
- Save Cookies, LocalStorage, and SessionStorage together
- Cross-site account management from a single floating panel
- Site name support with domain fallback for older records
- Import and export local backups as JSON files
- Optional WebDAV cloud backup and restore
- Draggable floating button with auto, always-show, and hidden modes
- Account search, site search, and drag-and-drop ordering
- Simplified Chinese, English, and Spanish UI
-
Install Tampermonkey or ScriptCat.
-
For Tampermonkey, enable Cookie access:
- Open the Tampermonkey dashboard.
- Go to
Settings. - Change
Config modetoAdvanced. - In
Security, setAllow scripts to access cookiestoALL. - Save the settings.
ScriptCat does not require this extra step. It asks for permission when needed.
-
Install the script:
- Install from Greasy Fork
- Or build from this repository and install the generated
AnMe.user.js
- Log in to the website you want to save.
- Open the floating panel.
- Click the save button.
- Confirm the site name and account name.
- Choose which data types to store.
- Save the snapshot.
If the current website already has saved accounts, the save dialog focuses the account name field first so you can add another account quickly.
- Open the panel on the target site.
- Pick an account card.
- The script clears the current environment, restores the selected snapshot, and reloads the page.
You can inspect stored CK, LS, and SS data directly from the account card tags.
- The site dropdown can display either saved site names or plain domains.
- If an old record has no saved site name, AnMe keeps showing the domain instead of mixing in the current page title.
- Account names are independent per site, while the site name is shared across accounts on the same domain.
- Export the current site or all saved data as JSON
- Import a JSON backup on another browser or machine
- Clear all script data from the advanced settings page
AnMe includes an optional WebDAV sync page:
- Configure server URL, username, and password
- Verify credentials before saving
- Upload the current local data as a single
.anmebackup file - View cached backup metadata locally for faster page entry
- Manually refresh the cloud list when needed
- Restore from any cloud backup
- Delete cloud backups
- Sign out and remove saved local WebDAV credentials
WebDAV requests use a timeout to avoid leaving the panel stuck in a loading state.
- Local data is stored through
GM_setValuein your userscript manager. - AnMe does not upload anything by default.
- Network access is only used when you explicitly configure and use WebDAV sync.
- Snapshot validity still depends on each website's own session policy.
- Do not store sensitive accounts on public or untrusted devices.
- Some websites bind sessions to device signals, browser fingerprints, or server-side risk controls.
- On those sites, restoring Cookies and storage data may still fail.
- Re-saving an account after a successful login can refresh an expired snapshot.
Source entry: src/main.js
Available scripts:
npm testnpm run build
Build output:
AnMe.user.js
If this project is useful to you, give it a star or support the author.
| WeChat Pay | Alipay |
|---|---|
![]() |
![]() |



