pdf.js/extensions/chrome/manifest.json
Rob Wu e181a3c902 Highly improved Chrome extension
Full list feature changes in this commit:
- Support for iframes
- Switched to content-type (MIME) detection instead of hard-coding a
  case-sensitive check for the .PDF extension
- The PDF's original URL is visible in the omnibox
- Support for incognito mode

Note: PDF viewer is disabled for the file:// + incognito
combination, because it's currently impossible to get the combination
to work.

See https://github.com/mozilla/pdf.js/pull/3017#issuecomment-15693432
2013-04-04 10:04:13 +02:00

30 lines
599 B
JSON

{
"manifest_version": 2,
"name": "PDF Viewer",
"version": "PDFJSSCRIPT_VERSION",
"description": "Uses HTML5 to display PDF files directly in Chrome.",
"icons": {
"128": "icon128.png",
"48": "icon48.png",
"16": "icon16.png"
},
"permissions": [
"webRequest", "webRequestBlocking",
"<all_urls>",
"tabs"
],
"content_scripts": [{
"matches": [
"*://*/*.pdf*",
"*://*/*.PDF*"
],
"css": ["hide-xhtml-error.css"]
}],
"background": {
"page": "pdfHandler.html"
},
"web_accessible_resources": [
"content/*"
]
}