From 36a796c46a3e6150966f84e425d80966a02cd71d Mon Sep 17 00:00:00 2001 From: Yu Zhu <891085309@qq.com> Date: Sun, 21 Apr 2024 20:40:23 +0800 Subject: [PATCH] v1.3.0 --- entrypoints/content.ts | 2 +- package.json | 2 +- wxt.config.ts | 9 +++++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/entrypoints/content.ts b/entrypoints/content.ts index bdfe240..fb4aa2d 100644 --- a/entrypoints/content.ts +++ b/entrypoints/content.ts @@ -14,7 +14,7 @@ import { Highlight } from "./page/highlight"; import { Preference, safeStorage } from "./common/storage"; export default defineContentScript({ - matches: ["*://*/*"], + matches: ["http://*/*", "https://*/*"], allFrames: true, runAt: "document_idle", diff --git a/package.json b/package.json index 993201d..3116466 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "insight-word", "description": "find the words in web pages", "private": true, - "version": "1.2.0", + "version": "1.3.0", "type": "module", "scripts": { "dev": "wxt", diff --git a/wxt.config.ts b/wxt.config.ts index 1af50e8..21dae41 100644 --- a/wxt.config.ts +++ b/wxt.config.ts @@ -8,13 +8,18 @@ export default defineConfig({ }), manifest: { name: "单词洞察力", - permissions: ["contextMenus", "storage", "tabs"], + permissions: ["contextMenus", "storage", "tabs", "scripting"], + host_permissions: ["http://*/*", "https://*/*"], action: { default_title: "配置", }, }, runner: { - startUrls: ["https://developer.mozilla.org/en-US/", "https://github.com/ZhUyU1997/meui", "https://mozilla.github.io/pdf.js/web/viewer.html"], + startUrls: [ + "https://developer.mozilla.org/en-US/", + "https://github.com/ZhUyU1997/meui", + "https://mozilla.github.io/pdf.js/web/viewer.html", + ], chromiumArgs: ["--window-size=400x300"], }, });