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

2018-08-11 17:54:41 +08:00
 wireless
代码就是这个 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 标签
或者说怎么样才能替换掉这个右侧浮带代码中的内容
请大佬指出
2364 次点击
所在节点    NGINX
3 条回复
wireless
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
2018-08-11 18:42:28 +08:00
已解决 简单问题复杂化了
guolaopi
2018-08-12 11:52:39 +08:00
@wireless 怎么解决的。。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/478894

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX