Skip to content

Instantly share code, notes, and snippets.

@raghur
raghur / proxy.pac
Last active March 28, 2024 08:05
Proxy pac file for switching proxy based on IP - works with Firefox & Chromium.
function FindProxyForURL(url, host)
{
// firefox - Ctrl-Shift-J Chrome/Chromium: chrome://net-internals/#events
var debug = true;
var log = function() {
if (debug) {
var args = Array.prototype.slice.call(arguments);
alert(args.join(" "));
}
}