firefox-addon-webextensions Questions
1
In a Firefox or Chrome(1) extension (using WebExtensions), is it possible to interrupt a request and return an alternate response instead, preventing the network request? What I'd like to do is sto...
Pint asked 25/11, 2017 at 3:51
6
Solved
I am trying to send a variable from a background script to a content script that is associated with an HTML page. The content script updates the HTML content with the variable received from the bac...
Kwangju asked 21/6, 2017 at 10:31
2
Solved
(Note, this is intended as self-answer Q&A for a problem I encountered)
After trying to submit a WebExtension to Mozilla Add-Ons for public listing, the submission was rejected by a reviewer wi...
Gypsy asked 21/8, 2017 at 14:3
3
I have been trying to list all browser cookies in my extension with browser.cookies.getAll(). At first, I thought it was a permissions issue, but my permissions appear to be set correctly. Here is ...
Gar asked 18/8, 2018 at 18:20
3
I am concerned that a chrome extension is providing users with different code than that in its open-source repo. The extension is MetaMask, a cryptocurrency wallet that was recently found to be inj...
Tannenwald asked 18/5, 2019 at 13:23
1
I am writing a browser extension for Firefox and Chrome. I use the browser.* commands and Mozilla's 'webextension-polyfill' module to make browser work in chrome. I have a file called browser.ts th...
Saltation asked 22/9, 2022 at 3:25
1
Today I came across a situation where I need to make an extension to monkey-patch some objects in a web page.
However I found little to none documentation on how it can actually be achieved, I've t...
Flagrant asked 28/6, 2022 at 21:18
2
Solved
Can a Manifest v3 Firefox extension request the "Access your data for all websites" permission from the user at runtime?
This option is usually managed in the firefox about:addons built-i...
Recipience asked 23/4, 2023 at 5:48
4
Solved
When porting my Chrome extension to a Firefox web-extension, I can't make any network requests because they are blocked by the same origin policy.
As an example:
const headers = {"content-type": ...
Inhere asked 2/3, 2018 at 19:13
4
Solved
I'm talking about Chrome extensions, Firefox WebExtensions, Edge extensions...
In a background script, not a content script, is there a clear way to know which browser I am using? I need to do dif...
Crampton asked 24/1, 2017 at 2:59
4
I rewrote my extension to WebExtensions for Firefox and Google Chrome, and it works fine for HTTP/HTTPS. However, it no longer works on URLs with the view-source: scheme. (These URLs are the HTML s...
Burress asked 27/11, 2017 at 4:11
2
Calling alert() from the background script is allowed in Google's Chrome, but not in Firefox (WebExtensions) which I am porting my Chrome extension to.
So, I need a workaround to get an alert dial...
Teetotaler asked 15/8, 2016 at 6:30
1
Solved
I'm working on a Manifest v3 browser extension where I need to identify the browser in which the extension is currently running from the backgroundScript. Since ManifestV3 extension uses a service ...
Raggletaggle asked 19/9, 2022 at 19:6
6
Previously, I could write an addon for personal usage packed as something.xpi and I clicked on it to install it.
After a while, mozilla introduced xpinstall.signatures.required which you could sti...
Allocation asked 18/11, 2017 at 7:1
2
Solved
I am developing a Chrome extension with a manifest that, for now, enables access to all hosts. The background script injects content scripts into all frames. After the DOM is loaded, the content sc...
Crap asked 29/6, 2016 at 15:8
1
I'm trying to mirate an extension from v2 to the v3 manifest.
My goal is by clicking on the extension icon, the option page will open.
Now I checked the migration guide .
So the v2 (is working) is ...
Yardarm asked 3/12, 2021 at 15:10
3
Solved
I've a web page(which I don't control) with:
<body oncontextmenu="return false">
I want to enable right click but there's no way I'm able to do it. In the saved html when I removed this on...
Dermoid asked 3/5, 2017 at 7:30
1
Firefox's Extensions ("add-ons") debugger changed a few releases ago, and it's not working for me at all; it's not finding my extension's sources.
Following the instructions at https://extensionwo...
Candlepin asked 9/12, 2019 at 14:51
1
Suppose you have a Firefox extension. And then you go to about:debugging => this firefox => and then you click on "Inspect" on the extension...
It will then open about:devtools-tool...
Tellurium asked 25/12, 2020 at 12:34
4
I want to inject script from firefox web extension to tabId thought browser.tabs.executeScript API.
I have a file Browser.js
MyFunc.Browser = (function() {
var self;
function Browser() {
self...
Marigolda asked 15/6, 2017 at 12:27
5
Solved
I've been writing some browser extensions in the last few weeks and until today I thought that a WebExtension for Firefox should work pretty much automatically in Chrome. So I tried to write my cod...
Pseudohemophilia asked 12/2, 2017 at 17:46
2
Solved
I'm trying to write a small add-on for firefox using the WebExtensions structure.
This add-on should read a local file content by it's absolute path:
"/home/saba/desktop/test.txt"
manifest.json...
Aeromechanics asked 8/2, 2017 at 9:6
2
I'm trying to migrate my chrome pure JS extension into a vuejs version.
All my pureJS version works fine.
But with vuejs i have an unintelligible error loading extension.
Here is my manifest.json a...
Ravelment asked 1/9, 2021 at 21:3
1
As far as I remember correct name for browser plugins we are using today are actually called "Web Extension". Before every browser had its own APIs, then Chrome and Firefox agreed, and no...
Perverted asked 29/7, 2021 at 7:40
3
Solved
So I couldn't find anything that talked about using chrome.* or browser.* specifically. In some of the WebExtension examples it uses browser.* (browser.runtime.getManifest();)
https://developer.moz...
Frail asked 24/11, 2016 at 1:57
1 Next >
© 2022 - 2024 — McMap. All rights reserved.