Category : firefox-addon

Playing around with add-ons for the first time today. When I load the webpage I’m targeting nothing happens, in contrast to when I first load the add on or if I manually reload it. Video showing the issue here (the "View Streetview" button is what I am injecting with the add-on): https://youtu.be/WjnylmUA9v8, the manifest and ..

Read more

This is the code I’ve got in my content script at the moment and it works fine in most cases. It checks whether or not the user is currently visiting a privacy policy and sends that info to my background script. window.addEventListener("DOMContentLoaded", (event) => { browser.runtime.sendMessage({ isPrivacyPolicy: isPrivacyPolicy(), }); }); The problem is, on some ..

Read more

I’m converting my existing content_scripts based extension to activeTab permission based. Along with that I’m also providing optional_permissions so that I can ask permission to users to inject my scripts the way it used to be, if user allows. I’m currently curious to know what route should I take. I know there are two ways, ..

Read more

I’m trying to read a setting from the browser storage before redirecting to a different page in my Firefox add-on. (async function() { function listener(details) { //let foo = await browser.storage.sync.get({ domain: "https://stackexchange.com/" }); //let foo = await Promise.resolve("https://stackexchange.com/") let foo = "https://stackexchange.com/" return { redirectUrl: foo } } browser.webRequest.onBeforeRequest.addListener( listener, { urls: [ "*://example.com/*", ..

Read more

I wanted to try my hand at making a youtube-dl GUI accessible from Firefox, as practice. However, it doesn’t seem that easy; from what I understand, you can’t launch executables client-side using JavaScript unless you use ActiveXObject which apparently only works on IE. Makes sense for security reasons but doesn’t help my case too much… ..

Read more

i have submit an addon for firefox, after a longggg waiting time firefox reply to me this following message : This add-on is creating DOM nodes from HTML strings containing potentially unsanitized data, by assigning to innerHTML, jQuery.html, or through similar means. Aside from being inefficient, this is a major security risk. For more information, ..

Read more