🎉 Help developers manage accounts
English | 简体ä¸æ–‡
git clone https://github.com/xuerzong/auth-manager.git
# or
git clone git@github.com:xuerzong/auth-manager.git
cd auth-manager
yarn install
yarn dev
// src/services/auth.ts
import type { AccountInterface } from '@/types/account'
export const select = async (account: AccountInterface) => {
// selected
}
export default { select }
yarn build
then:
-
Open the Extension Management page by navigating to
chrome://extensions
-
Enable the
Developer mode
-
Use the
Load unpacked
button to select thedist
dir.
@/libs/cookies
import cookies from '@/libs/cookies'
cookies.set(KEY, VALUE)
@/libs/tabs
import tabs from '@/libs/tabs'
tabs.reload() // Reload current tab
@/libs/storage
import storage from '@/libs/storage'
storage.get(KEY)
storage.set(KEY, VALUE)
@/libs/router
import router from '@/libs/router'
router.goto(LOCATION)
@/libs/request
import reuqest from '@/libs/request'
request.get(...args)
request.post(...args)