diff --git a/.config/proxy/config.pac b/.config/proxy/config.pac index 0fde748..74ae5e9 100644 --- a/.config/proxy/config.pac +++ b/.config/proxy/config.pac @@ -3,17 +3,24 @@ function FindProxyForURL(url, host) { var proxy = "PROXY 91.199.147.158:3128"; // Domains related to ChatGPT/OpenAI - var chatgptDomains = [ + var proxy_domains = [ "chatgpt.com", "chat.openai.com", "openai.com", "api.openai.com", "platform.openai.com", - "auth0.openai.com" + "auth0.openai.com", + + "*.youtube.com", + "youtube.com", + "*.googlevideo.com", + "googlevideo.com", + "ytimg.com", + "*.ytimg.com", ]; - for (var i = 0; i < chatgptDomains.length; i++) { - if (dnsDomainIs(host, chatgptDomains[i]) || shExpMatch(host, "*." + chatgptDomains[i])) { + for (var i = 0; i < proxy_domains.length; i++) { + if (dnsDomainIs(host, proxy_domains[i]) || shExpMatch(host, "*." + proxy_domains[i])) { return proxy; } }