Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

184
Views
how to use proxy in chrome extension on specific domain in singleProxy rule

After i click on Set Proxy Button my socks5 proxy will set but How can i force browser to use proxy for specific domains, such as site.com. notice that i want use fixed_servers and singleProxy rule. I set my proxy setting as follows, but it works on any domain...!

manifest.json

 "permissions":["tabs","proxy"]

popup.js

 $('#btnSetProxy').click(function () {
        var config = {
            mode: "fixed_servers",
            rules: {
                singleProxy: {
                    scheme: 'socks5',
                    host: '192.168.1.25',
                    port: 7598
                },
                bypassList: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16", "<local>"]
            }
        };
        chrome.proxy.settings.set(
            {value: config, scope: 'regular'},
            function() {});
    });

popup.html

<!DOCTYPE html>
<html>
    <head>

        <script src="js/popup.js"></script>

        <link rel="stylesheet" href="css/popup.css">
    </head>
    <body  id="secbody"  class="dirrtl">
 
            <button type="button" id="btnSetProxy">Set  Proxy</button>


    
    </body>
</html>

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!