manifest.json 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {
  2. "name": "TestDemo",
  3. "version": "1.0.0",
  4. "description": "a demo",
  5. "icons": {
  6. "16": "img/icon/16.png",
  7. "48": "img/icon/48.png",
  8. "128": "img/icon/128.png"
  9. }, // 默认图标
  10. "action": { // 弹出窗口行为,包含导出页面,默认图标等
  11. "default_icon": {
  12. "16": "img/icon/16.png",
  13. "48": "img/icon/48.png",
  14. "128": "img/icon/128.png"
  15. }, // 默认图标
  16. "default_title": "TestDemo", //鼠标在扩展上是显示的文字
  17. "default_popup": "popup.html" //默认弹出窗口页面
  18. },
  19. "background": {
  20. "service_worker": "js/background.js"
  21. },
  22. "homepage_url": "https://www.piaoquantv.com",
  23. // "content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self';",
  24. // "content_security_policy": {
  25. // "extension_pages": "...",
  26. // "sandbox": "..."
  27. // }
  28. "declarative_net_request" : {
  29. "rule_resources" : [{
  30. "id": "ruleset_1",
  31. "enabled": true,
  32. "path": "rules_1.json"
  33. }]
  34. },
  35. "content_scripts": [
  36. {
  37. "matches": [
  38. // "https://twitter.com/*"
  39. "<all_urls>"
  40. ],
  41. "run_at": "document_start",
  42. "css": [
  43. "css/content.css"
  44. ],
  45. "js": [
  46. "utils/spark-md5.min.js",
  47. "utils/tool.js",
  48. "js/content.js"
  49. ]
  50. }
  51. ],
  52. "host_permissions": [
  53. // "http://www.blogger.com/",
  54. "*://*/*"
  55. // "<all_urls>"
  56. ],
  57. "optional_permissions":[
  58. "declarativeNetRequest",
  59. "experimental",
  60. "geolocation",
  61. "mdns",
  62. "debugger",
  63. "proxy",
  64. "tts",
  65. "ttsEngine",
  66. "wallpaper"
  67. ],
  68. "permissions": [
  69. "tabs",
  70. "action",
  71. "declarativeNetRequest",
  72. "webNavigation",
  73. "activeTab",
  74. "scripting",
  75. "storage"
  76. ],
  77. "web_accessible_resources": [
  78. {
  79. "resources": [
  80. "iframe.html"
  81. ],
  82. "matches": [
  83. "<all_urls>"
  84. ]
  85. }
  86. ],
  87. "manifest_version": 3
  88. }