Explorar o código

Add firefox and test manifest files

simov %!s(int64=8) %!d(string=hai) anos
pai
achega
735b7b7efa
Modificáronse 2 ficheiros con 183 adicións e 0 borrados
  1. 95 0
      manifest.firefox.json
  2. 88 0
      manifest.test.json

+ 95 - 0
manifest.firefox.json

@@ -0,0 +1,95 @@
+{
+  "manifest_version": 2,
+  "name"            : "Markdown Viewer",
+  "version"         : "3.3",
+  "description"     : "Markdown Viewer",
+
+  "browser_action": {
+    "default_icon": {
+      "19" : "/images/icon19.png",
+      "38" : "/images/icon38.png"
+    },
+    "default_title": "Markdown Viewer",
+    "default_popup": "/content/popup.html"
+  },
+
+  "options_ui": {
+    "page": "content/options.html"
+  },
+
+  "background" : {
+    "scripts": [
+      "/vendor/marked.min.js",
+      "/vendor/remark.min.js",
+      "/vendor/remark-html.min.js",
+      "/vendor/remark-slug.min.js",
+      "/vendor/remark-frontmatter.min.js",
+
+      "/background/compilers/marked.js",
+      "/background/compilers/remark.js",
+
+      "/background/storage.js",
+      "/background/headers.js",
+      "/background/detect.js",
+      "/background/inject.js",
+      "/background/messages.js",
+      "/background/mathjax.js",
+
+      "/background/index.js"
+    ]
+  },
+
+  "web_accessible_resources": [
+    "/themes/github.css",
+    "/themes/github-dark.css",
+
+    "/themes/godspeed.css",
+    "/themes/new-modern.css",
+    "/themes/torpedo.css",
+    "/themes/vostok.css",
+
+    "/themes/ghostwriter.css",
+    "/themes/radar.css",
+    "/themes/foghorn.css",
+    "/themes/markdown.css",
+    "/themes/markedapp-byword.css",
+    "/themes/solarized-dark.css",
+    "/themes/solarized-light.css",
+
+    "/themes/screen.css",
+    "/themes/markdown5.css",
+    "/themes/markdown6.css",
+    "/themes/markdown7.css",
+    "/themes/markdown8.css",
+    "/themes/markdown9.css",
+    "/themes/markdown-alt.css"
+  ],
+
+  "icons": {
+    "16" : "/images/icon16.png",
+    "48" : "/images/icon48.png",
+    "128": "/images/icon128.png"
+  },
+
+  "homepage_url": "https://addons.mozilla.org/en-US/firefox/addon/markdown-viewer-chrome/",
+
+  "permissions": [
+    "storage",
+    "file:///*",
+    "webRequest",
+    "webRequestBlocking"
+  ],
+
+  "optional_permissions": [
+    "https://*/",
+    "http://*/",
+    "*://*/"
+  ],
+
+  "applications": {
+    "gecko": {
+      "id": "[email protected]",
+      "strict_min_version": "57.0"
+    }
+  }
+}

+ 88 - 0
manifest.test.json

@@ -0,0 +1,88 @@
+{
+  "manifest_version": 2,
+  "name"            : "Markdown Viewer",
+  "version"         : "3.3",
+  "description"     : "Markdown Viewer",
+
+  "browser_action": {
+    "default_icon": {
+      "19" : "/images/icon19.png",
+      "38" : "/images/icon38.png"
+    },
+    "default_title": "Markdown Viewer",
+    "default_popup": "/content/popup.html"
+  },
+
+  "options_page": "/content/options.html",
+
+  "background" : {
+    "scripts": [
+      "/vendor/marked.min.js",
+      "/vendor/remark.min.js",
+      "/vendor/remark-html.min.js",
+      "/vendor/remark-slug.min.js",
+      "/vendor/remark-frontmatter.min.js",
+
+      "/background/compilers/marked.js",
+      "/background/compilers/remark.js",
+
+      "/background/storage.js",
+      "/background/headers.js",
+      "/background/detect.js",
+      "/background/inject.js",
+      "/background/messages.js",
+      "/background/mathjax.js",
+
+      "/background/index.js"
+    ],
+    "persistent": false
+  },
+
+  "web_accessible_resources": [
+    "/themes/github.css",
+    "/themes/github-dark.css",
+
+    "/themes/godspeed.css",
+    "/themes/new-modern.css",
+    "/themes/torpedo.css",
+    "/themes/vostok.css",
+
+    "/themes/ghostwriter.css",
+    "/themes/radar.css",
+    "/themes/foghorn.css",
+    "/themes/markdown.css",
+    "/themes/markedapp-byword.css",
+    "/themes/solarized-dark.css",
+    "/themes/solarized-light.css",
+
+    "/themes/screen.css",
+    "/themes/markdown5.css",
+    "/themes/markdown6.css",
+    "/themes/markdown7.css",
+    "/themes/markdown8.css",
+    "/themes/markdown9.css",
+    "/themes/markdown-alt.css"
+  ],
+
+  "icons": {
+    "16" : "/images/icon16.png",
+    "48" : "/images/icon48.png",
+    "128": "/images/icon128.png"
+  },
+
+  "homepage_url": "https://chrome.google.com/webstore/detail/markdown-viewer/ckkdlimhmcjmikdlpkmbgfkaikojcbjk",
+
+  "permissions": [
+    "storage",
+    "file:///*",
+    "http://localhost:3000/*"
+  ],
+
+  "optional_permissions": [
+    "https://*/",
+    "http://*/",
+    "*://*/",
+    "webRequest",
+    "webRequestBlocking"
+  ]
+}