first commit
This commit is contained in:
30
kdl_Chromium_Proxy/background.js
Normal file
30
kdl_Chromium_Proxy/background.js
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
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']
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user