iricardoxd commited on
Commit
b84d94b
·
verified ·
1 Parent(s): f855d3c

Create background.js

Browse files
Files changed (1) hide show
  1. proxy_extension/background.js +28 -0
proxy_extension/background.js ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var config = {
2
+ mode: "fixed_servers",
3
+ rules: {
4
+ singleProxy: {
5
+ scheme: "http",
6
+ host: "196.17.249.125",
7
+ port: parseInt(8000)
8
+ },
9
+ bypassList: ["<local>"]
10
+ }
11
+ };
12
+
13
+ chrome.proxy.settings.set({value: config, scope: "regular"}, function() {});
14
+
15
+ function callbackFn(details) {
16
+ return {
17
+ authCredentials: {
18
+ username: "3KCRtk",
19
+ password: "ehpmQc"
20
+ }
21
+ };
22
+ }
23
+
24
+ chrome.webRequest.onAuthRequired.addListener(
25
+ callbackFn,
26
+ {urls: ["<all_urls>"]},
27
+ ['blocking']
28
+ );