圖片全載-FancyboxV5

支持寫真、H漫、漫畫的網站1000+,圖片全量加載,簡易的看圖功能,漫畫無限滾動閱讀模式,下載壓縮打包,如有下一頁元素可自動化下載。

< Feedback on 圖片全載-FancyboxV5

Değerlendirme: İyi - script çalışıyor

§
Gönderildi: 09.11.2023

大佬,可以帮忙把这两个网站加进去吗thotsbay.tv 和https://coomer.su 十分感谢

tony0809Sahip
§
Gönderildi: 09.11.2023

大佬,可以帮忙把这两个网站加进去吗thotsbay.tv 和https://coomer.su 十分感谢

coomer.su跟kemono.su是长一样的,目前脚本应该已经有支持,如果还是没有匹配到,请提供POST的完整网址供我测试。

thotsbay.tv初步看是动态加载的,这个需要时间尝试解析,而且有的图片数量高达破万...视频破千,一口气把全部的图片视频塞入目前页面进行加载,可能会导致崩溃吧 ,就算用Lazy loading也一定很卡,可能只能做列出图片视频网址,再用Motrix或Aria2进行下载。 。

tony0809Sahip
§
Gönderildi: 09.11.2023

写好的测试规则,纪录一下。
需手动插入图片

, {
        name: "Thotsbay thotsbay.tv",
        reg: /^https:\/\/thotsbay\.tv\/\w+(\/photo)?$/i,
        init: async () => {
            if (/\/photo/.test(location.href)) fun.clearAllTimer();
            if (location.href.split("/").length == 4) {
                location.href = location.href + "/photo";
            }
        },
        imgs: async () => {
            let ptext = fun.geT('#photos-tab');
            let m = ptext.match(/\(([\d\.K]+)\)/)[1];
            let num;
            if (/\./.test(m) && /K/.test(m)) {
                num = (parseInt(m.replace(/\.|K/g,""), 10) + 1) * 100;
            } else if (/K/.test(m)) {
                num = parseInt(m.replace(/K/g,""), 10) * 1000 + 100;
            } else {
                num = parseInt(m, 10)
            }
            let pags = Math.ceil(num / 48);
            let actorName = location.href.split("/")[3];
            let imgsSrcArr = [];
            let fetchNum = 0;
            for (let i = 1; i <= pags; i++) {
                let res = await fetch(`https://thotsbay.tv/${actorName}?page=${i}&type=photos&order=0`, {
                    "headers": {
                        "x-requested-with": "XMLHttpRequest"
                    }
                }).then(res => {
                    fun.show(`${displayLanguage.str_06}${fetchNum+=1}/${pags}`, 0);
                    return res.json();
                });
                if (res.length == 0) break;
                let images = res.map(e => "https://thotsbay.tv/storage/" + e.image);
                let thumbnails = res.map(e => e.thumbnail);
                imgsSrcArr = imgsSrcArr.concat(images);
                thumbnailsSrcArray = thumbnailsSrcArray.concat(thumbnails);
            }
            return imgsSrcArr;
        },
        button: [4],
        insertImg: ["#photos", 3],
        customTitle: () => fun.geT(".actor-name>h1"),
        category: "nsfw2"
    }

测试链结
https://thotsbay.tv/anaimiya/photo

视频是m3u8,这个脚本无法下载。

JSON_API是

https://thotsbay.tv/${actorName}?page=${i}&type=videos&order=0

m3u8链结长这样

https://cdn12-leak.camhdxx.com/A9pQZB4khxih5EsKDjCjjw==,1699550097/165/10788455/index.m3u8

中间的字符串A9pQZB4khxih5EsKDjCjjw==并不固定,JSON里的数据也不包含,没办法凑出完整链结。

tony0809Sahip
§
Gönderildi: 10.11.2023

1.6.5已更新

手动插入图片,图片数量超过5千如需下载,可以按7或中键点击左下图标,存储URLs文档,再贴给Motrix或Aria2进行下载。

Cevap paylaş

Yanıt göndermek için oturum açın.