// Generated by gfwlist2pac // https://github.com/clowwindy/gfwlist2pac var domains = { "dmm.co.jp": 1, "dmm.com": 1, "fantasy-earth.com": 1 }; var proxy = "__PROXY__"; var direct = 'DIRECT;'; var hasOwnProperty = Object.hasOwnProperty; function FindProxyForURL(url, host) { var suffix; var pos = host.lastIndexOf('.'); pos = host.lastIndexOf('.', pos - 1); while(1) { if (pos <= 0) { if (hasOwnProperty.call(domains, host)) { return proxy; } else { return direct; } } suffix = host.substring(pos + 1); if (hasOwnProperty.call(domains, suffix)) { return proxy; } pos = host.lastIndexOf('.', pos - 1); } }