UpdateSWH Firefox

Examine source code of UpdateSWH

提供元: rdicosmo
Inspect and view changes in UpdateSWH source codes across current and past versions
Please login to examine the extension's source code.
manifest.json
{
  "name": "UpdateSWH",
  "version": "0.9.2",
  "description": "Check archival state of a source code repository and propose to update it if needed.",
  "icons": {
    "16": "img/icon-16.png",
    "32": "img/icon-32.png",
    "48": "img/icon-48.png",
    "64": "img/icon-64.png",
    "128": "img/icon-128.png"
  },
  "manifest_version": 2,
  "browser_action": {
    "default_title": "UpdateSWH",
    "default_popup": "popup.html",
    "default_icon": {
      "16": "/img/icon-16.png",
      "32": "/img/icon-32.png",
      "48": "/img/icon-48.png",
      "128": "/img/icon-128.png"
    }
  },
  "background": {
    "scripts": [
      "background.js"
    ],
    "persistent": true
  },
  "content_security_policy": "script-src 'self'; object-src 'self'; connect-src 'self' https://archive.softwareheritage.org/",
  "web_accessible_resources": [
    "*.html"
  ],
  "options_ui": {
    "page": "options.html",
    "open_in_tab": true
  },
  "permissions": [
    "storage",
    "tabs",
    "activeTab",
    "scripting",
    "https://archive.softwareheritage.org/*"
  ],
  "optional_permissions": [
    "<all_urls>",
    "*://github.com/*",
    "*://api.github.com/*",
    "*://bitbucket.org/*",
    "*://api.bitbucket.org/*",
    "*://gitlab.com/*",
    "*://gitee.com/*",
    "*://pagure.io/*",
    "*://0xacab.org/*",
    "*://gite.lirmm.fr/*",
    "*://framagit.org/*",
    "*://gricad-gitlab.univ-grenoble-alpes.fr/*",
    "*://git.rampin.org/*",
    "*://codeberg.org/*",
    "*://git.disroot.org/*",
    "*://git.minetest.land/*",
    "*://repo.radio/*",
    "*://git.fsfe.org/*"
  ],
  "content_scripts": [
    {
      "matches": [
        "*://github.com/*",
        "*://bitbucket.org/*",
        "*://gitlab.com/*",
        "*://gitee.com/*",
        "*://pagure.io/*",
        "*://0xacab.org/*",
        "*://gite.lirmm.fr/*",
        "*://framagit.org/*",
        "*://gricad-gitlab.univ-grenoble-alpes.fr/*",
        "*://git.rampin.org/*",
        "*://codeberg.org/*",
        "*://git.disroot.org/*",
        "*://git.minetest.land/*",
        "*://repo.radio/*",
        "*://git.fsfe.org/*"
      ],
      "css": [
        "css/updateswh.css"
      ],
      "js": [
        "updateswh.js"
      ]
    }
  ],
  "browser_specific_settings": {
    "gecko": {
      "id": "{157eb9f0-9814-4fcc-b0b7-586b3093c641}",
      "data_collection_permissions": {
        "required": [
          "none"
        ]
      }
    }
  }
}

ベストのUpdateSWH代替案

UpdateSWHに類似したFirefox add-onをいくつか紹介します: