Custom UserAgent String

Custom UserAgent String

Add a custom useragent string for desired URLs or domains.

Merlin
Additional files are visible only to premium users

manifest.json


{
  "update_url": "https://clients2.google.com/service/update2/crx",
  "version": "0.2.3",
  "manifest_version": 3,
  "name": "Custom UserAgent String",
  "short_name": "custom-useragent-string",
  "homepage_url": "https://mybrowseraddon.com/custom-useragent-string.html",
  "description": "Add a custom useragent string for desired URLs or domains.",
  "commands": {
    "_execute_action": {}
  },
  "background": {
    "service_worker": "background.js"
  },
  "permissions": [
    "storage",
    "declarativeNetRequest"
  ],
  "host_permissions": [
    "*://*/*",
    "ws://*/*",
    "wss://*/*"
  ],
  "web_accessible_resources": [
    {
      "matches": [
        "*://*/*"
      ],
      "resources": [
        "data/content_script/page_context/inject.js"
      ]
    }
  ],
  "options_ui": {
    "open_in_tab": true,
    "page": "data/options/options.html"
  },
  "action": {
    "default_popup": "data/popup/popup.html",
    "default_title": "Custom UserAgent String",
    "default_icon": {
      "16": "data/icons/16.png",
      "32": "data/icons/32.png",
      "48": "data/icons/48.png",
      "64": "data/icons/64.png"
    }
  },
  "content_scripts": [
    {
      "matches": [
        "*://*/*"
      ],
      "run_at": "document_start",
      "js": [
        "data/content_script/inject.js"
      ]
    }
  ],
  "icons": {
    "16": "data/icons/16.png",
    "32": "data/icons/32.png",
    "48": "data/icons/48.png",
    "64": "data/icons/64.png",
    "128": "data/icons/128.png"
  }
}