bekh6ex / firefox-container-proxy

[Firefox extension] Assign a proxy to a Firefox container
https://addons.mozilla.org/en-US/firefox/addon/container-proxy/
BSD 2-Clause "Simplified" License
139 stars 14 forks source link

add multiple proxies at once? #66

Open demarco5 opened 1 year ago

demarco5 commented 1 year ago

@bekh6ex hello is there a way to find the config file to add multiple proxies at once if we have a large amount? thank you

msvprogs commented 6 months ago

@demarco5 Hello,

As a workaround, it's possible to do this from browser console opened in the extension configuration window:

await browser.storage.local.set(<object>)

Where object may be one of the following:

  1. Proxy list:
    {
    proxies: [{
      doNotProxyLocal: true,
      host: "hostname",
      id: "83261ff2-72d5-4bac-bdad-776929a0316c",
      password: "b",
      port: 9161,
      title: "proxy name",
      type: "http",
      username: "a"
    },
    ...,
    ...
    ]
    }
  2. Container-proxy relation list (container is identified by numeric index):

    {
    relations: {
    
    "firefox-container-1": ["proxy-1-uuid"],
    "firefox-container-2": ["proxy-2-uuid"],
    ...
    "firefox-container-N": ["proxy-N-uuid"]
    }
    }
demarco5 commented 6 months ago

is there anyway you can provide more details i can open the browser console but im not sure where to enter this information?

thanks for the reply

msvprogs commented 6 months ago

Sure. You should open Container proxy options window. It should look like this (by the way, proxy ID is just a random UUID): image

After importing the proxy list they may not appear immediately in the options window, in this case refresh the window, for example by going to Assign tab and then back to Proxies tab. Relations are assigned in the similar way.