danzwl
V2EX  ›  问与答

Chrome有没有可以查看当前网站是否使用了代理的插件?

  •  
  •   danzwl · Oct 9, 2013 · 5231 views
    This topic created in 4690 days ago, the information mentioned may be changed or developed.
    3 replies    1970-01-01 08:00:00 +08:00
    kingwrcy
        1
    kingwrcy  
       Oct 9, 2013
    你用的什么代理插件?如果是用的Proxy SwitchSharp,当前网站如果使用了代理,右上角那个图标是有颜色的,反之则是灰色的.
    danzwl
        2
    danzwl  
    OP
       Oct 9, 2013
    @kingwrcy 现在用的是系统Pac代理设置 不用Proxy SwitchSharp是因为它和Chrome经常性格不合
    slowman
        3
    slowman  
       Oct 9, 2013
    PAC加alert,可复制以下
    function gen_dbg_info(){
    debugPAC = "IP: " + myIpAddress();
    debugPAC += ", Hostname: " + host;
    if (isResolvable(host)) {resolvableHost = "True"} else {resolvableHost = "False"};
    debugPAC += ", Host Resolvable: " + resolvableHost;
    debugPAC += ", Hostname IP: " + dnsResolve(host);
    if (isPlainHostName(host)) {plainHost = "True"} else {plainHost = "False"};
    debugPAC += ", Plain Hostname: " + plainHost;
    debugPAC += ", Domain Levels: " + dnsDomainLevels(host);
    debugPAC += ", URL: " + url;
    // Protocol can only be determined by reading the entire URL.
    if (url.substring(0,5)=="http:") {protocol="HTTP";} else
    if (url.substring(0,6)=="https:") {protocol="HTTPS";} else
    if (url.substring(0,4)=="ftp:") {protocol="FTP";}
    else {protocol="Unknown";}
    debugPAC +=", Protocol: " + protocol;
    }

    function end(_result){
    if (debug === 1){
    debugPAC = _result + ", " + debugPAC;
    alert(debugPAC);
    }
    return _result;
    }



    if (debug === 1) gen_dbg_info();

    在chrome://net-internals/#events
    中搜索,筛选,查看
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5253 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 07:24 · PVG 15:24 · LAX 00:24 · JFK 03:24
    ♥ Do have faith in what you're doing.