Repository navigation
Expand file tree
/
Copy pathwxt.config.ts
More file actions
75 lines (74 loc) · 2.25 KB
/
Copy pathwxt.config.ts
File metadata and controls
75 lines (74 loc) · 2.25 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import { defineConfig } from "wxt";
import tailwindcss from "@tailwindcss/vite";
// See https://wxt.dev/api/config.html
export default defineConfig({
// Place source files in the `src` directory
// https://wxt.dev/guide/essentials/project-structure.html#adding-a-src-directory
srcDir: "src",
targetBrowsers: ["chrome", "firefox", "opera", "edge"],
manifestVersion: 3,
manifest: ({ browser }) => ({
browser_specific_settings: {
gecko: {
id: "@jabfox",
data_collection_permissions: {
required: ["none"],
},
},
},
commands: {
_execute_page_action: {
suggested_key: {
default: "Alt+Shift+J",
},
},
},
description:
"The JabRef browser extension imports new bibliographic information directly from the browser into JabRef.",
developer: {
name: "JabRef",
url: "http://www.jabref.org/",
},
homepage_url: "http://www.jabref.org/",
host_permissions: ["<all_urls>"],
icons: {
"16": "/JabRef-icon-16.png",
"48": "/JabRef-icon-48.png",
"96": "/JabRef-icon-96.png",
"128": "/JabRef-icon-128.png",
},
...(browser !== "firefox"
? {
key: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAimiMLZZCsf+p92UUzQRWYljtoUk0a9AuN+D3TJTFcm1BEDXKIDVmWG20S4yLQyYs8kWao3eTSdYykgsZLPtay1pFKtoM4csGB6sEOO+h25Nv/AU7pN5yH5PqcTIGkuH6AsQQQTPS1Y+vDfz+548oVXzK033l6ernhKRj4dngueZyQX89U38zkorq0/PPWfE8ppPzXiWo1Pn5C5scgzaHSfavIkbBpWuiJw6moSoYw4UxzmU6FmzjM/c8Ags/QPU/8M3BeC1eigStifBDkuIIDQtMtiTXEgCqHjIacB3uB7SJKL+0wsoREqoz3cX7uNLnB+DKu+s0OZKVah8gkliBLQIDAQAB",
}
: {}),
name: "JabRef Browser Extension",
permissions: [
"scripting",
"activeTab",
"tabs",
"storage",
"nativeMessaging",
"downloads",
"webRequest",
"declarativeNetRequest",
...(browser !== "firefox" ? ["offscreen"] : []),
],
web_accessible_resources: [
{
matches: ["<all_urls>"],
resources: ["sandbox.js", "translators/*.js"],
},
],
}),
webExt: {
openDevtools: true,
startUrls: [
"https://ieeexplore.ieee.org/abstract/document/893874",
"https://arxiv.org/a/diez_t_1.html",
],
},
vite: () => ({
plugins: [tailwindcss()],
}),
});