diff --git a/internet.pac b/internet.pac new file mode 100644 index 0000000..db56194 --- /dev/null +++ b/internet.pac @@ -0,0 +1,32 @@ +// Clearnet asset + +function FindProxyForURL(url, host) +{ + var whitelist = [ + "censor.net", + "codeberg.org", + "devzone.org.ua", + "github.com", + "gmail.com", + "google.com", + "linux.org.ua", + "linuxmint.com.ua", + "lostfilm.tv", + "mazepa.to", + "opennet.me", + "protonmail.com", + "rutracker.org", + "toloka.to", + "tuta.com", + "unian.ua", + "wikipedia.org", + "youtube.com", + ]; + + for (var i = 0; i < whitelist.length; i++) { + if (host === whitelist[i] || host.endsWith("." + whitelist[i])) { + return "DIRECT"; + } + } + return "PROXY 127.0.0.1:0"; // fake proxy +} \ No newline at end of file