V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
wireless
V2EX  ›  NGINX

反代遇到一个 jQuery 右侧悬浮带隐藏效果客服的代码,怎么去掉或者替换掉内容

  •  1
     
  •   wireless · 2018-08-11 17:54:41 +08:00 · 2216 次点击
    这是一个创建于 2077 天前的主题,其中的信息可能已经有所发展或是发生改变。
    代码就是这个 http://www.jqueryfuns.com/resource/1338

    反代里用网址替换无效,代码是这样写的:

    location ~ .*\.(php|jsp|cgi|asp|aspx|flv|swf|xml)?$
    {
    proxy_set_header Host www.aaa.com;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header REMOTE-HOST $remote_addr;
    proxy_pass http://www.aaa.com;
    proxy_set_header Accept-Encoding "";
    sub_filter "www.aaa.com" "www.bbb.us";
    sub_filter "http://wpa.qq.com/msgrd?v=3&uin=QQ 号码&site=qq&menu=yes" "http://wpa.qq.com/msgrd?v=3&uin=我的 QQ 号码&site=qq&menu=yes";
    sub_filter "/uploads/35149.jpg" "https://bbb.us/e5wkn.jpg";
    sub_filter "/dedemao/html/images/index_001.jpg" "https://bb.us/i0ue.jpg";
    sub_filter_once off;
    }

    F12 审查元素,可以看到漂浮代码的那个 div,能否删除或者屏蔽这个 div 标签
    或者说怎么样才能替换掉这个右侧浮带代码中的内容
    请大佬指出
    3 条回复    2018-08-12 11:52:39 +08:00
    wireless
        1
    wireless  
    OP
       2018-08-11 18:21:00 +08:00
    刚才可能每首明白,补充一下:

    原网站上有这个 [url]http://www.jqueryfuns.com/resource/1338[/url]漂浮代码

    反代的话用 sub_filter 替换代码中的 QQ 无效,代码是这样写的:

    [code]location ~ .*\.(php|jsp|cgi|asp|aspx|flv|swf|xml)?$
    {
    proxy_set_header Host www.aaa.com;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header REMOTE-HOST $remote_addr;
    proxy_pass http://www.aaa.com;
    proxy_set_header Accept-Encoding "";
    sub_filter "www.aaa.com" "www.bbb.us";
    sub_filter "http://wpa.qq.com/msgrd?v=3&uin=原来的 QQ&site=qq&menu=yes" "http://wpa.qq.com/msgrd?v=3&uin=要替换的 QQ&site=qq&menu=yes";
    sub_filter_once off;
    }[/code]


    F12 审查元素,可以看到漂浮代码的那个 div,能否删除或者屏蔽这个 div 标签,请大佬指出这种如何操作。
    wireless
        2
    wireless  
    OP
       2018-08-11 18:42:28 +08:00
    已解决 简单问题复杂化了
    guolaopi
        3
    guolaopi  
       2018-08-12 11:52:39 +08:00
    @wireless 怎么解决的。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1453 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 23:57 · PVG 07:57 · LAX 16:57 · JFK 19:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.