Welcome guest, is this your first visit? Create Account now to join.
Results 1 to 2 of 2

This is a discussion on is there an easier way to toggle a proxy on and off in chrome? within the Chrome Talk section, part of the Google Chrome category: I use a proxy when visiting a specific website, but I'd like the proxy to be toggled off everywhere else ...


  1. #1
    trclocke is offline Junior Member
    Join Date
    Aug 2010
    Posts
    20

    Default is there an easier way to toggle a proxy on and off in chrome?

    I use a proxy when visiting a specific website, but I'd like the proxy to be toggled off everywhere else on the internet. In order to turn the proxy on or off in Chrome, I need to go to to chrome options, change proxy settings, then LAN settings, then disable/enable the proxy, then click OK a bunch to leave all of the menus. It gets old.

    I did find a nice little visualbasic script to toggle the setting, and it does change the setting correctly, but Chrome doesn't recognize the change (even if I restart the browser) unless I manually go back to that proxy screen and then OK through all of them. Is there some sort of "recheck internet settings" event that happens in Chrome when I go through the menus? Can this be replicated somehow, or is there a cleaner one-click method for toggling the "use a proxy" setting than the one I'm using?

    odd question, I know. Thanks in advance for any help. Here's the VB script in case anyone wants to see it.
    Code:
    Const HKEY_CURRENT_USER = &H80000001
    strComputer = "."
    Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
    strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings"
    strValueName = "ProxyEnable"
    objRegistry.GetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName, dwValue
    if dwValue=0 then
    	dwValue=1
    else
    	dwValue=0
    end if
    objRegistry.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName, dwValue
    if dwValue=1 then
    	msg="Proxy Enabled"
    else
    	msg="Proxy Disabled"
    end if
    msgbox msg,64,"Proxy Toggle"

  2. #2
    trclocke is offline Junior Member
    Join Date
    Aug 2010
    Posts
    20

    Default

    and then like a bolt of lightning, it hit me. Chrome has this magic thing called extensions. proxy switchy should be exactly what I need. It even supports proxy rules for specific websites. Thank you, internet.

Similar Threads

  1. Chrome extension for quick proxy setting
    By W.Z. in forum Chrome Plugins
    Replies: 4
    Last Post: 08-22-2011, 06:28 AM
  2. "Resolving Proxy..." But I'm NOT using a proxy!!
    By sjvirchow in forum Chrome Troubleshooting
    Replies: 0
    Last Post: 10-15-2010, 01:21 AM
  3. Chrome looking for a proxy ??????
    By Winter in forum Chrome Talk
    Replies: 2
    Last Post: 08-12-2010, 03:02 PM
  4. Web Proxy or HTTP Debugger for chrome
    By Xavi in forum Chrome Plugins
    Replies: 8
    Last Post: 06-04-2010, 06:02 PM
  5. xkcdAlt - extension for reading xkcd tooltips easier
    By TPReal in forum Chrome Plugins
    Replies: 4
    Last Post: 10-11-2009, 02:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •