Answer the question
In order to leave comments, you need to log in
How to use proxy in your extension?
As far as I know, the extension APIs allow you to locally apply one or another proxy in the browser. Perhaps I'm asking a lot, but could someone give an example of how this is done? Sample code for changing browser proxy.
Interested exclusively in the Google Chrome browser. If you suddenly think that I’m a little swollen with such requests, then you can send me away, read the documentation, I’ll understand and I won’t be offended) Just give me a link, otherwise all my Google attempts give out ready-made extensions, and not instructions, as in extension to change the proxy.
Answer the question
In order to leave comments, you need to log in
Yes, actually there are enough examples in the documentation :
An example of installing a Socks5 proxy for all sites except foobar.com
var config = {
mode: "fixed_servers",
rules: {
proxyForHttp: {
scheme: "socks5",
host: "1.2.3.4"
},
bypassList: ["foobar.com"]
}
};
chrome.proxy.settings.set(
{value: config, scope: 'regular'},
function() {});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question