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
11
votes
1 answer

IntelliJ Firefox Web Extensions Development

Am learning how to use the Firefox Web Extensions API, and am using IntelliJ. Is there a way to get code completion / suggestions for the API? I followed the steps in the answer below, but there doesn't seem to be a complete one for…
11
votes
1 answer

about config preferences and js

I wonder if it is possible to get values of certain preferences set in about:config using javascript? Incentive is to get value of preferences set in firefox addon i've created when user lands on addon front end. Basically, I'm trying to identify…
Bojan Babic
  • 605
  • 5
  • 19
11
votes
3 answers

Firefox Extension: Error calling executeScript on file but not code

I'm trying to execute a script in a new tab when that tab is opened. In my background script I have: var listener = function (tab) { browser.tabs.executeScript(null, { file: "content_scripts/contentScript.js"…
dds9
  • 111
  • 1
  • 3
11
votes
2 answers

Capture system sound from browser

I am trying to build a web app that captures both local and remote audios from a webrtc call, but I can`t record the remote audio(using recordRTC). I was wondering if I could capture the system sound somehow. Is there a way to capture the system…
11
votes
1 answer

Which is faster, XPath or Regexp?

I am making an add-on for firefox and it loads a html page using ajax (add-on has it's XUL panel). Now at this point, i did not search for a ways of creating a document object and placing the ajax request contents into it and then using xPath to…
user1651105
  • 1,727
  • 4
  • 25
  • 45
11
votes
3 answers

Debugging greasemonkey-like scripts

I'm writing javascript code that is read in as a string and executed via eval() by a firefox extension. Firebug does "see" my script so I am not able to use breakpoints, see objects, etc. I am currently using Firefox's error console which I'm…
sutee
  • 12,568
  • 13
  • 49
  • 61
11
votes
2 answers

Replicating Google Chrome Browser Actions popup Effect in a Firefox Extension

Chrome Browser Actions provide a really nice popup effect by default. dead ImageShack image link removed Hovering over the toolbar icon provides a neat hover effect. Clicking the toolbar icon shows a nice animation that opens the popup html…
CPrimer
  • 623
  • 1
  • 6
  • 13
11
votes
1 answer

JSFiddle error: Please use POST request - after NoScript's XSS warning

When I press Run button on JSFiddle, sometimes my NoScript addon will display an XSS warning and the fiddle shows this message instead of my changes: {"error": "Please use POST request"} I allowed scripts from all domains that jsfiddle uses. I also…
Aprillion
  • 21,510
  • 5
  • 55
  • 89
11
votes
4 answers

Firefox Extensions - best practices

I've been writing a Firefox extension, but have recently read a few articles explaining that it's bad practice to avoid variable name clashes by simple appending the application name to the front of the variable. Unfortunately I have been doing…
Graham
  • 305
  • 1
  • 7
11
votes
8 answers

Is there a browser extension to get all the CSS that is applied to a DOM element?

Firebug is great, and allows me to see all the CSS applied to an element in the DOM that you select, but either you can: a) View it line by line, as defined in the CSS, in the applied order (very useful but not what I'm looking for) or b) View it…
manuelflara
  • 457
  • 1
  • 6
  • 14
11
votes
4 answers

How can a Firefox extension get its own version number programmatically?

How do I programatically get my own Firefox extension's version number with Javascript? My extension has an install.rdf file containing the version number similar to below. I want to extract the contents of the tag.
Mat
  • 82,161
  • 34
  • 89
  • 109
10
votes
3 answers

Displaying multiline notifications

I just started playing around with Mozilla Jetpack, and I love it so far. I wrote a little code that displays an icon in the statusbar that, when clicked, brings up a notification: var myTitle = 'Hello World!'; var line1 = 'I am the very model of a…
eleven81
  • 6,301
  • 11
  • 37
  • 48
10
votes
3 answers

Using Add-on SDK to add toolbar buttons? Integrating XUL and Add-on SDK for Firefox Add-ons?

I have already coded most of a Firefox add-on using the Add-on SDK API. I am now discovering that Add-on SDK might not be powerful enough for my purposes. I need two things: A drop down button in the toolbar next to the location bar. To modify the…
Salami
  • 2,849
  • 4
  • 24
  • 33
10
votes
2 answers

How to debug Firefox extension

I've been into Firefox extension development recently, and ran into some issues: So, in browser.xul i defined these lines: