V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
danzwl
V2EX  ›  问与答

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

  •  
  •   danzwl · 2013-10-09 16:22:16 +08:00 · 4642 次点击
    这是一个创建于 3873 天前的主题,其中的信息可能已经有所发展或是发生改变。
    3 条回复    1970-01-01 08:00:00 +08:00
    kingwrcy
        1
    kingwrcy  
       2013-10-09 17:21:01 +08:00
    你用的什么代理插件?如果是用的Proxy SwitchSharp,当前网站如果使用了代理,右上角那个图标是有颜色的,反之则是灰色的.
    danzwl
        2
    danzwl  
    OP
       2013-10-09 17:51:56 +08:00
    @kingwrcy 现在用的是系统Pac代理设置 不用Proxy SwitchSharp是因为它和Chrome经常性格不合
    1423
        3
    1423  
       2013-10-09 20:12:19 +08:00
    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
    中搜索,筛选,查看
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1987 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 00:51 · PVG 08:51 · LAX 17:51 · JFK 20:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.