With Firefox, I use a proxy.pac file for ad-blocking. Since ad-blocking is an evil purpose, Google removed the support for proxy.pac files from Chrome. I'd like to be Bad Bernie and use my file with Chrome, too.
Do you have any evil ideas how to trick Chrome?
(Without too much effort like setting up a real proxy server, because I am lazy too. After all, Firefox still worx.)
What I have tried:
A solution is known for Linux. Call chrome with the parameter
--proxy-pac-url='data:application/x-javascript-config;base64,'$(base64 -w0 /path/to/local/proxy.pac)
(see https://superuser.com/a/1596133/554401 )
The
base64
part makes sure that the contents are packed in a single line. That can be achieved on Windows with
certutil -f -encodehex myfile.txt myfile.enc 0x40000001
Next, he content can be transferred into an environment variable with
SET /p MYARGS= < myfile.enc
And eventually the command line becomes
chrome.exe proxy-pac-url='data:application/x-javascript-config;base64,'%MYARGS%
Unfortunately, my proxy.pac file has some 100kB, and that's toooo big for an environment variable.
Are there any possibilities of e.g. referencing another local file from the proxy.pac file? Or different ways of supplying its contents to the command line?