why is Chromium?
Microsoft Edge 和 Google Chrome 都是基于 Chromium 的。
Edge 自从换到了 Chromium 在早期还好,可以使用微软账户,自动填充密码和书签挺方便的,还能直接使用Chrome插件。
但是现在又是如此,添加了无数个傻逼Feature,我真的是不想用这该死的Feature。
但是又不太想用 Chrome,所以尝试一下 Chromium,Chromium 原生是没办法在线同步账户的,所以得使用点技巧使得其支持
注:我在Mac上已经直接使用了Chrome,没有更好的办法。
简单的办法(not recommend)
添加启动参数(不要修改内容):
--oauth2-client-id=77185425430.apps.googleusercontent.com
--oauth2-client-secret=OTJgUOQcT7lO7GsGZq2G4IlT
使用自己的 Google Cloud API
please check origin thread: https://stackoverflow.com/questions/67459316/enabling-chromium-to-sync-with-google-account
- Download Chromium.
- You’ll notice a yellow disclaimer message appear as a doorhanger:
Google API Keys are missing. Some functionality of Chromium will be disabled. Learn More.
- Clicking on that link takes you to the confusing API Keys docs page.
- If you aren’t already, subscribe to the chromium-dev@chromium.org mailing list. (You can just subscribe to the list and choose to not receive any mail. FYI: the Chromium project restricts the APIs to those subscribed to that group - that is, Chromium devs.)
- Make sure you are logged in with the Google account associated with the email address that you used to subscribe to chromium-dev.
- Log in to the Google Cloud Platform, and select an existing project or press the “Create Project” button.
- From the project’s API Manager, select the Credentials tab in the sidebar.
- Create a Browser API Key.
- You’ll see a modal with an API key. Copy and paste that somewhere.
- Now create an OAuth Client ID.
- After you complete all the steps and the “content screen,” you’ll be presented with a modal with your Google Client ID and Client Secret.
- You’ll need to set three environment variables:
On Windows: Launch cmd.exe and enter the following commands:
setx GOOGLE_API_KEY your_key_goes_here
setx GOOGLE_DEFAULT_CLIENT_ID your_client_id_goes_here
setx GOOGLE_DEFAULT_CLIENT_SECRET your_client_secret_goes_here
On Mac OS X
launchctl setenv GOOGLE_API_KEY {your_keys}
launchctl setenv GOOGLE_DEFAULT_CLIENT_ID {your_keys}
launchctl setenv GOOGLE_DEFAULT_CLIENT_SECRET {your_keys}
on Linux: Plop these in your ~/.profile file:
export GOOGLE_API_KEY="your_key_goes_here"
export GOOGLE_DEFAULT_CLIENT_ID="your_client_id_goes_here"
export GOOGLE_DEFAULT_CLIENT_SECRET="your_client_secret_goes_here"
ref:
https://stackoverflow.com/questions/67459316/enabling-chromium-to-sync-with-google-account