1,589 questions
Advice
1
vote
4
replies
66
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://...
0
votes
1
answer
113
views
firefox extension: how do i write/update the side bar from firefox extension?
I'm writing a firefox (v.147) extension and I'm able to open a side bar.
How do I update/dynamically write messages (or add elements) from the extension onto the side bar?
0
votes
0
answers
96
views
browser.runtime.sendNativeMessage → An unexpected error occurred
To implement browser bookmark integration I’m trying to use Firefox native messaging on macOS. Even a trivial shell script that just writes to /tmp/test.log is never executed. Firefox just fails ...
0
votes
1
answer
137
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 ...
2
votes
1
answer
70
views
Firefox extension for android mobile permissions error
I am working on an extension for Firefox for Android, but I am running into issues with permissions. I have this piece of code that checks what permissions the extension has.
const bookmarks = await ...
2
votes
1
answer
166
views
save to file from firefox extension
I want to pass a single number from Firefox extension to external world, so that another application can get it. The only solution I can think of is to write it to a file in some known location, but I ...
2
votes
1
answer
38
views
How to use `.xpiignore`?
I want to remake Firefox addon "Open With"( https://github.com/darktrojan/openwith ).
I noticed there is a file named .xpiignore but I can't find document( found some repositories which have)...
0
votes
0
answers
87
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 ...
0
votes
0
answers
249
views
Why does my spoofed browser timezone still reveal the actual timezone?
TL;DR: I'm just wondering if there are any other ways for the server to obtain the client's timezone aside from using Date() and Intl.DateTimeFormat.
The detection test I want to pass is at https://...
2
votes
1
answer
173
views
Navigation in Chrome/Firefox extension
I've been working on my extension YTDownloaderNew, and in the ytm-content-script.js, I'm using this code to detect when the user navigates to a YouTube Music playlist:
navigation.addEventListener('...
0
votes
0
answers
83
views
Selectively run inline scripts after blocking all of them in FIrefox
Context: NoScript blocks inline scripts by using a content security policy.
Is it possible, for a Firefox extension, to walk the DOM and selectively pick out scripts to allow, after blocking all of it ...
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:
...
-1
votes
1
answer
175
views
How To: change firefox extension toolbar icon programatically
I'm trying the Mozilla first extension tutorial.
I can get the page to change its border color, but I wanted
to try and change the icon as well.
I'm loading this from about:debugging as a temp ...
1
vote
1
answer
152
views
ai api for firefox - browser.trial is not defined in firefox 136.0
I'm trying out Firefox's WebExtensions Ai API, and trying to run their example code. However, I'm getting the error Uncaught TypeError: browser.trial is undefined.
Their instructions say:
For Beta ...