开发者

file:/// URL permission for Chromium

开发者 https://www.devze.com 2023-03-12 07:04 出处:网络
My experimental Chromium extension would like run some content scripts on local HTML pages. I\'ve in my manifest.json file

My experimental Chromium extension would like run some content scripts on local HTML pages. I've in my manifest.json file

"permission": [
 .开发者_运维百科..
 "file:///*/*"
]

and I've checked the "Allow access to file URL's" in the extension management page. However, I'm not seeing the effect. I expected it to add an item to the context menu, but it doesn't in the local page, while it works on web pages. What could be wrong?


Make sure you have set up the "matches" filter correctly in the "content_scripts" section of you manifest.

0

精彩评论

暂无评论...
验证码 换一张
取 消