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
15
votes
3 answers

Inspecting WebSocket frames in an undetectable way

How I can read WebSocket frames of a web page in a Chrome extension or Firefox add-on, in a way that cannot be detected by the page? Inspect WebSockets frames from a Chrome Dev Tools extension formulates a similar question, but developing a NPAPI…
14
votes
4 answers

Changing Window.prototype.open in a way that isn't detectable/reversible

I am looking into ways to extend Firefox pop-up blocking from an extension. One option is replacing window.open() (or rather Window.prototype.open()) in the webpage by a wrapper function. An important requirement is that this manipulation cannot be…
14
votes
2 answers

Firefox: find location of specific add-on/extension?

I'm using Firefox 5, and I already know that extensions are situated in the extensions subfolder of the Profile folder... However, I need to find where is a particular extension (say, CoLT) located; the problem is that most of the extension folders…
sdaau
  • 36,975
  • 46
  • 198
  • 278
14
votes
3 answers

Firefox / Firebug's "console.log" always returns 'undefined'

Since yesterday, for some reason each time I try to display the console log in Firefox I get an undefined instead: I use this tool quite often, and just recently I saw that this is not working anymore. I have seem similar questions on…
Manza
  • 2,109
  • 1
  • 27
  • 34
14
votes
5 answers

Get selected text and selected nodes on a page?

When selecting a block of text (possibly spanning across many DOM nodes), is it possible to extract the selected text and nodes using Javascript? Imagine this HTML code:

Hello World

Hi there!

If the user initiated a mouseDown…
Pras
  • 1,435
  • 1
  • 11
  • 13
14
votes
2 answers

How can I filter out errors from the Firefox Browser Console?

I'm using Greasemonkey, which sends errors to the Browser Console. I'm accessing this console by typing Ctrl+Shift+J. The MDN docs contain links to https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Filtering_and_searching , but the link…
Noumenon
  • 5,099
  • 4
  • 53
  • 73
14
votes
1 answer

Firefox addon inline installation from website

I am trying to work out how to best implement direct firefox-addon installation from my website. Besides simply prompting the user to install the addon, I would also want to get the result of the user action (accepts installation or cancels…
Bear of the Year
  • 333
  • 1
  • 2
  • 8
14
votes
2 answers

Set custom protocol handler in Firefox?

I'd like Firefox (running on Linux) to open a custom protocol with an external application. For example urls starting with gvim:// protocol name should launch gvim and pass the rest of url. I tried to set network.protocol-handler.external.gvim,…
David Unric
  • 7,421
  • 1
  • 37
  • 65
14
votes
5 answers

Unit Testing a Firefox Addon

In working on a firefox addon, i've found the task of unit testing to be kinda janky and difficult to setup. Anyone have recommendations on how to setup unit tests for an addon? Any tools or additional addons found to be helpful? I've found Mozmill…
jpcamara
  • 672
  • 6
  • 18
14
votes
1 answer

Find URL of current tab. Making a FireFox Browser add-on

I'm making a Firefox Browser Add-on and need to find the url of the current tab I've tried this post Opening a URL in current tab/window from a Firefox Extension but it tells me that 'window' is not defined. (I think because I am making an add-on…
WillJones
  • 907
  • 1
  • 9
  • 19
14
votes
2 answers

How to find out the piece of code that initiated ajax request

I have MVC view, in that tens of javascript files are included. there are some ajax requests initiated from the page. I would like to know from which particular js file the call was initiated. I spent some time exploring Firefox addons - Firebug and…
Brainchild
  • 1,814
  • 5
  • 27
  • 52
13
votes
3 answers

How do I set up JSONP?

What do I need to on the server side to allow someone to get data from that server using JSONP. And what do I need to do on the user side as well? I want to use JSONP as an alternative to an XMLHttpRequest. It won't work out of my Firefox…
Jacques Blom
  • 1,794
  • 5
  • 24
  • 42
13
votes
2 answers

How do you use a firefox plugin within a selenium webdriver program written in java?

I was trying to run a selenium script that clicks on one of my firefox plugins in my toolbar. Is it possible to do this?
Bryan K
  • 133
  • 1
  • 1
  • 6
13
votes
5 answers

HTTP Post Multipart Tool for testing

does anyone know a little test tool (like Poster / RestTool for Firefox) that is able to upload a file and send a text body within the same post request (Multipart)?
SeBo
  • 275
  • 1
  • 3
  • 10
13
votes
1 answer

Parsing FB-Purity's Firefox idb (Indexed Database API) object_data blob from Linux bash

From a Linux bash script, I want to read the structured data stored by a particular Firefox add-on called FB-Purity. I have found a folder called…
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373