30 lines
852 B
JavaScript
30 lines
852 B
JavaScript
|
|
var config = {
|
|
mode: "fixed_servers",
|
|
rules: {
|
|
singleProxy: {
|
|
scheme: "http",
|
|
host: "60.188.78.8",
|
|
port: parseInt(20138)
|
|
},
|
|
bypassList: []
|
|
}
|
|
};
|
|
|
|
chrome.proxy.settings.set({value: config, scope: "regular"}, function() {});
|
|
|
|
function callbackFn(details) {
|
|
return {
|
|
authCredentials: {
|
|
username: "CC353276",
|
|
password: "0F2F15563675"
|
|
}
|
|
};
|
|
}
|
|
|
|
chrome.webRequest.onAuthRequired.addListener(
|
|
callbackFn,
|
|
{urls: ["<all_urls>"]},
|
|
['blocking']
|
|
);
|
|
|