-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproxy.pac
More file actions
30 lines (30 loc) · 1.1 KB
/
Copy pathproxy.pac
File metadata and controls
30 lines (30 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
function FindProxyForURL(url, host) {
// YouTube + Google video CDN
if (shExpMatch(host, "*.youtube.com") ||
shExpMatch(host, "youtube.com") ||
shExpMatch(host, "*.googlevideo.com") ||
shExpMatch(host, "*.ytimg.com") ||
shExpMatch(host, "*.youtube-nocookie.com") ||
shExpMatch(host, "youtube-nocookie.com") ||
shExpMatch(host, "*.ggpht.com") ||
shExpMatch(host, "*.googleapis.com") ||
// Reddit
shExpMatch(host, "*.reddit.com") ||
shExpMatch(host, "reddit.com") ||
shExpMatch(host, "*.redd.it") ||
shExpMatch(host, "*.redditstatic.com") ||
// Hulu
shExpMatch(host, "*.hulu.com") ||
shExpMatch(host, "hulu.com") ||
shExpMatch(host, "*.hulustream.com") ||
shExpMatch(host, "*.huluim.com") ||
// Netflix
shExpMatch(host, "*.netflix.com") ||
shExpMatch(host, "netflix.com") ||
shExpMatch(host, "*.nflxvideo.net") ||
shExpMatch(host, "*.nflximg.net") ||
shExpMatch(host, "*.nflxso.net") ||
shExpMatch(host, "*.nflxext.com"))
return "SOCKS5 127.0.0.1:1080";
return "DIRECT";
}