Make a WebExtension to use a proxy
Suppose we have some web extension we don't like let to use direct internet. I guess it's not possible using another extension. Is there any hack to do that? Or any quick instruction to modify the extension, if any.
P.S. I don't look for something like FoxyProxy as it (technically) has no way to automatically apply on some extensions (like it do for "some URLs")
do you know?
how many words do you know
See also questions close to this topic
-
Is there a way to instead of re-downloading a file simply open the already downloaded file?
I frequently have to reopen files from a link, or find it somewhere on the downloads folder. It is not that important and far too many downloads to properly save and sort them for when I will or will not need later.
So is there a way to simply make firefox (or chrome) open the already downloaded file instead downloading it again ?
-
PHP / JS - Firefox Cookies Expires not set
This is the way how I set cookies in JavaScript:
function setCookie(cname, cvalue) { expires = "expires=2147483647"; document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"+";" +";samesite=None" + ";secure=true"; }
This is the way how I set cookies in PHP:
function setMyCookie($name, $value) { $t = 2147483647; setcookie($name, $value, [ 'expires' => $t, 'path' => '/', 'samesite' => 'None', 'secure' => true ]); }
Works on Chrome: Expires / Max age is set correctly.
Does NOT Works on Firefox: Expires / Max age is set NOT correctly. When I close the browser (=session is done), the cookies are deleted.
How can I set cookies also in Firefox properly?
Thanks, BlueMatrix
-
How do I stop the web browser from resizing my images?
I want my images to be displayed as clear as they are displayed on my OS. What i discovered is that it doesn't matter if I specify in the html image tag the original size of the image, Firefox and Chromium will display it bigger and because of this blurrier.
Here's what is happening:
The image of the left is the image displayed on the web browser. As you can see with the pixel screen ruler it's width is 200px. The image on the right is my original image viewed with my OS image viewer at 100% size. Yo can see in the properties that the image is 200px by 200px. The thing is that I had to specify a smaller image size in the HTML in order for the browser to show it as it's original size so that it renders with no blur. You can see that my html specifies 142px width and height.
I think this browser behavior is totally wrong and it should not work like this but I don't expect this to change which is sad. So, how do you deal with this situation? Is there a way to write something in the HTML (like in the header) to make the browser render images at 100% size? How?
This is my "200px" image displayed on the browser in 280 pixels:
-
Accessing browser API through Vuejs
I thought to make a firefox addon with Vue.js and wanted to use the API from the browser. For example to use
browser.tabs
orbrowser.dns
. But when I use browser in the script part of a component I get the output that'browser' is not defined
.Is it possible to access the API of the browser with vuejs?
-
Auth0 in Firefox Add on
I have a react application with authentication managed by Auth0.
I want to create browser extensions with users sharing their sessions between the web app and the extension.
I successfully followed this guide and it works well for google chrome and firefox in development. However, the
callback_uri
needs to be whitelisted in my Auth0 dashboard, and this is going to be a problem for firefox since uuid are non deterministic in firefox and change at every install, so the urlmoz-extensions://uuid
cannot be used as acallback_uri
I can't seem to find a solution, any advice ?
Cheers
-
How can Google know that I am faking my user-agent?
I tried to add a google account, yet before completing the sign-in process I get this:
However, when I disable the User Agent Switcher and Manager extension, it works just fine. Does Google know that I am faking my user-agent? Or did I misunderstand how user-agents work?
-
How can I call a Powershell / Command Line Script using a BrowserAction in a FireFox WebExtension?
When the button is pressed, I want to get the URL from the current tab and pass it as an argument to the script.
I know that I have to use
browser.browserAction.onClicked.addListener()
but I have not found an API for the call to the command line.Can anybody tell me if this is possible and if not if there is a workaround?
-
Firefox WebRequest
I was trying to do the same as these guys over there (Firefox WebExtensions WebRequest Example not working) and I copied the solution from M.Onyshchuk. But I don't know, what I am doing wrong, but it throws an error (actually a few of them):
NS_ERROR_NOT_AVAILABLE: Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDocShell.domWindow] window-global.js:420
I tried a few things, but with no results. The red border appears every time, but the background-script seems to do nothing. I'm on firefox version 100.0 (64 bit)
-
JS FireFox WebExtensions tabs.query(queryObj): can queryObj have an "or"?
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/query
var urls = ["url_pattern_1", "url_pattern_2"]; var titles = "title_pattern_1", "title_pattern_2"]; for (let url of urls) { for (let title of titles) { browser.tabs.query({"title": title, "url": url}).then((matched_tabs) => { // code to run on matched_tab } }); } }
If the
urls
and/ortitles
lists are long, this will causebrowser.tabs.query()
to be called many times. I'm curious (but not optimistic) if it's possible to have the query logical-OR all of the elements from the arrays so that I can get rid of the for loops.Thanks!