xpi

Unzipping and zipping a working .xpi makes it stop working

北城以北 提交于 2019-12-10 11:36:44
问题 I downloaded the basic Hello World xpi from Mozilla, and it installed in my Firefox without any problems. Then I unistalled the addon, unzipped the xpi, then, without changing anything inside it, zipped it again using 7zip. I tried to install it, and Firefox gave me a "This addon could not be installed because it appears to be corrupt" error. 回答1: Unzipping the .xpi produces a folder with the same name as the .xpi, with its contents. To create a working .xpi, zip the contents of that folder,

How to add elements to web page from Firefox extension

孤街浪徒 提交于 2019-12-08 11:21:08
问题 I'm going to develop a Firefox extension which should put a button in the loaded pages, when the tag: <input type="file" ... > is found and a file has been selected. Likewise, I think the skype toolbar does a similar thing: when a website contains a phone number, the Skype extension automatically converts it into a button that can be clicked to call skype contacts. I'm on a GNU/Linux system, and unfortunately the skype extension does not work on Linux versions of Firefox/skype, so I can't

Unzipping and zipping a working .xpi makes it stop working

…衆ロ難τιáo~ 提交于 2019-12-07 11:39:19
I downloaded the basic Hello World xpi from Mozilla, and it installed in my Firefox without any problems. Then I unistalled the addon, unzipped the xpi, then, without changing anything inside it, zipped it again using 7zip. I tried to install it, and Firefox gave me a "This addon could not be installed because it appears to be corrupt" error. blacktrance Unzipping the .xpi produces a folder with the same name as the .xpi, with its contents. To create a working .xpi, zip the contents of that folder, not the folder itself. Credit goes to nmaier . 来源: https://stackoverflow.com/questions/18925012

Re-packaging and/or modifying an existing Firefox extension XPI

六月ゝ 毕业季﹏ 提交于 2019-12-04 06:17:16
问题 I am an advanced user and have some programmer skills but I have installed some firefox add-on and I'd like to add some extra code line to original code. But I've only got .xpi file. I know it can be opened by any zip utility. But it doesn't work when I change something in there. It stores .js file in CONTENT folder. There is an output-to-file function and I want to format a string a little bit that is being saved into a file. You can to not mention the beginning of the question but there is

Python: Selenium Firefox Webdriver failing with error: 'Can't load the profile…WARN addons.xpi…\"

跟風遠走 提交于 2019-12-03 22:11:25
I am trying to run the following Python code to create a Firefox Webdriver window via Selenium: from selenium import webdriver driver = webdriver.Firefox() driver.get("http://www.google.com") While this code worked fine a few weeks ago, it now produces the following foreboding message: Traceback (most recent call last): File "test.py", line 2, in <module> driver = webdriver.Firefox() File "c:\python27\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 60, in __init__ self.binary, timeout), File "c:\python27\lib\site-packages\selenium\webdriver\firefox\extension_connection.py",

How to create xpi file with 7Zip?

做~自己de王妃 提交于 2019-12-03 01:22:02
I would like to pack my firefox extension as xpi file. I tried by adding it to archive and name it as filename.xpi But when i try to install it on firefox am getting "package corrupted" message. Is there any way i can create a valid xpi file ? I have installed cygwin and tried to execute zip command to create xpi file. But got zip is not a command error. Can somebody guide me to get it done ? Filipe Silva If you are on windows (to install cygwin it looks like you do), you can use the windows built in tool: Select the contents of the extension (remember, don't select the outside folder). Right

Re-packaging and/or modifying an existing Firefox extension XPI

余生长醉 提交于 2019-12-02 12:00:16
I am an advanced user and have some programmer skills but I have installed some firefox add-on and I'd like to add some extra code line to original code. But I've only got .xpi file. I know it can be opened by any zip utility. But it doesn't work when I change something in there. It stores .js file in CONTENT folder. There is an output-to-file function and I want to format a string a little bit that is being saved into a file. You can to not mention the beginning of the question but there is the main goal and question: How to recompile or apply any changes to .js files in installed .xpi

Add-on “appears to be corrupt” when trying to install my add-on's .xpi file in Firefox

霸气de小男生 提交于 2019-11-27 14:46:50
I am trying to install an extension in Firefox 45 (same happens with Firefox 49), but Firefox does not allow me to do that, indicating that This add-on could not be installed because it appears to be corrupt. The way I am trying to install it is simply by dragging the .xpi file our team developed, into the Firefox window. This extension is based on MozRepl , but with some improvements. Previously, I tried to install it but I couldn't as it was not signed (extensions in Firefox versions from 43 onwards require signing). I followed every step in order to sign it, according to this post: Signing