Questions tagged [firefox-addon]

Commonly, you should use this tag IN ADDITION TO the tag for the specific type of add-on which you are asking about. At this point, the most common is firefox-addon-webextensions for WebExtensions based add-ons. A Firefox add-on is a way of adding to or modifying the Firefox web browser. Most commonly, questions in this tag are about Firefox extensions, which add new functionality to the browser, although "add-on" may also refer to themes or plugins.

A Firefox add-on is a way of adding to or modifying the Firefox web browser. Most commonly, questions in this tag are about Firefox extensions, which add new functionality to the browser, although "add-on" may also refer to themes or browser plug-ins.

7386 questions
30
votes
3 answers

Firefox extension to find out which Javascript event is bound to an inspected element?

One can bind Javascript events to html elements without using inline declarations. Is there a way when inspecting an html element to know which events are bound to the element? I want to know about the events defined by the developer and not the…
Tony_Henrich
  • 42,411
  • 75
  • 239
  • 374
30
votes
6 answers

is it possible to edit/modify the firefox addons after installing?

Is it possible to modify/edit, already installed firefox addons? Where are the addons stored in the computer... I mean which folder etc...
apnerve
  • 4,740
  • 5
  • 29
  • 45
29
votes
9 answers

How to create xpi file with 7Zip?

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…
user2301765
  • 669
  • 2
  • 8
  • 22
28
votes
1 answer

python for firefox extensions?

Can I use python in firefox extensions? Does it work?
werflo
27
votes
3 answers

Disable single javascript file with addon or extension

I am looking for a Firefox addon or Chrome extension that would allow me to disable particular javascript file from running. There are many of those for disabling particular CSS file, cannot seem to find one that does the same with JS files. Is…
henrijs
  • 1,010
  • 2
  • 11
  • 19
27
votes
5 answers

Firefox webextension Error: Could not establish connection. Receiving end does not exist

I am trying to send a variable from a background script to a content script that is associated with an HTML page. The content script updates the HTML content with the variable received from the background script. The problem is that I am getting…
27
votes
4 answers

Getting the real HTML5 video width and height

I have a video element: var video = window.content.document.createElement("video"); video.width = width; video.height = height; video.style.backgroundColor = "black"; window.content.document.body.appendChild(video); And I'm retrieving it's source…
gal007
  • 6,911
  • 8
  • 47
  • 70
26
votes
3 answers

Open a new tab/window and write something to it?

I'm using Execute JS to write and test Javascript code within Firefox. I want to open a new tab/window and write something to it and I tried var wm =…
Teiv
  • 2,605
  • 10
  • 39
  • 48
25
votes
3 answers

Get add-on id of extensions in Firefox

I want to open extensions in browser tab as a normal html page so that I can automate it using selenium WebDriver. In firefox this can be done using link like this - moz-extension://f1b30486-cd88-4319-bbb5-d5e387103414/popup.html. But the problem…
25
votes
7 answers

How to convert anything to a String safely in JavaScript

If I have: var test = {toString: function(){alert("evil code"); return "test";}}; how can I convert test to a string? without calling test.toString() and without using a typeof x == "string" check since I want to allow non strings. Note: this is…
erikvold
  • 15,988
  • 11
  • 54
  • 98
25
votes
3 answers

How to open the correct devtools console to see output from an extension script?

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":…
25
votes
5 answers

How to get Windows username in a legacy (not WebExtensions) Firefox add-on?

I am working a Firefox add-on (which is written in JavaScript) and need to determine the Windows user currently logged on. Is there a way to do this?
cwhiii
  • 1,496
  • 2
  • 14
  • 16
25
votes
0 answers

Firefox addon for elasticsearch

Chrome has a nice extension, called Sense, for elasticsearch. But I could not find a similar addon for Firefox. Can you recommend me one?
ovunccetin
  • 8,443
  • 5
  • 42
  • 53
24
votes
3 answers

Is it possible to change the order of list items using CSS3?

Is it possible to change the order of list items using CSS3? For example, if a list is coded in HTML in 1,2,3,4,5 order, but I want it to show in 5,1,2,3,4 order. I'm using a CSS overlay to modify a Firefox extension, so I can't just change the…
23
votes
1 answer

What are the advantages/disadvantages of using the Add-on SDK to develop my Firefox extension?

I am developing (yet another) password manager add-on for Firefox. My add-on needs to: Add two context menu items to each password field. Open a dialog box or floating panel when the menu item is selected. Access a specific method of a specific…
PleaseStand
  • 31,641
  • 6
  • 68
  • 95