iricardoxd's picture
Create background.js
b84d94b verified
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']
);