Skip to content

Commit dc47396

Browse files
committed
Condensed web_accessible_resources using globs ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/chatgpt-widescreen]
1 parent f53e209 commit dc47396

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

chromium/extension/manifest.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@
1616
},
1717
"permissions": [ "activeTab", "storage" ],
1818
"action": { "default_popup": "popup/index.html" },
19-
"web_accessible_resources": [{
20-
"matches": [ "<all_urls>" ],
21-
"resources": [
22-
"components/buttons.js", "components/icons.js", "components/modals.js", "components/tooltip.js",
23-
"lib/chatbar.js", "lib/chatgpt.js", "lib/dom.js", "lib/settings.js", "lib/ui.js"
24-
]
25-
}],
19+
"web_accessible_resources": [{ "matches": [ "<all_urls>" ], "resources": [ "components/*", "lib/*" ]}],
2620
"content_scripts": [{
2721
"matches": [ "https://chatgpt.com/*", "https://www.perplexity.ai/*", "https://poe.com/*" ],
2822
"run_at": "document_end", "js": [ "content.js" ]

firefox/extension/manifest.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@
1616
},
1717
"permissions": [ "activeTab", "storage" ],
1818
"action": { "default_popup": "popup/index.html" },
19-
"web_accessible_resources": [{
20-
"matches": [ "<all_urls>" ],
21-
"resources": [
22-
"components/buttons.js", "components/icons.js", "components/modals.js", "components/tooltip.js",
23-
"lib/chatbar.js", "lib/chatgpt.js", "lib/dom.js", "lib/settings.js", "lib/ui.js"
24-
]
25-
}],
19+
"web_accessible_resources": [{ "matches": [ "<all_urls>" ], "resources": [ "components/*", "lib/*" ]}],
2620
"content_scripts": [{
2721
"matches": [ "https://chatgpt.com/*", "https://www.perplexity.ai/*", "https://poe.com/*" ],
2822
"run_at": "document_end", "js": [ "content.js" ]

0 commit comments

Comments
 (0)