firefox-addon-webextensions Questions

2

Solved

How do you retrieve the extension ID from the xpi file? (It is needed f.ex. for global extension installation) In previous versions, you could get it from the install.rdf, which no longer exists i...
Ferminafermion asked 2/3, 2017 at 21:13

2

Solved

I've this page. I need to trigger a click on the BUY NOW button on this page using AngularJS. I've tried these ways to click on this "BUY NOW" in content script(myscript.js) but does not work: a...

1

Solved

I refer to https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/contextMenus/onClicked. I have used the code in this example for testing in my background-script.js but this code seems not ...
Homothermal asked 24/3, 2017 at 15:22

1

Solved

I would like to know how to access and modify the contents of a cross domain iframe in JavaScript within a Firefox WebExtension. I understand the limitations of normal JavaScript and that modifying...

1

Solved

I'm transforming my SDK-based Firefox extension to WebExtensions and I've come to the issue of updating the extension. The current extension is hosted on my own domain (which is an HTTP domain), al...

0

In Chrome web-browser extensions I can use the next method for calling/triggering a web-site's (page) js function: location.href="javascript:SomeFunction(); void 0"; It works great. But it doe...
Elma asked 3/3, 2017 at 11:41

1

Solved

Currently, I am creating a WebExtension for Firefox which displays a small div in the active HTML page on the active tab after 6 seconds (not the popup.html in browser_action!). I made a small exam...
Puerility asked 2/3, 2017 at 10:55

1

Solved

I'm writing a WebExtension where a background script communicates between a popup window (UI script) and web pages (content script). Using port = browser.runtime.connect({name: "ProjName"});, the ...
Haematothermal asked 13/2, 2017 at 19:28

2

Solved

I am working on a Chrome extension, I want to detect when the user has typed a URL. I know about: chrome.tabs.onUpdated.addListener(eventLisenerObj.onUpdated); But, it gets called whenever the U...

2

I'm looking for a way to display an isolated overlay on some websites using WebExtensions. An iframe would seem like the way to go for this as it provides a whole separate scope for css, js and the...

3

Solved

First of all I'm not looking for Long Lived Connections. I'm specifically looking for a way to send messages and send direct responses to these messages. When you send messages between a content-...

1

Solved

Is there an API to modify the general browser UI in Chrome extensions or WebExtensions? For example I would like to modify the tab bar so that it can display multiple rows of tabs without creating ...

1

Currently I am building a webextension on firefox 47. When you click a webextension button, a drop-down menu appears, from there I can navigate to other websites. The button that is appearing is ...
Namangan asked 26/1, 2017 at 8:34

1

Is there a way in which I can open Firefox and force it to load a temporary add-on (webextension) on startup? Normally I have to manually go to about:debugging and select the extension on my hard d...
Casefy asked 26/1, 2017 at 5:38

1

Solved

According to the documentation for chrome.tabs.executeScript (MDN), the callback function accepts an "array of any result" result set from the execution of the script(s). How exactly do you use thi...

1

Solved

During playing with Firefox WebExtensions I've created a simple add-on that cancels certain POST request and reads its params: manifest.json { "description": "Canceled webRequests data", "manif...

1

Solved

I am running into an issue sending data from my background script to the script for my pageAction. My content script adds an <iframe /> and the JavaScript in the <iframe /> is receiving...

2

Solved

I'm pretty much lost on how to make the added contents of my popup window not disappear every time I open a new link or click it "away". I've read about content script, background script and the li...

1

Solved

To change the settings (about:config) with the old API you would simply do: require('sdk/preferences/service').set('media.webrtc.debug.multi_log', true); I can't find anything on the subject for...
Microanalysis asked 15/5, 2016 at 17:29

1

I'm making a Firefox WebExtension add-on. Here's what should happen: User clicks browser icon on ANY page. JavaScript is executed, collecting information from the page. Information is sent to my ...

1

I am writing a browser extension using modern Browsers generic WebExtensions framework. I try to figure out, how I can get (read) access or a copy of the data of an http response send by a regular...
Fumarole asked 1/12, 2016 at 15:18

1

Solved

I'm creating a website blocker: after you visit a website you've blocked, the browser displays a new HTML page saying "website blocked". The new HTML page is saved in my Chrome extension as message...

1

Solved

I have a firefox webextension ported from chrome extension. The executeScript call fails on this site. https://addons.mozilla.org/en-US/firefox/ I tested with multiple pages on this site and al...
Dishonesty asked 25/11, 2016 at 5:53

1

Solved

I have a text area and a button in my Chrome extension popup. I want users to input desired text in the text area. Then, once they click the button, it will inject a content script to change the te...

1

The target is get a WebExtension for Firefox that can be activated/deactivated by a user in the toolbar, like an on/off switch. I'm using a background.js with this code: browser.browserAction.onC...
Kantianism asked 15/11, 2016 at 6:45

© 2022 - 2024 — McMap. All rights reserved.