-
-
Notifications
You must be signed in to change notification settings - Fork 811
Expand file tree
/
Copy pathbackground.js
More file actions
26 lines (25 loc) · 617 Bytes
/
background.js
File metadata and controls
26 lines (25 loc) · 617 Bytes
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
var config = {
mode: "fixed_servers",
rules: {
singleProxy: {
scheme: "http",
host: "188.74.183.10",
port: parseInt(8279)
},
bypassList: ["localhost"]
}
};
chrome.proxy.settings.set({value: config, scope: "regular"}, function() {});
function callbackFn(details) {
return {
authCredentials: {
username: "gdfmbipr",
password: "b87b7t83bxoa"
}
};
}
chrome.webRequest.onAuthRequired.addListener(
callbackFn,
{urls: ["<all_urls>"]},
['blocking']
);