summaryrefslogtreecommitdiff
path: root/HutchSafariExtension/Resources/manifest.json
blob: 71403c09352502323424a30f55f728347d315d92 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
  "manifest_version": 3,
  "name": "Open in Hutch",
  "version": "1.0.0",
  "description": "Open supported SourceHut pages in Hutch.",
  "icons": {
    "16": "icon-16.png",
    "32": "icon-32.png",
    "48": "icon-48.png",
    "128": "icon-128.png"
  },
  "action": {
    "default_title": "Open in Hutch",
    "default_icon": {
      "16": "icon-16.png",
      "32": "icon-32.png",
      "48": "icon-48.png",
      "128": "icon-128.png"
    }
  },
  "background": {
    "scripts": [
      "background.js"
    ],
    "persistent": false
  },
  "content_scripts": [
    {
      "matches": [
        "https://git.sr.ht/*",
        "https://hg.sr.ht/*",
        "https://todo.sr.ht/*",
        "https://builds.sr.ht/*",
        "https://lists.sr.ht/*",
        "https://meta.sr.ht/*",
        "https://sr.ht/*"
      ],
      "js": [
        "content.js"
      ],
      "run_at": "document_idle"
    }
  ],
  "permissions": [
    "activeTab",
    "scripting",
    "storage"
  ],
  "host_permissions": [
    "https://git.sr.ht/*",
    "https://hg.sr.ht/*",
    "https://todo.sr.ht/*",
    "https://builds.sr.ht/*",
    "https://lists.sr.ht/*",
    "https://meta.sr.ht/*",
    "https://sr.ht/*"
  ]
}