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

Greasemonkey script in Firefox 4, want to change one line of code on webpage

Alright, I will try to make this is as simple as possible, without being too vague. I want to change one of line of code on a webpage in hopes of preventing a preview pane from appearing. Original line of code
ipatch
  • 3,933
  • 8
  • 60
  • 99
2
votes
5 answers

Show Javascript functions in real-time

Is there any tool or addon which can be used for testing or identifying Javascript functions in real time (i.e. on click or some events ).. e.g. on a website, I want to know after clicking on a link, which all JS functions are being…
copenndthagen
  • 49,230
  • 102
  • 290
  • 442
2
votes
1 answer

How to block a URL in Firefox's network monitor

I'm trying to block a specific script in firefox from loading locally. Two days ago, it worked from the developer tools as shown here. However, I've been struggling to get it to work today, deleted firefox, cleaned user profile, everything, but I…
2
votes
1 answer

Using Components.utils.import is a syntax error in Firefox 1.5

I would like to use the following code in an extension: try { Components.utils.import("resource://gre/modules/AddonManager.jsm"); AddonManager.addAddonListener(NFuninstallObserver); } catch(e) {} Unfortunately, JavaScript in Firefox 1.5 considers…
R Pruitt
  • 21
  • 2
2
votes
2 answers

Styling option_ui and browser_action page for Firefox Mobile

I developed an extension for Firefox with an option popup for preferences. On mobile, as it doesn't open as a popup but as a new tab moz-extension://(...)/popup.html, I had to apply some specific CSS media queries. But as you can see below, it's…
Ann MB
  • 146
  • 1
  • 13
2
votes
1 answer

Redefine XMLHTTPRequest in overlay.js in Mozilla Firefox Add-on

I'm building a firefox extension and would like to change the behavior of the XMLHTTPRequest object for every page loaded. I found following code which should do the trick: appcontent.addEventListener("load", function(event){ var…
lamberreke
  • 55
  • 4
2
votes
2 answers

Ignore specific CSP error when using sentry

I am using hash-based script-src CSP(v2), together with Sentry's report-uri in my site. Recently I am getting lots of CSP violation report, specifically from latest version of Firefox (version 66 as of writing), creating lots of noise. Recently…
2
votes
1 answer

How can I do persistent DOM-changes with my firefox-addon?

I'm trying to write my first firefox addon at the moment. The goal is quite simple: I'm trying to find every occurrence of a specific username on a website and replace them with a String. I can search for those occurrences manually, since theres…
C. Miller
  • 31
  • 1
  • 4
2
votes
2 answers

How to use pdf.js library in a firefox addon?

I'm making a Firefox add-on extension to insert a pdf document in the translated page of Google and I want to use pdf.js. Don't want to use embed or iframe tags to do it, I want to do my own pdf viewer. I'm trying to use the pdj.js library in a…
rsulca8
  • 21
  • 5
2
votes
1 answer

How to make a Firefox Add-on

I hope I can get some jumpstart here on development on Mozilla (Firefox). I have written a C++ BHO that interacts with IE and I have written a C# application that interacts with ... IE too. Now, I want to port my plugin and my application on…
Syd
  • 1,526
  • 1
  • 15
  • 16
2
votes
2 answers

How big should a Firefox toolbar button be?

What size, in pixels, should a custom Firefox toolbar button icon be? I've seen quite a variety. Most commonly I've come across 32x32, 24x24 and 16x16 but also 10x10, 15x15, 16x14, etc. I cannot find a definitive reference. Also see: How big should…
Mat
  • 82,161
  • 34
  • 89
  • 109
2
votes
1 answer

How do I compare Application.windows[x] to Application.activeWindow?

I'm creating a Firefox extension, in which I want to iterate through the Application.windows array and check if one of its elements is the same as Application.activeWindow. The mentioned excerpt from my code looks like this: for (var i in…
rhino
  • 13,543
  • 9
  • 37
  • 39
2
votes
0 answers

Usage of Firebase for Google Auth in Firefox extension

I'm trying to use Firebase for Google Authentification in Mozilla Firefox extension. However, it throws this error: This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or…
Amaimersion
  • 787
  • 15
  • 28
2
votes
1 answer

Convert browser extension to regular website

It is possible to create Chrome or Firefox extensions which open a new tab and load a webpage. Such a webpage is basically HTML with some CSS and JavaScript. Therefore, in principle, it should be possible to open this HTML page locally from the…
2
votes
3 answers

How to get the link to the latest version of firefox addon?

I don't want to redirect user to firefox's store to install addon. I want to user be able to install addon immediately on my own site. I know for this I should create 'a' element with href to .xpi file. But how I can get the link to the latest…
Roman Yakoviv
  • 1,614
  • 15
  • 19
1 2 3
99
100