Automatically redirect google service to default account

Latest Version

Version
0.0.2
Update
January 15, 2023
Size
99.23KiB
Developer
Category
Users
40
Rating
4 ★
Manifest Version
3
Web Store Status
Languages Support
English (United States)
See more
Permissions
Storage
WebNavigation
See more

Google Default Account Extension

This extension is designed for users who work with multiple Google accounts and want to set a default account for these services, specifically for Google Meet.

Whether the primary Google account you are logged in to, this extension allows you to pick a default account to use for Google Meet, Gmail, Google Drive and Google Photos.

With this extension, you can easily switch between your personal and work accounts without annoying switching every time.

How to find the account id from URL?

1. Google Meet
https://meet.google.com/xxx-xxx-xxx?authuser=1
ID = 1

2. Google Photo
https://photos.google.com/u/3/
ID = 3

3. Gmail
https://mail.google.com/mail/u/0/
ID = 0

4. Google Drive
https://drive.google.com/drive/u/2/
ID = 2

!!Attention!!
This extension only redirect to default account when url DOES NOT specify a user id.

For example:
When default Google Photo account id is 3
https://photos.google.com/ -> redirect to -> https://photos.google.com/u/3/

If you specify a account id 4, for example:
https://photos.google.com/u/4/
Then extension will avoid to redirect to account 3, let you can use account 4 to use Google Photo.
Other Google services are the same behavior.

Open source:
https://github.com/Jim-Chang/google-default-account
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "Google Default Account", "version": "0.0.2", "description": "Automatically redirect google service to default account", "manifest_version": 3, "permissions": [ "storage", "webNavigation" ], "icons": { "128": "icon-128.png" }, "action": { "default_popup": "popup-panel/index.html" }, "background": { "service_worker": "background.js", "type": "module" }}
Read more