manifest.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {
  2. "manifest_version": 2,
  3. "name": "PDF Viewer",
  4. "version": "PDFJSSCRIPT_VERSION",
  5. "description": "Uses HTML5 to display PDF files directly in the browser.",
  6. "icons": {
  7. "128": "icon128.png",
  8. "48": "icon48.png",
  9. "16": "icon16.png"
  10. },
  11. "permissions": [
  12. "fileBrowserHandler",
  13. "webRequest", "webRequestBlocking",
  14. "<all_urls>",
  15. "tabs",
  16. "webNavigation",
  17. "storage"
  18. ],
  19. "content_scripts": [{
  20. "matches": [
  21. "http://*/*",
  22. "https://*/*",
  23. "ftp://*/*",
  24. "file://*/*"
  25. ],
  26. "run_at": "document_start",
  27. "all_frames": true,
  28. "css": ["contentstyle.css"],
  29. "js": ["contentscript.js"]
  30. }],
  31. "content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",
  32. "file_browser_handlers": [{
  33. "id": "open-as-pdf",
  34. "default_title": "Open with PDF Viewer",
  35. "file_filters": [
  36. "filesystem:*.pdf"
  37. ]
  38. }],
  39. "storage": {
  40. "managed_schema": "preferences_schema.json"
  41. },
  42. "options_ui": {
  43. "page": "options/options.html",
  44. "chrome_style": true
  45. },
  46. "options_page": "options/options.html",
  47. "background": {
  48. "page": "pdfHandler.html"
  49. },
  50. "page_action": {
  51. "default_icon": {
  52. "19": "icon19.png",
  53. "38": "icon38.png"
  54. },
  55. "default_title": "Show PDF URL",
  56. "default_popup": "pageActionPopup.html"
  57. },
  58. "incognito": "split",
  59. "web_accessible_resources": [
  60. "content/web/viewer.html",
  61. "http:/*",
  62. "https:/*",
  63. "ftp:/*",
  64. "file:/*",
  65. "chrome-extension:/*",
  66. "blob:*",
  67. "data:*",
  68. "filesystem:/*",
  69. "drive:*"
  70. ]
  71. }