1,588 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
86
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
126
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
69
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
128
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
81
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
218
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
160
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
73
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
134
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 ...
0
votes
0
answers
63
views
"excludeMatches" array in scripting.registerContentScripts() API is totally ignored in Safari web extensions
In a project to create a web extension for Safari, using scripting.registerContentScript() API to inject a bunch of scripts into web pages, I needed to manage a dynamic whitelist (i.e., web pages ...
1
vote
1
answer
144
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 ...
0
votes
0
answers
42
views
Firefox extension: launchWebAuthFlow not able to use sendResponse
I'm creating a web extension on Firefox using React
When I click on a button, a callback is called:
browser.runtime.sendMessage({ type: "auth", url: "url" })
.then((response) =&...