I’m working to translate a self-made extension. I have a problem with that code : let radiosCapture = { "Capture a page": () => { this.capture = new CaptureLink(this); let description = document.querySelector(‘meta[name="description"]’); if (description) { this.capture.description = description.content; } this.capture.start_capture(); }, "Capture an area": () => { this.capture = new CaptureZone(this); this.capture.start_capture(); } }; ..
Category : firefox-webextensions
quick question i would like to make an extension/plug-in that will display a list of data on the home / new tab on firefox but i cant for the life of me work out what the content_scripts -> matches pram should be. { "manifest_version": 2, "name": "WCO-Stream-List", "version": "1.0", "description": "Display to watch list", "icons": ..
I’m trying to make an extension for firefox which blocks you for clicking on youtube links. What I want is to get the url of the youtube link and then use history.back to redirect the client. But when I’m trying to test my extension via about:debugging, it works only when a youtube link is already ..
I am new to building Firefox extension, and I am looking for a way to save data as a csv file in storage.local or any other storage solution, and export that file, I have the csv data in an array. the code snippets found on MDN didn’t help much. Any suggestion is much appreciated Source: ..
I’m writing a browser extension to intercept all the script tags on the page when it’s loaded, but before they execute. To be clear, I’m not looking to block the scripts entirely; I just want to intercept and analyze/modify them before they’re run. Is there a way to do this? I’m aware of onbeforescriptexecute for ..
I am making a highlighting browser plugin for firefox as a project. I am trying to find a way to save where in a webpage a user highlights so I can reproduce it on reload. I do my highlighting by getting what text the user has selected with their mouse, and surrounding that text with ..
chrome.runtime.onStartup.addListener( function(){ moment.tz.setDefault("America/New_York"); } ) I am developing a privacy and proxy extension that changes the IP of the browser for a certain interval. Here there is a mismatch in browser timezone and IP server timezone. I’m trying to change the browser timezone using the above code but it’s of no use. Please guide to ..
While fetching a files contents with the following code in a background.js file: function readFile(filename) { let response = fetch(`file:///${filename}`); console.log(response); } I get the following error: Security Error: Content at moz-extension://86d386b7-2904-441f-8dbe-47f0af9b6bfb/_generated_background_page.html may not load or link to file:///C:/Users/rando/Downloads/jest-26.6.1.zip. TypeError: NetworkError when attempting to fetch resource. My manifest file looks like this: "permissions": [ "webNavigation", ..
I’m trying to send and receive a response in a firefox extenstion. I’m able to send the response successfully using the following code in my content script: function notifyBackground(message) { var sending = browser.runtime.sendMessage({requestType: message}); sending.then(handleResponse, handleError); } document.getElementById(‘downloads-select’).addEventListener(‘click’, function () { notifyBackground("requestDownloads"); }); When this is sent from the content script, in the browser ..
I want to know how I used the UrlBar Browser Experiment on Nightly builds for a personal extension that opens a new tab to a specific page but clears the address bar (URL bar). If someone could help me figure out how to do this or figure out what I am doing wrong already, that ..
Recent Comments