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
137 stars 14 forks source link

Proxy for temporary container #20

Open whs opened 4 years ago

whs commented 4 years ago

Ability to set a proxy for temporary containers would be nice. Since those sites won't receive my profile anyway, they shouldn't be having my IP as well.

bekh6ex commented 4 years ago

I'm glad that you brought it up because I had this idea for while, didn't have much time to work on it lately.

Main challange I see here is how to detect if the container is the temporary one. Do you have an idea?

whs commented 4 years ago

How about checking for container name that starts with tmp?

bekh6ex commented 4 years ago

This might be a good start, but tmp is a default prefix which can be changed in the settings.

Would be nice to get more ideas on how else it can be done.

xaiki commented 3 years ago

it looks like the temporary-containers extension just uses https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/contextualIdentities

https://github.com/stoically/temporary-containers/blob/main/src/background/container.ts#L137

if it is able to delete the history it will add -delete-history to the name https://github.com/stoically/temporary-containers/blob/main/src/background/container.ts#L125

schnusch commented 2 years ago

I think an option would be to let the user set the proxy for the current container directly from the toolbar and to to set a default proxy for new containers.