manifest.json 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. "content_scripts": [
  29. {
  30. "matches": [
  31. // "https://twitter.com/*"
  32. "<all_urls>"
  33. ],
  34. "run_at": "document_start",
  35. "css": [
  36. "css/content.css"
  37. ],
  38. "js": [
  39. "utils/spark-md5.min.js",
  40. "utils/tool.js",
  41. "js/content.js"
  42. ]
  43. }
  44. ],
  45. "host_permissions": [
  46. // "http://www.blogger.com/",
  47. "*://*/*"
  48. // "<all_urls>"
  49. ],
  50. "optional_permissions":[
  51. "declarativeNetRequest",
  52. "experimental",
  53. "geolocation",
  54. "mdns",
  55. "debugger",
  56. "proxy",
  57. "tts",
  58. "ttsEngine",
  59. "wallpaper"
  60. ],
  61. "permissions": [
  62. "tabs",
  63. "action",
  64. "declarativeNetRequest",
  65. "webNavigation",
  66. "activeTab",
  67. "scripting",
  68. "storage"
  69. ],
  70. "web_accessible_resources": [
  71. {
  72. "resources": [
  73. "iframe.html"
  74. ],
  75. "matches": [
  76. "<all_urls>"
  77. ]
  78. }
  79. ],
  80. "manifest_version": 3
  81. }