1,574
questions
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 ...
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 ...
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 ...
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:/...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...