File Icons for GitHub and GitLab

A simple browser tool changes file's icon on GitHub, GitLab, gitea and gogs.
Premium users can view and search full source code, and see the source code differences between two versions.
Upgrade to premium
manifest.json
{
  "update_url": "https://clients2.google.com/service/update2/crx",
  "description": "A simple browser tool changes file's icon on GitHub, GitLab, gitea and gogs.",
  "version": "1.6.0",
  "manifest_version": 3,
  "name": "File Icons for GitHub and GitLab",
  "author": "homerchen19",
  "homepage_url": "https://github.com/homerchen19/github-file-icons",
  "background": {
    "service_worker": "background.bundle.js"
  },
  "content_scripts": [
    {
      "matches": [
        "https://github.com/*",
        "https://gitlab.com/*",
        "https://*.gogs.io/*",
        "https://*.gitea.io/*"
      ],
      "js": [
        "content.bundle.js"
      ],
      "css": [
        "content.css"
      ],
      "run_at": "document_start"
    }
  ],
  "icons": {
    "16": "img/icon-16.png",
    "64": "img/icon-64.png",
    "128": "img/icon-128.png"
  },
  "action": {
    "default_icon": "img/icon-64.png"
  },
  "permissions": [
    "contextMenus",
    "storage",
    "activeTab"
  ],
  "host_permissions": [
    "https://github.com/*",
    "https://gitlab.com/*",
    "https://*.gogs.io/*",
    "https://*.gitea.io/*"
  ],
  "optional_host_permissions": [
    "http://*/*",
    "https://*/*"
  ],
  "content_security_policy": {
    "extension_pages": "script-src 'self'; object-src 'self'"
  },
  "web_accessible_resources": [
    {
      "resources": [
        "*.woff2"
      ],
      "matches": [
        "<all_urls>"
      ]
    }
  ]
}