Dark Mode Per Site

Dark Mode Per Site

Enable dark mode for certain websites, while keeping light mode for others.

Merlin
Additional files are visible only to premium users

manifest.json


{
  "name": "Dark Mode Per Site",
  "short_name": "Dark Mode Per Site",
  "description": "Enable dark mode for certain websites, while keeping light mode for others.",
  "version": "1.1",
  "action": {
    "default_icon": "assets/128.png"
  },
  "background": {
    "service_worker": "background.js",
    "type": "module"
  },
  "content_scripts": [
    {
      "matches": [
        "<all_urls>"
      ],
      "all_frames": true,
      "css": [
        "css/content.css"
      ],
      "exclude_globs": [
        "*/chrome/newtab*"
      ],
      "js": [
        "content.js"
      ],
      "match_about_blank": true,
      "run_at": "document_start"
    },
    {
      "matches": [
        "<all_urls>"
      ],
      "js": [
        "common.js"
      ]
    }
  ],
  "icons": {
    "32": "assets/32.png",
    "64": "assets/64.png",
    "128": "assets/128.png"
  },
  "manifest_version": 3,
  "permissions": [
    "storage",
    "activeTab",
    "webNavigation"
  ],
  "host_permissions": [
    "<all_urls>"
  ],
  "update_url": "https://clients2.google.com/service/update2/crx",
  "web_accessible_resources": [
    {
      "matches": [
        "*://*/*"
      ],
      "resources": [
        "*"
      ]
    }
  ]
}