Skip to content

Instantly share code, notes, and snippets.

@majioa
Last active March 22, 2022 05:19
Show Gist options
  • Save majioa/7e552f823f95c5bf187cde7ed169e863 to your computer and use it in GitHub Desktop.
Save majioa/7e552f823f95c5bf187cde7ed169e863 to your computer and use it in GitHub Desktop.
my mozilla pac settings
function FindProxyForURL(url, host) {
host = host.toLowerCase();
if (dnsDomainIs(host, "linkedin.com") ||
dnsDomainIs(host, "rutracker.org") ||
dnsDomainIs(host, "ipleak.net") ||
dnsDomainIs(host, "telegram.org") ||
dnsDomainIs(host, "t.me") ||
dnsDomainIs(host, "telegra.ph") ||
dnsDomainIs(host, "psb4ukr.org") ||
dnsDomainIs(host, "plus.pl") ||
dnsDomainIs(host, "b-ok.xyz") ||
dnsDomainIs(host, "muziker.cz") ||
dnsDomainIs(host, "tdesktop.com"))
return "PROXY localhost:8118"; // (IP:port) // privoxy
return "DIRECT";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment