123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- {
- "name": "TestDemo",
- "version": "1.0.0",
- "description": "a demo",
- "icons": {
- "16": "img/icon/16.png",
- "48": "img/icon/48.png",
- "128": "img/icon/128.png"
- }, // 默认图标
- "action": { // 弹出窗口行为,包含导出页面,默认图标等
- "default_icon": {
- "16": "img/icon/16.png",
- "48": "img/icon/48.png",
- "128": "img/icon/128.png"
- }, // 默认图标
- "default_title": "TestDemo", //鼠标在扩展上是显示的文字
- "default_popup": "popup.html" //默认弹出窗口页面
- },
- "background": {
- "service_worker": "js/background.js"
- },
- "homepage_url": "https://www.piaoquantv.com",
- // "content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self';",
- // "content_security_policy": {
- // "extension_pages": "...",
- // "sandbox": "..."
- // }
- "declarative_net_request" : {
- "rule_resources" : [{
- "id": "ruleset_1",
- "enabled": true,
-
- "path": "rules_1.json"
- }]
- },
- "content_scripts": [
- {
- "matches": [
- // "https://twitter.com/*"
- "<all_urls>"
- ],
- "run_at": "document_start",
- "css": [
- "css/content.css"
- ],
- "js": [
- "utils/spark-md5.min.js",
- "utils/tool.js",
- "js/content.js"
- ]
- }
- ],
- "host_permissions": [
- // "http://www.blogger.com/",
- "*://*/*"
- // "<all_urls>"
- ],
- "optional_permissions":[
- "declarativeNetRequest",
- "experimental",
- "geolocation",
- "mdns",
- "debugger",
- "proxy",
- "tts",
- "ttsEngine",
- "wallpaper"
- ],
- "permissions": [
- "tabs",
- "action",
- "declarativeNetRequest",
- "webNavigation",
- "activeTab",
- "scripting",
- "storage"
- ],
- "web_accessible_resources": [
- {
- "resources": [
- "iframe.html"
- ],
- "matches": [
- "<all_urls>"
- ]
- }
- ],
- "manifest_version": 3
- }
|