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
39
votes
8 answers

Fastest way to debug Firefox addons during development

Debugging a Firefox addon is a slow process: (1) edit source code in a JS editor (2) package into XPI using a build script (3) drag into Firefox to install (4) restart Firefox (5) open the JavaScript Debugger Can we speeden up the process? Like…
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
38
votes
3 answers

How to edit or remove cookies in Firefox DevTools?

In Firebug I am able to remove and edit any cookies using the Cookies panel. But in the Firefox DevTools I can't find any way to remove or edit cookies. Where can I do that?
LHA
  • 9,398
  • 8
  • 46
  • 85
37
votes
7 answers

Is it possible to see the data of a post request in Firefox or Chrome?

How can I intercept the post data a page is sending in FF or Chrome via configuration, extension or code? (Code part makes this programming related. ;) I currently use Wireshark/Ethereal for this, but it's a bit difficult to use.
Carlsberg
  • 659
  • 2
  • 7
  • 8
36
votes
2 answers

Accessing Google Drive from a Firefox extension

I'm trying to access (CRUD) Google Drive from a Firefox extension. Extensions are coded in Javascript, but neither of the two existing javascript SDKs seem to fit; the client-side SDK expects "window" to be available, which isn't the case in…
retorquere
  • 1,496
  • 1
  • 14
  • 27
35
votes
5 answers

How to view "generated HTML code" in Firefox?

If using Firebug, we can click on the HTML tab, and click to expand each element to see the generated HTML code. Is there a way to expand it all or get a plain text file? I just accidentally found out that there doesn't even need to be Firebug. We…
nonopolarity
  • 146,324
  • 131
  • 460
  • 740
34
votes
2 answers

What is this JavaScript syntax: {Ci, CC}?

I'm doing some FF add-on development and I'm seeing syntax like this: var {Cc, Ci} = require('chrome'); Just curious what that syntax is and if it's special to FF development or something else.
Bialecki
  • 30,061
  • 36
  • 87
  • 109
33
votes
13 answers

Firefox addon to remove cache and cookies of one domain?

I use Firefox to develop a web site and at the same time to browse the web, read my gmail, etc. The problem is every now and then I need to delete the cache and or remove the cookies of the web app, but I want to stayed logged in in the other web…
flybywire
  • 261,858
  • 191
  • 397
  • 503
32
votes
7 answers

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

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…
ndarriulat
  • 749
  • 1
  • 9
  • 11
32
votes
2 answers

Exact difference between add-ons, plugins and extensions

What is the exact difference between plugins, add-on and extensions. I have read a lot about this and confused, For example see these four definitions: 1-fire-fox says "Add-ons is the collective name for extensions, themes and plugins" (see…
32
votes
1 answer

Can a site invoke a browser extension?

I am a newbie to the browser extension development and I understand the concept of browser extensions altering the page and injecting codes into it. Is there a way this direction can be turned around? I write an extension that provides a set of…
31
votes
3 answers

how to run greasemonkey script before the page content is displayed?

I am writing a plug-in for Firefox and using greasemonkey script to do that (I compile the user script using this tool http://arantius.com/misc/greasemonkey/script-compiler). The issue is that the script is run after the page is fully loaded.…
khr2003
  • 1,055
  • 4
  • 12
  • 21
30
votes
6 answers

Alternative to DOMNodeInserted

DOMNodeInserted is known to make dynamic pages slow, MDN even recommends not using it altogether, but doesn't provide any alternatives. I'm not interested in the element inserted, I just need to know when some script modifies the DOM. Is there a…
Fábio
  • 3,291
  • 5
  • 36
  • 49
30
votes
4 answers

What does 'chrome' mean?

content: A browser for content. The content that is loaded inside the browser is not allowed to access the chrome above it. This sentence is seen on the Mozilla documentation for XUL. What does the word chrome mean in this context?
C--
  • 16,393
  • 6
  • 53
  • 60
30
votes
13 answers

How to reload/refresh a web page without leaving my web development IDE?

Building Websites When I build websites I use 2 monitors. I have my development IDE on the main monitor and the web page open on the secondary screen. I get annoyed that everytime I need to refresh the web page I have to go to my mouse, move over to…
Jon Winstanley
  • 23,010
  • 22
  • 73
  • 116
30
votes
1 answer

How do I see the console.log output of a background script in a Firefox WebExtension?

Does anyone know how to see the output from a console.log() call in a background script? I can see the output from the same in a content script. Here is a simple script that I am testing this with: Here is my background.js: console.log("Message…