/gcp-authuser-enforcer

Primary LanguageJavaScriptMIT LicenseMIT

GCP AuthUser Enforcer

A Chrome extension that automatically enforces a specified authuser parameter for Google Cloud Platform (GCP) pages.

Features

  • Automatically adds or updates authuser parameter for all GCP-related pages
  • Supports custom authuser value
  • Works on all cloud.google.com domains and google.com pages containing "cloud"
  • Settings are saved in browser sync storage, syncing across devices

Installation

  1. Download all files from this repository
  2. Open Chrome browser and navigate to the extensions page (chrome://extensions/)
  3. Enable "Developer mode"
  4. Click "Load unpacked extension"
  5. Select the folder containing the extension files

Usage

  1. After installation, click the extension icon in the toolbar
  2. Enter your desired authuser value in the popup window (default is 0)
  3. Click "Save" to store your settings
  4. Once configured, any GCP-related page you visit will automatically use your specified authuser value

Technical Details

  • Built using Chrome Extension Manifest V3
  • Uses chrome.webNavigation API to monitor page navigation
  • Uses chrome.storage.sync API for user settings
  • Supports real-time URL parameter updates

Permissions

This extension requires the following permissions:

  • webNavigation: For detecting page navigation
  • storage: For saving user settings
  • tabs: For updating tab URLs
  • Access to google.com and cloud.google.com domains

Developer Information

For contributions or issues, please submit an Issue or Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.