Skip to content

Commit

Permalink
v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhUyU1997 committed Apr 21, 2024
1 parent 81bbe31 commit 36a796c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion entrypoints/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 7 additions & 2 deletions wxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
},
});

0 comments on commit 36a796c

Please sign in to comment.