skofkyo / AutoPager

375 stars 50 forks source link

希望大神适配卡卡美女网 #1

Closed wowotaa closed 1 year ago

wowotaa commented 1 year ago

https://m.kaka234.cc/

skofkyo commented 1 year ago

抱歉,這網站我知道,但是我這邊連不上,所以做不了...

skofkyo commented 1 year ago

手機端嘗試成功連上,需要翻進去...,PC端我再試試,不然手機沒法寫規則。

wowotaa commented 1 year ago

谢谢大神

发送自我的盖乐世

-------- 原始信息 -------- 发件人: skofkyo @.> 日期: 2023/9/24 下午5:05 (GMT+08:00) 收件人: skofkyo/AutoPager @.> 抄送: wowotaa @.>, Author @.> 主题: Re: [skofkyo/AutoPager] 希望大神适配卡卡美女网 (Issue #1)

手™C端‡L‡成功B上,需要翻M去...,PC端我再‡‡,不然手™C›]法Œ‘„t。

― Reply to this email directly, view it on GitHubhttps://github.com/skofkyo/AutoPager/issues/1#issuecomment-1732525748, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BCJCZDWENE54Y2H5DYZWSD3X37ZVTANCNFSM6AAAAAA5EGXM6U. You are receiving this because you authored the thread.Message ID: @.***>

skofkyo commented 1 year ago

規則寫好了,你可以修改腳本加進去。

    {
        name: "卡卡美女网 www.kaka234.cc m.kaka234.cc",
        reg: /https?:\/\/(www|m)\.kaka234\.cc\/HTM\/pic\/\w+\/\d+\/\d+\/\d+\.html/i,
        imgs: () => {
            let max;
            try {
                max = fun.geT(".dede_pages li>a,.article_page li>a").match(/\d+/)[0];
            } catch (e) {
                max = 1
            }
            return fun.getImg(".content img,.ArticleImageBox img", max, 9);
        },
        insertImg: ["//div[@class='content'] | //div[div[@class='ArticleImageBox']]", 2],
        autoDownload: [0],
        next: () => {
            let next = fun.ge("//li[contains(text(),'上一篇')]/a");
            if (next) {
                return next.href
            } else {
                return null
            }
        },
        prev: 1,
        customTitle: () => {
            return fun.geT(".Title>h1,.PsBox");
        },
        css: ".m_adv{display:none!important}",
        category: "nsfw1"
    }

腳本還有其他紀錄的細節要修改,腳本會過段時間再更新。

wowotaa commented 1 year ago

真的太感谢了

发送自我的盖乐世

-------- 原始信息 -------- 发件人: skofkyo @.> 日期: 2023/9/24 下午6:32 (GMT+08:00) 收件人: skofkyo/AutoPager @.> 抄送: wowotaa @.>, Author @.> 主题: Re: [skofkyo/AutoPager] 希望大神适配卡卡美女网 (Issue #1)

„tŒ‘好了,你可以修改_本加M去。

{
    name: "卡卡美女网 www.kaka234.cc m.kaka234.cc",
    reg: /https?:\/\/(www|m)\.kaka234\.cc\/HTM\/pic\/\w+\/\d+\/\d+\/\d+\.html/i,
    imgs: () => {
        let max;
        try {
            max = fun.geT(".dede_pages li>a,.article_page li>a").match(/\d+/)[0];
        } catch (e) {
            max = 1
        }
        return fun.getImg(".content img,.ArticleImageBox img", max, 9);
    },
    insertImg: ***@***.***='content'] | ***@***.***='ArticleImageBox']]", 2],
    autoDownload: [0],
    next: () => {
        let next = fun.ge("//li[contains(text(),'上一篇')]/a");
        if (next) {
            return next.href
        } else {
            return null
        }
    },
    prev: 1,
    customTitle: () => {
        return fun.geT(".Title>h1,.PsBox");
    },
    css: ".m_adv{display:none!important}",
    category: "nsfw1"
}

_本€有其他o›的š要修改,_本•^段•rg再更新。

― Reply to this email directly, view it on GitHubhttps://github.com/skofkyo/AutoPager/issues/1#issuecomment-1732540935, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BCJCZDX3AVMXIA5SJDOAJB3X4AD4FANCNFSM6AAAAAA5EGXM6U. You are receiving this because you authored the thread.Message ID: @.***>