116 questions
Advice
1
vote
4
replies
70
views
How to fetch website permissions as a browser extension
I'm writing my first browser extensions using Manifest Version 3.
I'm trying to manipulate the website permissions, the same shown in the Firefox's Page Info:
I found the source code here:
https://...
Best practices
0
votes
2
replies
136
views
Manifest v3 service workers: how to set up webrequest listeners for URLs defined by the users and stored in the storage?
This question is related to my question here, but it is still slightly different. However, it still concerns the problem that listeners must be registered during the first synchronous run, while the ...
0
votes
1
answer
123
views
Prevent browser extension background worker wakeups on tab removal after service restart
Let's say I'm creating a browser extension using MV3. This question involves the background service and the chrome.tabs.onRemoved event as an example, but presumably this would apply to other types of ...
0
votes
0
answers
68
views
Significance of WXT listed versus unlisted scripts for browser extensions
My understanding from the WXT documentation is that if I have a script named entrypoints/sidepanel/index.ts, this will be an "unlisted script". But if I rename it to entrypoints/sidepanel/...
2
votes
2
answers
68
views
Setting cookies not allowed in extension popup?
I'm trying to set a cookie in the popup page of my extension to no avail. I've tried two different methods...
First I used document.cookie, which doesn't do anything...
document.cookie = "SID=...
0
votes
1
answer
138
views
Getting around X-Frame-Options DENY in a Chrome extension? (2)
I have an iframe loading inside an extension page but unfortunately the document inside the iframe embeds its own iframes whose Content-Security-Policy I still can't circumvent with ...
0
votes
0
answers
27
views
How to use chromium extension shortcut to fill system clipboard?
I wrote simple chromium extension where I define command with keyboard shortcut:
"commands": {
"copy-to-clipboard": {
"suggested_key": {
"default&...
0
votes
0
answers
284
views
How to successfuly use Essentia.js library in the context of web extension
I'm trying to create a web extension using Web Audio API and Essentia.js.
Basically, the process I'm currently focused on is:
User inputs an audio file from device;
File is converted to the ...
0
votes
0
answers
88
views
How to set set badge text in web extension reliably with MV3
I recently converted a web extension to manifest v3. The extension is supposed to work in all browser, notably both chrome and firefox. It should always display a badge text, independent of the ...
1
vote
1
answer
159
views
How can I import Papaparse into Web Extension JavaScript code?
How can I include Papaparse so I can use it in Web Extension Javascript code?
I know this might be obvious to any experienced JavaScript programmer, but I am not very experienced with JavaScript. ...
0
votes
1
answer
38
views
Modify background script state from browser debug console
For my web extension I would like to have a "debug mode" which makes troubleshooting issues with the extension easier. By default this debug mode should be disabled, but it should be ...
0
votes
0
answers
22
views
Web extension `messages.json` translation include other translation from same file
For a web extension messages.json translation file, is it possible that a translation includes another translation? That would be useful when you want to avoid duplication.
For example something like:
...
0
votes
1
answer
207
views
Manifest v3 service workers: conditional registration of event listeners based on stored user settings is no longer possible?
I know I'm a little late to the game and have only just started porting my own extension from manifest v2 to v3, but I'm wondering why no one has pointed this out yet. At least I haven't found ...
0
votes
1
answer
58
views
Add Vibrant.js library to firefox web extension
I have a web extension for firefox based on manifest_version: 2. My extension interacts with the elements of a certain third-party site, sometimes modifying them or supplementing the interface with my ...
2
votes
0
answers
70
views
How to Customize Browser's PDF Viewer Without Changing the URL in the Omnibox
I'm trying to develop a browser extension to customize the PDF preview page. In the Stack Overflow question Chrome Extension: How to show custom UI for a PDF file, the main author of the PDF.js Chrome ...