Skip to content

Zhu-junwei/AnMe

Repository files navigation

AnMe

中文 | English

AnMe is a universal multi-site, multi-account switcher. It saves and restores login snapshots for websites, including Cookies, LocalStorage, and SessionStorage, so you can switch accounts from a compact floating panel.

AnMe is available in two forms:

  • Browser extension for Firefox, Edge, Chrome, and other Chromium-based browsers.
  • Userscript for Tampermonkey and ScriptCat.

Downloads

Userscript

Target Download Notes
Greasy Fork Install from Greasy Fork Recommended Tampermonkey install source.
ScriptCat Install from ScriptCat Recommended ScriptCat install source.
jsDelivr AnMe.user.js Direct userscript file.

Browser Extension

Browser Download Notes
Firefox Firefox Add-ons Available now.
Edge Microsoft Edge Add-ons Available now.
Chrome GitHub Actions build Chrome Web Store is not available yet. Use the Chromium extension artifact from the latest successful workflow run, or build locally.

GitHub Actions Downloads

Open Build Artifacts, run the workflow manually, then download the artifacts from the completed run:

  • AnMe-userscript-<version>.user.js: versioned userscript package.
  • AnMe-chromium-<version>.zip: Chromium package for Chrome and Edge.
  • AnMe-firefox-<version>.xpi: Firefox package.

Build Locally

Install dependencies and run tests:

npm install
npm test

Build only the userscript:

npm run build:userscript

Build only the browser extensions:

npm run build:extension

Build everything:

npm run build

The userscript build creates:

  • AnMe.user.js: direct userscript file.
  • dist/packages/AnMe-userscript-<version>.user.js: versioned userscript package.

The extension build creates:

  • dist/extension/chromium: unpacked extension for Chrome and Edge developer mode.
  • dist/extension/firefox: unpacked extension for Firefox temporary debugging.
  • dist/packages/AnMe-chromium-<version>.zip: Chromium package.
  • dist/packages/AnMe-firefox-<version>.xpi: Firefox package.

Load the Extension Manually

Chrome / Edge:

  1. Open the extensions page.
  2. Enable developer mode.
  3. Choose Load unpacked.
  4. Select dist/extension/chromium.

Firefox:

  1. Open about:debugging#/runtime/this-firefox.
  2. Choose Load Temporary Add-on.
  3. Select dist/extension/firefox/manifest.json.

Userscript Setup

Install Tampermonkey or ScriptCat, then install AnMe from Greasy Fork, ScriptCat, or the direct jsDelivr userscript file.

For Tampermonkey, enable Cookie access:

  1. Open the Tampermonkey dashboard.
  2. Go to Settings.
  3. Change Config mode to Advanced.
  4. In Security, set Allow scripts to access cookies to ALL.
  5. Save the settings.

ScriptCat asks for permission when needed and does not require this extra setting.

Features

  • Fast account switching with one-click snapshot restore.
  • Save Cookies, LocalStorage, and SessionStorage together.
  • Manage multiple websites and accounts from one floating panel.
  • Search sites and accounts, rename sites, edit saved account data, and reorder records.
  • Import and export local JSON backups.
  • Optional WebDAV backup and restore.
  • Simplified Chinese, English, and Spanish UI.

Basic Usage

Save an Account

  1. Log in to the website you want to save.
  2. Open the floating panel.
  3. Click the save button.
  4. Confirm the site name and account name.
  5. Choose which data types to store.
  6. Save the snapshot.

Switch an Account

  1. Open the panel on the target site.
  2. Pick an account card.
  3. AnMe 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.

Backup and Restore

  • Export the current site or all saved data as JSON.
  • Import a JSON backup on another browser or machine.
  • Configure optional WebDAV backup and restore.
  • Restore or delete WebDAV backups from the built-in backup page.

Privacy and Security

  • Account data is stored locally by default.
  • AnMe does not upload anything unless 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.

Development

Source entry: src/main.js

Available commands:

npm test
npm run build:userscript
npm run build:extension
npm run build

Build outputs:

  • npm run build:userscript generates AnMe.user.js and dist/packages/AnMe-userscript-<version>.user.js.
  • npm run build:extension generates dist/extension/* and dist/packages/*.
  • npm run build / npm run build:all generates both userscript and extension outputs.

Generated extension dist/ output is ignored by git. AnMe.user.js is kept in the repository for direct userscript downloads.

Support

If this project is useful to you, give it a star or support the author.

WeChat Pay Alipay

About

Universal Multi-Site Account Switcher. 通用多网站多账号切换器。

Topics

Resources

License

Stars

Watchers

Forks

Contributors