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.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
22 views

node: --import is not allowed in NODE_OPTIONS

I had this issue when I tried to run refined-github extension in the development environment: The error code was: node: --import is not allowed in NODE_OPTIONS ERROR: "build:webpack" exited ...
a0m0rajab's user avatar
  • 121
0 votes
1 answer
31 views

Can't access a remote resource from an extension on firefox

I have been trying to make a request to my own server A from an extension running on a page B. Everything is working smoothly if I'm running the extension on Chrome but it fails on Firefox with this ...
Musius's user avatar
  • 75
0 votes
0 answers
47 views

Python programme executes all lines but does not run any 'subprocess.Popen()' lines

I have simple Firefox add-on that, I am using it to test and discover the capabilities of Native Messaging, something I recently came across. The add-on side of things works as I expect it, nothing ...
Ralf_Reddings's user avatar
0 votes
0 answers
54 views

My simple python program does not execute the last line

I have a simple Firefox extension, I have pretty much figured out the Firefox side of things (JavaScript, DOM and starting the Python program). To explain how everything is supposed to work: A event ...
Ralf_Reddings's user avatar
0 votes
1 answer
51 views

Messaging content script works when using 'webRequest.onBeforeRequest()' as the trigger but not when using 'webRequest.onCompleted()'

I finished writting my first extension and it works as I programmed it, but after completing it, I realised I made a mistake in its design, currently its designed to alert me before a event occurs (...
Ralf_Reddings's user avatar
0 votes
0 answers
15 views

How can I work with the objects returned by 'tabs.query()'? [duplicate]

I have three tabs open, when I print activeTab, on the console I get: let activeTab = browser.tabs.query({currentWindow: true}) ... 0: Object { id: 1, index: 0, windowId: 1, … } 1: Object { id: 2, ...
Ralf_Reddings's user avatar
0 votes
0 answers
21 views

Firefox extension: Attempting to message content script throws an error

I have spent all day trying to figure this out and I seem to be getting nowhere, can someone share with me where I am going wrong? I am trying to figure out how to correctly send a message, from a &...
Ralf_Reddings's user avatar
0 votes
0 answers
24 views

How do get response data in a firefox extension with webRequest.onBeforeRequest on a site that blocks connections

Im trying to middle man all requests made to a website using webRequest.onBeforeRequest and then using webRequest.filterResponseData to get the body, the issue is that with the way this site works ...
Leastrio's user avatar
  • 220
0 votes
0 answers
20 views

Using 'browser.webRequest.onBeforeRequest' In the DevTools console returns an error

function logURL(requestDetails) { console.log(`The URL is: ${requestDetails.url}`); } browser.webRequest.onBeforeRequest.addListener(logURL, {urls: ["<all_urls>"],}); Loading the ...
Ralf_Reddings's user avatar
0 votes
1 answer
38 views

Content Script Can't Call Functions. Firefox Extensions, manifest v2

I have a temporary extension I load into Firefox, it runs main.js, runs the function, but there is another function that it will not run. The function that doesn't run can only run if the page is ...
xyz's user avatar
  • 73
0 votes
1 answer
23 views

Firefox addon upload says my ID does not match regular expression but it does

Trying to create an extension with manifest v3. Following the guide it says I need to provide a UUID in browser_specific_settings.gecko. I have done that here: ' { "manifest_version": 3, ...
micah's user avatar
  • 7,738
0 votes
0 answers
44 views

Force install Extension in Firefox

Is there a way to force install an extension in firefox, for example via registry? I've switched from edge and there it was no problem to force install an extension via regedit. Now with Mozilla ...
Emanuel Schärer's user avatar
0 votes
1 answer
42 views

Is there any error with my code? I am trying to create an extension to autofill fields with specific details on a single web page for firefox

I am trying to create a autofill extension for firefox to automatically fill the fields in a specific webpage with predefined values. I am new to this and have used several online sources for help. I ...
Sai Adusumalli's user avatar
-1 votes
2 answers
58 views

How to run a content_script without user click on WebExtension v3

I'm new to WebExtensions and trying to port a minimal example called borderify from v2 to v3. I tried the minimal step of setting manifest.json's manifest_version: 3, but I quickly learned this breaks ...
paws's user avatar
  • 1,291
0 votes
0 answers
18 views

Displaying shortcut in context menu created by a Firefox extension

I am developing a Firefox extension, I added some new context menu items that can also be triggered using shortcuts. I want to display those shortcuts for easier discoverability like Firefox does in ...
qiine's user avatar
  • 1
0 votes
0 answers
19 views

In the context of developing a web browser extension, how can I fill in login forms with data effectively, using javascript? [duplicate]

I am developing a web browser extension that represent a password manager, which fills inputs of login form with saved data, or the password field input with a generated password. What i am using in ...
Zohra's user avatar
  • 59
1 vote
0 answers
56 views

DataCloneError on Loading Native App on Firefox MacOS

I am trying to build a Firefox extension using Native Messaging on MacOS. I was referring to this example. When I have only one line in my background.js: let port = browser.runtime.connectNative("...
jeffma's user avatar
  • 31
0 votes
0 answers
32 views

How to access custom function of window object in a content script for firefox addon?

I have a simple content script function main(){ //var x = window.getCustomFunctionHere; //var y = window.getCustomFunctionHere(); console.log("a"); console.log(window); ...
user3533755's user avatar
0 votes
0 answers
44 views

Running Worker in background.js in Firefox Extension

What is the correct way of running Workers in Firefox background.js? Content-Security-Policy(CSP) seems to be blocking the script. (I am using MV2 because I want to run Web Assembly.) I tried using ...
jeffma's user avatar
  • 31
0 votes
2 answers
40 views

How to find multiple elements in HTML by comparison to an array of data attributes?

Given HTML: <div class="element" data-name="cat"> <div class="element" data-name="bird"> <div class="element" data-name="dog"&...
Anna FLYTE's user avatar
0 votes
1 answer
50 views

Firefox extension to obtain IP address through the current tab

I'm developing a Firefox web extension that obtains the IP address of the host through the current tab. In details, I have a Firefox extension that is able to assign a specific proxy to a specific ...
Briston12's user avatar
  • 357
0 votes
1 answer
48 views

How to allow extension clipboard permission on all pages

I'm building an extension Firefox that can access to clipboard without user interaction. While testing my plugin from about:debugging in Firefox 118.0.1, I can see a Read and Change Data notification ...
Zorro's user avatar
  • 1,125
0 votes
0 answers
28 views

Thumbnail for youtube music songs

I'm trying to make a browser extension for Youtube Music Media controls. I need a way to extract the thumbnail of the currently playing song. I know this is possible since i've seen a couple of ...
Narayan's user avatar
  • 13
0 votes
0 answers
50 views

Firefox extension : how do I make my content script execute in every URL?

I am creating an extension which detects the user's cursor movements. In a tab, if the user doesn't move for 10s, the tab is refreshed and redirected to a specific URL. I want the redirection to ...
weirdFont's user avatar
0 votes
1 answer
67 views

host_permissions vs activeTab

What are the main differences between host_permissions and activeTab, they seem to be similar for exmaple this privilege List item the ability to read tab-specific metadata without the "tabs&...
Edgar Barber's user avatar
0 votes
0 answers
28 views

Chrome and/or Firefox extension to show image outside of site embedding

You know how sometimes on sites like Pinterest, Reddit or Tumblr, when you try to open an image in a new tab, it clumsily displays the image in the website? I was wondering if there was an extension ...
Some Freaking Cactus's user avatar
0 votes
1 answer
61 views

Firefox addon: TypeError: NetworkError when attempting to fetch resource

I'm working on a Firefox extension, trying to fetch data from an API (MapQuest). At first the API was working fine but suddenly, I started getting the error above TypeError: NetworkError when ...
tawfiq's user avatar
  • 1
0 votes
0 answers
73 views

What is the proper format for the ExtensionSettings policy registry key/value that is used to manage browser extension settings?

When looking at the ExtensionSettings page for Firefox or Chrome they both use an example that shows the registry key Software\Policies\Mozilla\Firefox\ExtensionSettings (REG_MULTI_SZ) being set to a ...
perihwk's user avatar
0 votes
1 answer
54 views

How to apply a filter to an entire webpage, without hiding the elements?

I'm making a simple Firefox web extension that allows the user to apply a filter to a webpage. When I try applying the CSS filters through document.body.style.filter some of the elements suddenly ...
WriteThatDown's user avatar
0 votes
0 answers
21 views

I made a firefox extension, but I have to click the extension icon on the toolbar to make it run. How do I run it automatically when entering da site?

It's a very simple extension that I've made mostly using ChatGPT's help. Also I am a complete noob in JavaScript so don't except me to know anything about the codes. I was trying to run the extension ...
From Hi's user avatar
0 votes
0 answers
19 views

How do I add a button to a Firefox extension?

I'm new to working on the extension and want to try something, but the problem I'm having is adding a simple button in the index.html but it doesn't appear. My code: index.html <!DOCTYPE html> &...
codeWcay's user avatar
0 votes
0 answers
9 views

Extension API at browsers.* namespace not available in Firefox [duplicate]

I am building an extension for Chrome based browsers, Firefox and Safari. I am setting up listeners in the background.js file, and I communicate from the webpage by calling e.g. chrome.runtime....
mnx's user avatar
  • 1
0 votes
1 answer
48 views

How way to click a button within #shadow-root (closed) via Python and Selenium

`I want to automate a web scraping. But, I couldn't click a button to resolve ReCAPTCHA with extension Buster. The button is a #shadow-root(closed). Button to resolve ReCAPTCHA `from selenium import ...
Julia's user avatar
  • 1
0 votes
0 answers
28 views

Unable to make the firefox extension click a button in the website

I am creating a firefox extension to automate a process. It is a set of actions but I'm trying to do it one step at a time, and I got stuck at the very first step. I wanted a way to make the extension ...
ThisIsSidam's user avatar
0 votes
0 answers
41 views

How can I force screen sharing with a plugin in firefox

I don't know where to start looking for solution, so here it is. I need to hide the firefox popup when my page wants to screenshare and force screensharing of screen 1: I saw that i cannot do this in ...
Triterium's user avatar
0 votes
0 answers
331 views

Play Youtube in VLC with yt-dlp.exe (no ads) -- context menu in Firefox

I want to preface that I have asked many questions already and have consulted developer.mozilla.org and tried even openAI This is my first project and please be patient with me. I have already used a ...
voodooR0ST's user avatar
0 votes
0 answers
39 views

Save full page in Firefox as HTML complete web page from a custom button

I am developing a Firefox's button that performs several actions I use to do frequently in a sequence. One of the actions is to save the web page as HTML, but implementing this action is creating ...
user173026's user avatar
0 votes
0 answers
48 views

How to have "always allow on chess.com" option be enabled by default for a firefox extension

I am making a firefox extension for chess.com. It works well;however, the user must right click the extension and then select "always allow on chess.com" for it to work. Otherwise the ...
Zinkelburger's user avatar
0 votes
1 answer
72 views

firefox extension - How to read cookies in manifest v3

I made an extension that reads cookies from the browser with manifest v3, it works fine on chromium but when i tried to add firefox support i wasn't able to read the browser's cookies. I followed ...
cabiste's user avatar
  • 169
1 vote
1 answer
45 views

Calling an extension from another extension: save full page as HTML complete web page

I am developing a Firefox's button that performs several actions I use to do frequently in a sequence. One of the actions is to save the web page as HTML, but implementing this action is creating ...
user173026's user avatar
0 votes
0 answers
38 views

Firefox EXTENSION_ID_REQUIRED on manifest.json [duplicate]

I've recently built a script extension for Chrome using Manifest Version 3, and it's been working smoothly. Now, I'm attempting to create a Firefox version of the same extension. To do this, I'm using ...
salsan's user avatar
  • 459
0 votes
0 answers
55 views

Problem Using the readability module from background.js

I'm trying to program a simple Firefox's extension using its API. In my background.js file, I have this piece of code: const [currentTab] = await browser.tabs.query({ active: true, currentWindow: true ...
user173026's user avatar
0 votes
1 answer
235 views

Acessing Network Request and Response [duplicate]

Am trying to get all the sub-resources or urls or fetch/xhr (i hope am communicating well) from a webpage. I've tried using the chrome.webRequest API but it did'nt get me all the sub-resources/fetch/...
Oluwatobi Giwa's user avatar
0 votes
0 answers
37 views

Firefox extension - accessing the content of a cross-origin iframe

I am building a little firefox browser extension to save a web page to an epub file. My target website "A" basically loads an iframe containing the content from domain "B" in my ...
Orsu's user avatar
  • 405
0 votes
0 answers
45 views

chrome.tabs.onUpdated tab info returns previous tab title

I'm trying to get the title of the tab every time the tab is updated. As far as I have observed, it works as I want on websites that do server-side routing. However, in client-side routing websites ...
skipsbiceps's user avatar
0 votes
0 answers
64 views

Firefox extension: background script automatically stop working

I'm developing an extension for firefox but I have an issue that I can not figure out a solution and I hope somebody can help me. I have a content script and a background script and I have to use both....
Arsus29's user avatar
0 votes
0 answers
33 views

Not able to use Vue JS via CDN file inside Firefox Extension

I am trying to create a Firefox extension and have it ready in Vue JS. I am using the Production CDN version of Vue JS from here This is what my manifest.json looks like: { "name": "...
Shahid Shaikh's user avatar
1 vote
1 answer
69 views

How can I upload an image to a site with a userscript/extension?

I want to make a userscript/extension that creates a post for you on twitter or reddit. Unfortunately the browser does not have access to the "choose files" popup, or to the users clipboard, ...
stackers's user avatar
  • 2,860
0 votes
0 answers
75 views

Control + Shift + 3 generates "Can't override a Firefox shortcut" error in Multi-Account Containers

control-shift-3 and control-shift-6 generate a pop-up message "Can't override a Firefox shortcut" in Manage Extension Shortcuts page of the Firefox Multi-Account Containers extension (macOS ...
Jiujiu's user avatar
  • 1
1 vote
0 answers
199 views

EvalError: call to eval() blocked by CSP in Mozilla firefox extention

My chrome extension is working fine and i want to make it compatible with Firefox as well. In the extension i have used eval method that is throwing error "EvalError: call to eval() blocked by ...
Ujjaval Vaihnav's user avatar

1
2 3 4 5
149