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']
|
||||
);
|
||||
|
||||
21
kdl_Chromium_Proxy/manifest.json
Normal file
21
kdl_Chromium_Proxy/manifest.json
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
{
|
||||
"version": "1.0.0",
|
||||
"manifest_version": 2,
|
||||
"name": "kdl_Chromium_Proxy",
|
||||
"permissions": [
|
||||
"proxy",
|
||||
"tabs",
|
||||
"unlimitedStorage",
|
||||
"storage",
|
||||
"<all_urls>",
|
||||
"webRequest",
|
||||
"webRequestBlocking",
|
||||
"browsingData"
|
||||
],
|
||||
"background": {
|
||||
"scripts": ["background.js"]
|
||||
},
|
||||
"minimum_chrome_version":"22.0.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user