mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-17 23:08:33 +02:00
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:
22
imagify/manifest.json
Normal file
22
imagify/manifest.json
Normal 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"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user