{"id":26044311,"url":"https://github.com/altersquareio/preferred-google-login","last_synced_at":"2025-03-07T18:17:57.095Z","repository":{"id":278892065,"uuid":"937095583","full_name":"altersquareio/preferred-google-login","owner":"altersquareio","description":"This Chrome extension simplifies switching between multiple Google accounts by automatically adding the authuser parameter to relevant Google domains.","archived":false,"fork":false,"pushed_at":"2025-03-05T13:00:24.000Z","size":256,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T13:41:24.315Z","etag":null,"topics":["browser","browser-extension","chrome","chrome-extension","google"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/altersquareio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-22T10:22:45.000Z","updated_at":"2025-03-05T13:00:28.000Z","dependencies_parsed_at":"2025-02-22T11:25:25.606Z","dependency_job_id":"93b046c4-8af2-4012-94f9-bd178230979e","html_url":"https://github.com/altersquareio/preferred-google-login","commit_stats":null,"previous_names":["rohandhamapurkar/default-google-account-extension","altersquareio/default-google-account-extension","altersquareio/preferred-google-login"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altersquareio%2Fpreferred-google-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altersquareio%2Fpreferred-google-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altersquareio%2Fpreferred-google-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altersquareio%2Fpreferred-google-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/altersquareio","download_url":"https://codeload.github.com/altersquareio/preferred-google-login/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242437689,"owners_count":20128090,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser","browser-extension","chrome","chrome-extension","google"],"created_at":"2025-03-07T18:17:56.679Z","updated_at":"2025-03-07T18:17:57.069Z","avatar_url":"https://github.com/altersquareio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Default Google User Chrome Extension\n\nThis Chrome extension simplifies switching between multiple Google accounts by automatically adding the `authuser` parameter to relevant Google domains.\n\n## Description\n\nThe `authuser` parameter in Google URLs specifies which account should be used when accessing a Google service. This extension automates the process of adding this parameter, allowing you to easily switch between accounts without manually editing URLs.  It also prevents the `authuser` parameter from being repeatedly added to the URL, avoiding infinite redirect loops.\n\n## Features\n\n* **Automatic `authuser` Parameter Insertion:** The extension automatically adds the `authuser` parameter to the URLs of specified Google domains.\n* **Domain Whitelisting:** Configure the extension to only add the `authuser` parameter to specific domains, preventing it from affecting other websites.\n* **Easy Account Switching:** Quickly switch between Google accounts by simply changing the email address in the extension's popup.\n* **Enable/Disable:** Easily enable or disable the extension with a single toggle.\n* **Prevent Duplicate Parameter Insertion:** The extension prevents the `authuser` parameter from being added multiple times, avoiding redirect loops.\n\n## Installation\n\n1. Clone this repository: `git clone https://github.com/rohandhamapurkar/default-google-account-extension.git`\n2. Open Chrome and go to `chrome://extensions/`.\n3. Enable \"Developer mode\" in the top right corner.\n4. Click \"Load unpacked\" and select the directory where you cloned the repository.\n\n## Usage\n\n1. Click the extension icon in the Chrome toolbar to open the popup.\n2. **Enable/Disable:** Use the toggle to enable or disable the extension.\n3. **Domains:** Enter the Google domains you want the extension to affect, one domain per line. For example:\n```\nmail.google.com\ndrive.google.com\nyoutube.com\n```\n\n4. **Authuser Email:** Enter the email address of the Google account you want to use by default.\n5. Click \"Save\".\n\nThe extension will now automatically add the `authuser` parameter to the specified domains. To switch to a different account, simply change the email address in the popup and save the changes.\n\n## Code Explanation\n\nThe extension uses `chrome.storage` to persist the enabled state, allowed domains, and the authuser email. The `content.js` script runs at `document_start` and checks if the extension is enabled and the current domain is allowed. If both conditions are met, it adds the `authuser` parameter to the URL.  Critically, it checks if the parameter is already present to prevent infinite redirect loops.\n\nThe `popup.html` file creates the user interface for configuring the extension.  The `popup.js` script handles saving and loading the configuration from `chrome.storage`.\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request if you have any suggestions or improvements.\n\n## License\n\nThis extension is licensed under the [MIT License](LICENSE).\n\n## Credits\n\nThis extension was developed by Rohan Dhamapurkar.\n\n## Contact\n\nIf you have any questions or issues, please contact dhamapurkar54@gmail.com.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltersquareio%2Fpreferred-google-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faltersquareio%2Fpreferred-google-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltersquareio%2Fpreferred-google-login/lists"}