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
66
votes
5 answers

What is the easiest way to develop Firefox extension?

I'm planning to develop a simple Firefox extension that will shorten URL of a currently active tab, display a popup with the shortened URL, and place it into the clipboard. In Google Chrome, this would be pretty easy (according to…
dorserg
  • 5,454
  • 3
  • 24
  • 29
64
votes
8 answers

Detect failure to load contents of an iframe

I can detect when the content of an iframe has loaded using the load event. Unfortunately, for my purposes, there are two problems with this: If there is an error loading the page (404/500, etc), the load event is never fired. If some images or…
Daniel Cassidy
  • 24,676
  • 5
  • 41
  • 54
62
votes
4 answers

Using Firefox, how can I monitor all events that are fired?

I'm trying to debug a web page that makes heavy use of events, and so I need to monitor all events that are fired. Most of the events are bound using jQuery. Hence, it would be particularly useful if there was a way to specifically monitor only…
gsharp
  • 27,557
  • 22
  • 88
  • 134
60
votes
19 answers

Common sources of unterminated string literal

I am trying to debug a JavaScript script that gets read in a Firefox extension and executed. I only can see errors via the Firebug console (my code is invisible to Firebug), and it's reporting a "unterminated string literal." I checked the line and…
sutee
  • 12,568
  • 13
  • 49
  • 61
58
votes
7 answers

How to use jQuery in Firefox Extension

I want to use jQuery inside a firefox extension, I imported the library in the xul file like this: but the $() function is not recognized in the xul…
user434917
50
votes
13 answers

Is there an addon which you can test css selectors in firefox?

I was wondering if there is such an addon in firefox where you can test out css paths to check if they are finding the correct element? I was looking for something similar to xpather for xpath locations.
user223871
  • 503
  • 1
  • 4
  • 4
49
votes
5 answers

How can I have multiple rows with tabs on Firefox 57+ (Add-on "Tab Mix Plus" no longer works)?

How can I have multiple rows with tabs on Firefox 57+, after the add-on Tab Mix Plus no-longer works (all legacy extensions are dropped with Firefox 57). Perhaps I should just wait? This is perhaps the only functionality which I couldn't find in…
Minister
  • 1,198
  • 2
  • 10
  • 18
48
votes
7 answers

How can I disable signature checking for Firefox add-ons?

Since version 42, Firefox, by default, refuses to install unsigned add-ons. How do I disable this verification?
czerny
  • 15,090
  • 14
  • 68
  • 96
47
votes
4 answers

firefox add-on vs. extensions vs. plugins

I want to write scripts for firefox. It seems that firefox has different terms, like add-on, extensions, plugins. and I have a feeling they're not all the same. Can you sum up the difference between in a few words?
sameold
  • 18,400
  • 21
  • 63
  • 87
47
votes
6 answers

Install a personal firefox web extension permanently

Previously, I could write an addon for personal usage packed as something.xpi and I clicked on it to install it. After a while, mozilla introduced xpinstall.signatures.required which you could still get around it. However, it did not stop stabbing…
ar2015
  • 5,558
  • 8
  • 53
  • 110
44
votes
5 answers

How to stop extensions/add ons like grammarly on contenteditable editors

We are making contenteditable editor. Wondering how to stop extensions like grammarly (if enabled) on editor page using javascript as these extensions insert their own html in the editor itself. It's giving us lot of problems while saving the data.…
Ankur Aggarwal
  • 2,993
  • 5
  • 30
  • 56
44
votes
21 answers

ReferenceError: TextEncoder is not defined

I'm writing a simple addon in Firefox - 24, on Linux. I get the error: ReferenceError: TextEncoder is not defined when I do: var encoder = new TextEncoder(); the function I'm using is: function write_text(filename, text) { var encoder = new…
user621819
43
votes
4 answers

Redirecting Request (nsiHttpChannel?) in Firefox Extensions

I've been trying at this for a long time now, and no good results. var myObserver = { observe: function(subject, topic, data) { if (topic == "http-on-examine-response") { // implement later } …
Avindra Goolcharan
  • 4,032
  • 3
  • 41
  • 39
42
votes
5 answers

disable Vimperator temporarily

How can I disable Vimperator temporarily? For example, I'd like to disable Vimperator temporarily when I am using a web email app. Is there a command for it?
blue123
  • 2,937
  • 7
  • 27
  • 29
41
votes
5 answers

Output jasmine test results to the console

I am using Jasmine (BDD Testing Framework for JavaScript) in my firefox add-on to test the functionality of my code. The problem is that jasmine is outputing the test results to an HTML file,what I need is to Firebug Console or other solution to…
Yosi
  • 2,936
  • 7
  • 39
  • 64