Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
36 views

Firefox Extention onMessage sendResponse

I'm having a pretty frustrating problem with these firefox extensions. Specifically, the problem is that I cannot obtain and then use the data following the sendResponse of onMessage.addListener. Here ...
banks's user avatar
  • 13
0 votes
0 answers
20 views

Getting "Uncaught (In promise) TypeError" when porting my Manifest v2 Chromium/Chrome Extension to Manifest v3

I am currently in the process of porting my manifest v2 Chrome/Chromium extension to manifest v3 and while I got the structure changed to support manifest v3, I keep getting this error when modifying ...
Michael Gunter's user avatar
0 votes
0 answers
14 views

request to a server from an extension - refresh page after receiving response from server in a browser extension

Maybe I'm missing something, since I'm new to using browser extensions. From an extension a request is made to a proxy, the proxy obtains the response from the final server that responds with the ...
palomino's user avatar
1 vote
2 answers
52 views

First Firefox extension test not going well

I am writing a first test of a firefox extension. I am using the following websites as assistance: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Your_first_WebExtension https:/...
Drifter64's user avatar
  • 1,123
0 votes
1 answer
52 views

Show custom HTML in Firefox add-on popup/dialog

I'm learning how to make an extension (for Firefox). This add-on reads the youtube main page (https://www.youtube.com/) and get the visible videos on it. From those videos, I'm able to extract the ...
Mauricio Arias Olave's user avatar
1 vote
1 answer
60 views

JavaScript: openpgp is not defined error in Firefox extension content script

Original Question: Problem Description I am developing a browser extension that uses OpenPGP.js to encrypt and decrypt selected text on a webpage. The extension works perfectly in Chrome, but I ...
Sukhmeet Singh's user avatar
0 votes
1 answer
73 views

EventTarget doesn't work in Firefox content script, does work in Chrome

In Chrome extension content scripts it is fine to do: const myTarget = new EventTarget() myTarget.addEventListener('test', () => console.log('test1')) myTarget.dispatchEvent(new Event('test')) but ...
shadryck's user avatar
  • 191
0 votes
1 answer
77 views

How to align badge text to left/right in a browser extension

I'm working on a browser extension called Stack Me First where I add slightly longer badge text. But the first few letters of the text are important to be visible. Currently the badge text is aligned ...
Gangula's user avatar
  • 6,796
1 vote
0 answers
71 views

How do I detect if the user goes back or forward through the history in the current tab?

I'm going to implement a simple web extension for my personal needs (currently for Chrome, but I consider moving to Firefox and abandon the former), and this extension only requires the history and ...
terrorrussia-keeps-killing's user avatar
1 vote
0 answers
65 views

navigator.storage.getDirectory empty when called from browser.tabs.executeScript?

I'm trying to create a Dev Tools panel to inspect the origin private file system, as it's apparently missing from the Storage panel in the latest version (115) of Firefox LTS. However, when using ...
JamesTheAwesomeDude's user avatar
1 vote
1 answer
47 views

how to make Webextension content_scripts load on opened pages after the first?

Problem: The content_scripts specified in the manifest.json of a WebExtension are only applied to the first page loaded in a window created by the extension regardless of how non-specific my matches ...
masukomi's user avatar
  • 10.8k
1 vote
0 answers
32 views

How to access JSON that another script requested?

If you use your browser's devtools you can easily see the JSON as a response to an XHR request in the Networking tab. How to access the same JSON in your own Javascript, e.g. from the context of an ...
ALT's user avatar
  • 23
1 vote
0 answers
61 views

Adjusting Mozilla extension: page action task for a target page

I'm trying to adjust simple Firefox extension: page_action for a particular page: when the user clicks the page action icon on that page, it should navigate to https://target-web-page.asp (i.e. action ...
Lexx Luxx's user avatar
  • 264
1 vote
1 answer
141 views

I am almost finished porting a Chrome/Chromium Manifest v2 extension to Manifest v3 and while I no longer get errors, no audio plays. What to do?

I have been working on porting this manifest v2 Chrome extension to manifest V3 and while I did port the extension through changing the structure in the manifest file and replacing the background.js ...
Michael Gunter's user avatar
1 vote
0 answers
77 views

How to use runtime.sendMessage from background to a content script?

I'm trying to use browser.runtime.sendMessage from background.js to a content script, but I keep having the error: Uncaught (in promise) Error: Could not establish connection. Receiving end does not ...
Jonas's user avatar
  • 113

15 30 50 per page
1
2 3 4 5
105