{
"manifest_version": 3,
"name": "Proxy",
"version": "1.0",
"description": "Proxy",
"content_scripts": [
{
"matches": [ "<all_urls>" ],
"js": [ "app.js" ]
}
],
"permissions": [ "tabs",
"proxy",
"http://*/*",
"https://*/*"
]
}
var config = {
mode: "pac_script",
pacScript: {
data: "function FindProxyForURL(url, host) {\n" +
" if (host == '2ip.ru')\n" +
" return 'PROXY VPN:8888';\n" +
"}"
}
};
chrome.proxy.settings.set({value: config, scope: 'regular'});