Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

百度贴吧全能助手加载大图失败 #11

Open
zkn123 opened this issue Sep 21, 2022 · 10 comments
Open

百度贴吧全能助手加载大图失败 #11

zkn123 opened this issue Sep 21, 2022 · 10 comments
Labels
bug Something isn't working

Comments

@zkn123
Copy link

zkn123 commented Sep 21, 2022

环境信息

脚本名称: 百度贴吧全能助手|🌵看贴(楼中楼)无须登录|🌵完全去除各类广告|🌵直接在当前页面查看原图|🌵来无影去无踪
脚本版本:1.3.1
运行环境:Win10 19044, Edge 105.0.1343.42
出问题链接: https://tieba.baidu.com/p/8031413688?frwh=index, 任意帖子点进去后都有问题
bug内容
点进任意有图片的帖子,单机查看大图,都会出现问题
image
image

@n0099
Copy link

n0099 commented Sep 21, 2022

tiebapic.baidu.com换成老的imgsrc.baidu.com,贴吧运维最近给这域加了对querystring param ?tbpicau是否存在的检测,可能是某种防盗链

@shitianshiwa
Copy link
Owner

e1440f1
2.1.1843.6应该解决了
这个问题应该存在蛮久了,看了下贴吧图片放大脚本20天前就修了
https://greasyfork.org/zh-CN/scripts/20969-%E7%99%BE%E5%BA%A6%E8%B4%B4%E5%90%A7%E5%9B%BE%E7%89%87%E7%82%B9%E5%87%BB%E6%94%BE%E5%A4%A7

@shitianshiwa shitianshiwa added the bug Something isn't working label Sep 21, 2022
@li884011470
Copy link

好像这个问题还是存在的,最新版的贴吧放大脚本是可以用的
image

@n0099
Copy link

n0099 commented Oct 10, 2022

cc @BANKA2017

@BANKA2017
Copy link

BANKA2017 commented Oct 10, 2022

最新版的贴吧放大脚本是可以用的

因为那玩意有一个预请求提前拿到了完整的原图链接

    function loadComment(i,tSrc){
        var xhttp = new XMLHttpRequest();
        xhttp.onreadystatechange = function() {
            if (this.readyState == 4 && this.status == 200) {
                i.src = JSON.parse(this.responseText).data.img.original.waterurl;
            }
        };
        tSrc = /(\w+)/.exec(tSrc)[0];
        xhttp.open("GET", "https://tieba.baidu.com/photo/p?alt=jview&pic_id="+tSrc+"&tid="+tiebaTid, true);
        xhttp.send();
    }

这边只是简单的对tbpicau进行拼接

图 http://tiebapic.baidu.com/forum/w%3D580/sign=a2858a32e444ad342ebf878fe0a00c08/62b649600c338744d85e07a3140fd9f9d52aa0ec.jpg?tbpicau=2022-10-12-05_0881a24e1a2d4a04df557165faf7b205
原图 https://tiebapic.baidu.com/forum/pic/item/62b649600c338744d85e07a3140fd9f9d52aa0ec.jpg?tbpicau=2022-10-12-05_287031abf38cbd029ce495ad92f22d1e
贴吧全能助手 https://tiebapic.baidu.com/forum/pic/item/62b649600c338744d85e07a3140fd9f9d52aa0ec.jpg?tbpicau=2022-10-12-05_0881a24e1a2d4a04df557165faf7b205
贴吧放大脚本 https://tiebapic.baidu.com/forum/pic/item/f3deb48f8c5494eec3b927c668f5e0fe98257e51.jpg?tbpicau=2022-10-12-05_e25e75f99bc44cf66defd46391dfd527

@n0099
Copy link

n0099 commented Oct 10, 2022

这边只是简单的对tbpicau进行拼接

您之前不是在zulip说 @Starry-ovo 在鸡血神的贴吧管理器开发群里说tbpicau的取值可以随便乱写服务端没有检验吗

@BANKA2017
Copy link

这边只是简单的对tbpicau进行拼接

您之前不是在zulip说 @Starry-ovo 在鸡血神的贴吧管理器开发群里说tbpicau的取值可以随便乱写服务端没有检验吗

我又不是贴吧内鬼,即使是我现在说的话,在下一秒都有可能失效

@n0099
Copy link

n0099 commented Oct 10, 2022

这边只是简单的对tbpicau进行拼接

您之前不是在zulip说 @Starry-ovo 在鸡血神的贴吧管理器开发群里说tbpicau的取值可以随便乱写服务端没有检验吗

我又不是贴吧内鬼,即使是我现在说的话,在下一秒都有可能失效

在三分钟之内死亡

@n0099
Copy link

n0099 commented Oct 10, 2022

总之我的评价是:

tiebapic.baidu.com换成老的imgsrc.baidu.com

等以后贴吧运维想起来跑去关闭这个老域了再说(实际上还有很多地方都是引用的imgsrc老域)

@shitianshiwa shitianshiwa pinned this issue Oct 15, 2022
@shitianshiwa
Copy link
Owner

这边只是简单的对tbpicau进行拼接

您之前不是在zulip说 @Starry-ovo 在鸡血神的贴吧管理器开发群里说tbpicau的取值可以随便乱写服务端没有检验吗

我写的时候是可以用的,只是之后失效了,具体失效时间不清楚

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants