mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 06:18:35 +02:00
* 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
4 lines
169 B
JavaScript
4 lines
169 B
JavaScript
const params = new URLSearchParams(window.location.search);
|
|
const imageBlobURL = params.get("blobURL");
|
|
document.querySelector("img").setAttribute("src", imageBlobURL);
|