firefox-addon-webextensions Questions
2
Solved
I have created my Web Extension for Firefox which uses Chrome Extension API.
But Firefox requires application key in manifest.json
https://developer.mozilla.org/en-US/Add-ons/WebExtensions/manife...
Statesman asked 10/5, 2016 at 0:9
3
I need to modifiy a html page with javascript (fill a field).
I have a specific url but i do not know how to listen when the browser is on the right url and get the html code associate.
I do it wi...
Ridglea asked 22/5, 2019 at 10:11
1
Solved
I wonder if it is possible to use WebAssembly to develop an add-on for Firefox.
I doubt that it is possible to do completely in WASM, but what about WASM core with minimal JavaScript wrapper?
Gosney asked 23/9, 2018 at 18:59
1
Note - this question is based off of this question (although it's not necessary to read the previous question): How to set value of textarea in different HTML file?
I have the following code, whic...
Gala asked 9/4, 2018 at 23:39
2
Solved
I was trying to write a simple extension in Firefox wherein I modify the X-Frame-Allow header.
I looked at the documentation briefly and I see that they support webRequest.onHeadersReceived.addLis...
Salem asked 6/12, 2016 at 12:59
2
When attempting to use a library with a source map from within a WebExtension, I encounter this error.
Source map error: TypeError: NetworkError when attempting to fetch resource.
Resource URL: mo...
Foliation asked 20/11, 2017 at 7:56
2
Solved
I'm trying to write a simple Web Extension.
Currently I'm following the various tutorials and trying to understand the architecture.
Interaction with specific tabs is done with content_scripts tha...
Chavey asked 14/9, 2017 at 14:23
0
In a web-extension, I'm registering a content-script programmatically:
browser.contentScripts.register({
matches: ["https://www.example.com/messages/*"],
js: [{file: "my-callback-script"}],
run...
Backbreaking asked 21/10, 2018 at 1:15
3
Solved
It seems Chrome doesn't have an API to open the popup, but has a dedicated system for doing it with a hotkey: _execute_browser_action key in commands.
The special functionality of _execute_browser...
Nataline asked 27/10, 2016 at 10:22
1
Solved
I was having trouble finding an up-to-date answer for this issue, and don't often have time to answer questions here so thought I'd post this so I can answer my own question since I figured out a s...
Whallon asked 3/10, 2018 at 1:12
3
Google Chrome contains some functionality in its chrome.webrequest API (e.g.,
http://developer.chrome.com/extensions/samples.html#12a7bf1490a26359eadf10917e37c5b9 )
that can be used to redirect ce...
Pontefract asked 14/6, 2013 at 16:16
1
I released a new version of a firefox webextension, Copy
All Tabs last night. The code is open source and available on github.
The new version fixes many bugs and is overall more stable. It works...
Atwater asked 29/6, 2018 at 23:46
2
I'm writing a web extension works on firefox. I want my icon works similar to the behavior of Firefox built in "Take a screenshot". The screenshot icon appeared in different colors when it shown in...
Akiko asked 31/1, 2018 at 10:59
3
Solved
I am new to FF extensions development. I work on Windows OS. I am using web extensions. I started my first extension. I created a directory in My Documents which contains my extension files. The fi...
Tachistoscope asked 1/5, 2017 at 8:6
3
I'm trying to execute a script in a new tab when that tab is opened.
In my background script I have:
var listener = function (tab) {
browser.tabs.executeScript(null, { file: "content_scripts/con...
Stat asked 24/5, 2016 at 17:2
1
Solved
I would like to create a WebExtension that provides toggle buttons for some of the settings in about:config (e.g. permissions.default.image).
Is it possible to do this in WebExtensions?
If so, ...
Anglocatholic asked 25/4, 2018 at 13:16
2
Solved
I want to use Cognito for my WebExtension for Chromium and Firefox.
I have two problems.
1) Hosted UI from Cognito not at my domain - so users may think why:
For branding and security I want t...
Rodrick asked 8/9, 2017 at 16:39
0
I am building a chrome/firefox web extension. When the user clicks the button in the extension's popup, the extension's UI changes.
Here's a visual example:
Before pressing one of three buttons...
Trowbridge asked 9/4, 2018 at 23:1
2
I'm trying to use a shared vue.js state in a web extension.
The state is stored in the background script's DOM and rendered in a popup page.
First attempt
My first attempt was to use a simple st...
Milliary asked 17/3, 2018 at 20:44
1
Solved
I am trying to code a simple firefox extension that displays the title of the current tab the user is viewing when the extension's button is pressed.
Here is my manifest.json file:
{
"manife...
Circosta asked 31/3, 2018 at 6:12
1
Solved
If you make a fetch request in a Firefox WebExtension, it will automatically set the "origin" header. For example, when I run this code inside a WebExtensions ...
fetch('http://example.com/')
.....
Enlarge asked 17/11, 2017 at 17:39
1
Solved
I'm having a hard time debugging my Firefox extension (popup). Whenever I click on the debug pane, the popup closes and all the information in the debug pane is gone. This happens when trying to in...
Russo asked 2/3, 2018 at 19:48
0
During development of my browser extension I faced with that error. What it could be? I found this message in the source code of Firefox:
getContextById(childId) {
let context = this.proxy...
Fustigate asked 1/3, 2018 at 13:48
1
Solved
I am creating a web extension to help detecting postMessage activity in websites. Therefore, I want to detect it when a page attaches a message event listener, for example by calling this code:
wi...
Suggestibility asked 15/2, 2018 at 14:34
3
Solved
i am a little new at this. Please help
I am trying to return a promise from a function. This seems to work well until I try to return the promise in the then of an existing promise.
I am trying t...
Pisistratus asked 14/2, 2018 at 19:55
© 2022 - 2024 — McMap. All rights reserved.