| OLD | NEW |
| 1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc.
Note: | 1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc.
Note: |
| 2 1) The <head> information in this page is significant, should be uniform | 2 1) The <head> information in this page is significant, should be uniform |
| 3 across api docs and should be edited only with knowledge of the | 3 across api docs and should be edited only with knowledge of the |
| 4 templating mechanism. | 4 templating mechanism. |
| 5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a | 5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a |
| 6 browser, it will be re-generated from the template, json schema and | 6 browser, it will be re-generated from the template, json schema and |
| 7 authored overview content. | 7 authored overview content. |
| 8 4) The <body>.innerHTML is also generated by an offline step so that this | 8 4) The <body>.innerHTML is also generated by an offline step so that this |
| 9 page may easily be indexed by search engines. | 9 page may easily be indexed by search engines. |
| 10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> | 10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 mode: "fixed_servers", | 556 mode: "fixed_servers", |
| 557 rules: { | 557 rules: { |
| 558 httpProxy: { | 558 httpProxy: { |
| 559 scheme: "socks5", | 559 scheme: "socks5", |
| 560 host: "1.2.3.4" | 560 host: "1.2.3.4" |
| 561 }, | 561 }, |
| 562 bypassList: ["foobar.com"] | 562 bypassList: ["foobar.com"] |
| 563 } | 563 } |
| 564 }; | 564 }; |
| 565 chrome.experimental.proxy.settings.set( | 565 chrome.experimental.proxy.settings.set( |
| 566 {'value': config, 'incognito': false}, | 566 {value: config, scope: 'regular'}, |
| 567 function() {}); | 567 function() {}); |
| 568 </pre> | 568 </pre> |
| 569 | 569 |
| 570 <p> | 570 <p> |
| 571 The following code sets a custom pac script. | 571 The following code sets a custom pac script. |
| 572 </p> | 572 </p> |
| 573 | 573 |
| 574 <pre>var config = { | 574 <pre>var config = { |
| 575 mode: "pac_script", | 575 mode: "pac_script", |
| 576 pacScript: { | 576 pacScript: { |
| 577 data: "function FindProxyForURL(url, host) {\n" + | 577 data: "function FindProxyForURL(url, host) {\n" + |
| 578 " if (host == 'foobar.com')\n" + | 578 " if (host == 'foobar.com')\n" + |
| 579 " return 'PROXY blackhole:80';\n" + | 579 " return 'PROXY blackhole:80';\n" + |
| 580 " return 'DIRECT';\n" + | 580 " return 'DIRECT';\n" + |
| 581 "}" | 581 "}" |
| 582 } | 582 } |
| 583 }; | 583 }; |
| 584 chrome.experimental.proxy.settings.set( | 584 chrome.experimental.proxy.settings.set( |
| 585 {'value': config, 'incognito': false}, | 585 {value: config, scope: 'regular'}, |
| 586 function() {}); | 586 function() {}); |
| 587 </pre> | 587 </pre> |
| 588 | 588 |
| 589 <p> | 589 <p> |
| 590 The next snippet queries the current proxy settings. | 590 The next snippet queries the current proxy settings. |
| 591 </p> | 591 </p> |
| 592 | 592 |
| 593 <pre>chrome.experimental.proxy.settings.get( | 593 <pre>chrome.experimental.proxy.settings.get( |
| 594 {'incognito': false}, | 594 {'incognito': false}, |
| 595 function(config) {console.log(JSON.stringify(config));}); | 595 function(config) {console.log(JSON.stringify(config));}); |
| (...skipping 1846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2442 _uff=0; | 2442 _uff=0; |
| 2443 urchinTracker(); | 2443 urchinTracker(); |
| 2444 } | 2444 } |
| 2445 catch(e) {/* urchinTracker not available. */} | 2445 catch(e) {/* urchinTracker not available. */} |
| 2446 </script> | 2446 </script> |
| 2447 <!-- end analytics --> | 2447 <!-- end analytics --> |
| 2448 </div> | 2448 </div> |
| 2449 </div> <!-- /gc-footer --> | 2449 </div> <!-- /gc-footer --> |
| 2450 </div> <!-- /gc-container --> | 2450 </div> <!-- /gc-container --> |
| 2451 </body></html> | 2451 </body></html> |
| OLD | NEW |