3 "archiveofourown.org": 1,
18 "githubassets.com": 1,
19 "githubusercontent.com": 1,
41 "steamcommunity.com": 1,
54 "*://api.openai.com/*": 1,
55 "*://steamcommunity-a.akamaihd.net/*": 1,
56 "*://steamuserimages-a.akamaihd.net/*": 1,
57 "*://*.amazon.co.jp/*": 1,
58 "*://*onedrive.live.com/*": 1,
59 "*://*.bbc.co.uk/*": 1,
60 "*://*.bbci.co.uk/*": 1,
61 "*://*.japantimes.co.jp/*": 1,
62 "*://*.yahoo.co.jp/*": 1,
63 "*://*.cna.com.tw/*": 1
66 var proxy = "PROXY {{host}}:{{port}};";
68 var direct = 'DIRECT;';
70 var hasOwnProperty = Object.hasOwnProperty;
72 function shExpMatchs(str, shexps) {
73 for (shexp in shexps) {
74 if (shExpMatch(str, shexp)) {
81 function FindProxyForURL(url, host) {
83 var pos = host.lastIndexOf('.');
84 pos = host.lastIndexOf('.', pos - 1);
87 if (hasOwnProperty.call(domains, host)) {
89 } else if (shExpMatchs(url, shexps)) {
95 suffix = host.substring(pos + 1);
96 if (hasOwnProperty.call(domains, suffix)) {
99 pos = host.lastIndexOf('.', pos - 1);