var config = {
mode: "pac_script",
pacScript: {
data: "function FindProxyForURL(url, host) {\n" +
" if (host == 'mysite.ru')\n" +
" return 'PROXY 178.213.0.207:61602';\n" +
" return 'DIRECT';\n" +
"}"
}
};
chrome.proxy.settings.set({
value: config,
scope: 'regular'
},
function() { alert('Сеня, дичь!');}
);
https://stackoverflow.com/questions/1106377/detect...