Selfify example (#251)

* Selfify example for how to access files article

* Restored selfify.js and updated choose_file.js as suggested by Luca

* Updated comments

* Updates for feedback from Will

* Updates from the second round of feedback

* removed activetab from manifest, removed document.body.appendChild(info);, renamed the content script (selfify > content), renamed the listener (selfify > injectImage) and moved example to imagify folder.

* Correctly renamed folder and update manifest.json
This commit is contained in:
rebloor
2017-07-21 09:54:33 +12:00
committed by wbamberg
parent 8351d9923e
commit 716ace2d41
9 changed files with 225 additions and 0 deletions

22
imagify/manifest.json Normal file
View File

@@ -0,0 +1,22 @@
{
"description": "Adds a sidebar offerin a file picker and drap and drop zone. When an image file is chosen the active tab's body content is replaced with file selected. See https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Examples#imagify",
"manifest_version": 2,
"name": "Imagify",
"version": "1.0",
"homepage_url": "https://github.com/mdn/webextensions-examples/tree/master/imagify",
"permissions": [
"tabs",
"<all_urls>"
],
"sidebar_action": {
"default_title": "Imagify",
"default_panel": "sidebar/sidebar.html"
},
"web_accessible_resources": [
"/viewer.html"
]
}