added youtube to proxy domains

This commit is contained in:
2025-06-28 16:38:22 +05:00
parent 702bc0d5ca
commit 78872b4d91

View File

@ -3,17 +3,24 @@ function FindProxyForURL(url, host) {
var proxy = "PROXY 91.199.147.158:3128"; var proxy = "PROXY 91.199.147.158:3128";
// Domains related to ChatGPT/OpenAI // Domains related to ChatGPT/OpenAI
var chatgptDomains = [ var proxy_domains = [
"chatgpt.com", "chatgpt.com",
"chat.openai.com", "chat.openai.com",
"openai.com", "openai.com",
"api.openai.com", "api.openai.com",
"platform.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++) { for (var i = 0; i < proxy_domains.length; i++) {
if (dnsDomainIs(host, chatgptDomains[i]) || shExpMatch(host, "*." + chatgptDomains[i])) { if (dnsDomainIs(host, proxy_domains[i]) || shExpMatch(host, "*." + proxy_domains[i])) {
return proxy; return proxy;
} }
} }