firefox-webextensions

Completely lost on how to save extension popup window content

折月煮酒 提交于 2019-11-26 09:12:59
问题 I\'m pretty much lost on how to make the added contents of my popup window not disappear every time I open a new link or click it \"away\". I\'ve read about content script, background script and the like but I don\'t honestly know how to implement that into my own source code. Below is my popup.html , popup.js and my manifest.js file. { \"manifest_version\": 2, \"name\": \"URL_save\", \"description\": \"This extension saves an URL and renames the title to the user\'s wishes and hyperlink the

Firefox extension .xpi file structure: description, contents, creation, and installation

别等时光非礼了梦想. 提交于 2019-11-26 05:39:06
问题 I put a lot of stuff in searching an easy way to develop a Firefox extension, but I am unable to create an extension. Kindly tell me the file structure of Firefox extensions and an easy way to install the extension. 回答1: .xpi file format (Extension Packaging) The .xpi files that are used as containers for Mozilla (Firefox, Thunderbird, etc.) extensions are merely zip archives that have had the file extension changed to .xpi with the files added to the archive using either "deflate"

Google Chrome / Firefox do not see extension output in console

杀马特。学长 韩版系。学妹 提交于 2019-11-25 22:55:54
问题 I am trying to test sample code for web extension for browsers. But, it doesn\'t work. I checked the console for Google Chrome and also for Firefox. It doesn\'t print anything. The following is my code: manifest.json : { \"description\": \"Demonstrating webRequests\", \"manifest_version\": 2, \"name\": \"webRequest-demo\", \"version\": \"1.0\", \"permissions\": [ \"webRequest\" ], \"background\": { \"scripts\": [\"background.js\"] } } background.js : function logURL(requestDetails) { console