File size: 570 Bytes
b84d94b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
var config = {
mode: "fixed_servers",
rules: {
singleProxy: {
scheme: "http",
host: "196.17.249.125",
port: parseInt(8000)
},
bypassList: ["<local>"]
}
};
chrome.proxy.settings.set({value: config, scope: "regular"}, function() {});
function callbackFn(details) {
return {
authCredentials: {
username: "3KCRtk",
password: "ehpmQc"
}
};
}
chrome.webRequest.onAuthRequired.addListener(
callbackFn,
{urls: ["<all_urls>"]},
['blocking']
);
|