SimonAlling / userscript-proxy

Browser extensions on any device
MIT License
68 stars 3 forks source link

Running userscript-proxy at the network level (without manually adding proxy) #5

Closed amanadhav-shopify-zz closed 3 years ago

amanadhav-shopify-zz commented 3 years ago

I have written my own ad blocker and auto-translation Greasemonkey script that I like to run in my browser at home. However, I would like to run this script for my whole network at home without needing to manually connect to the proxy every time. Can I just add the proxy to my router settings? Is this possible? If so how? (A bit new to networking forgive my lack of terminology)

SimonAlling commented 3 years ago

I think the --transparent flag might be what you're looking for. You'd set it like this:

docker run -t --rm --name userscript-proxy -p 8080:8080 alling/userscript-proxy --transparent
#          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                         ^^^^^^^^^^^^^
#          flags to `docker run`                                                flags to Userscript Proxy

I've only used transparent mode in a VPN setup (#4) though, so I don't really know how the network should be configured in your scenario. I'd suggest reading mitmproxy's documentation on transparent mode. :slightly_smiling_face:

SimonAlling commented 3 years ago

Any success yet, @amanadhav-shopify?

An alternative solution might be PAC + WPAD (in which case I think you should not use --transparent). See for example this thread.

SimonAlling commented 3 years ago

I'm closing this issue for now. Feel free to reopen it if needed.