From e3a50fda33828138ff03f64d78b6ec0a076ffa48 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Thu, 31 Mar 2022 16:48:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E9=83=A8=E5=88=86?= =?UTF-8?q?=E5=BD=B1=E8=A7=86=E7=BD=91=E7=AB=99=E6=A8=A1=E6=9D=BF]=20?= =?UTF-8?q?=E9=80=9A=E7=94=A8=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 21 +++++- other/Autopage/ruleUpdateTime.json | 2 +- other/Autopage/rules.json | 100 +++++++---------------------- 3 files changed, 43 insertions(+), 80 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 0138915..a282ed3 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3,7 +3,7 @@ // @name:zh-CN 自动无缝翻页 // @name:zh-TW 自動無縫翻頁 // @name:en AutoPager -// @version 5.5.5 +// @version 5.5.6 // @author X.I.U // @description ⭐无缝衔接下一页内容到网页底部(类似瀑布流)⭐,目前支持:【所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、NexusPHP...」论坛】【百度、谷歌(Google)、必应(Bing)、搜狗、微信、360、Yahoo、Yandex 等搜索引擎...】、贴吧、豆瓣、知乎、微博、NGA、V2EX、煎蛋网、龙的天空、起点中文、千图网、千库网、Pixabay、Pixiv、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、RuTracker、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、小众软件、【动漫狂、漫画猫、漫画屋、漫画 DB、动漫之家、拷贝漫画、HiComic、Mangabz、Xmanhua 等漫画网站...】、PubMed、Z-Library、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了... // @description:zh-TW ⭐無縫銜接下一頁內容到網頁底部(類似瀑布流)⭐,支持各論壇、社交、遊戲、漫畫、小說、學術、搜索引擎(Google、Bing、Yahoo...) 等網站~ @@ -253,6 +253,9 @@ if (getCSS('li.next > a') && getCSS('.blog-post, .post-list') && getCSS('.page-navigator')) { console.info(`[自动无缝翻页] - 部分使用 Typecho 的网站 (handsome)`); return 150; } + } else if (getCSS('.stui-page, .stui-page__item') && getCSS('li.active.hidden-xs+li.hidden-xs>a') && getCSS('.stui-vodlist')) { + console.info(`[自动无缝翻页] - 部分影视网站`); return 300; + } else if (getCSS('meta[name="description" i][content*="小说"], meta[name="description" i][content*="章节"], meta[name="description" i][content*="阅读"]') || location.hostname.indexOf('biqu') > -1 || document.title.indexOf('笔趣阁') > -1) { if (getCSS('[id="content" i], [class~="content" i], [id="chaptercontent" i], [class~="chaptercontent" i], [id="booktext" i], [id="txtcontent" i]') && getXpath('//a[contains(text(), "下一章") or contains(text(), "下一页")]')) { console.info(`[自动无缝翻页] - <笔趣阁 1> 模板的小说网站`); return 200; @@ -298,6 +301,8 @@ curSite = DBSite.biquge; break; case 201: // < 所有使用 笔趣阁 2 模板的小说网站 > DBSite.biquge2.url(); break; + case 300: // < 部分影视网站 > + curSite = DBSite.yingshi; break; } } } @@ -402,6 +407,20 @@ function: { scrollD: 2000 } }, // 部分使用 Typecho 的网站 (handsome) + yingshi: { + style: 'div.stui-page__all {display: none !important;}', + blank: 3, + pager: { + nextL: 'li.active.hidden-xs+li.hidden-xs>a', + pageE: '.stui-vodlist', + replaceE: '.stui-page, .stui-page__item', + scrollD: 1000 + }, + function: { + bF: src_bF, + bFp: [1, '[data-original]', 'data-original'] + } + }, discuz_forum: { pager: { type: 2, diff --git a/other/Autopage/ruleUpdateTime.json b/other/Autopage/ruleUpdateTime.json index cc40390..abd0537 100644 --- a/other/Autopage/ruleUpdateTime.json +++ b/other/Autopage/ruleUpdateTime.json @@ -1 +1 @@ -1648253741 \ No newline at end of file +1648716020 \ No newline at end of file diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index 62a606c..e4f4121 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -1909,21 +1909,6 @@ "bF": "return fun.src_bF(pageE, [1, 'a[data-original]', 'data-original'])" } }, - "在线之家": { - "host": "www.zxzjtv.com", - "url": "return (fun.lp() != '/' && !fun.indexOF('/detail/') && !fun.indexOF('/video/'))", - "style": "div.stui-page__all {display: none !important;}", - "blank": 3, - "pager": { - "nextL": "//ul[contains(@class, 'stui-page__item')]//a[text()='下一页']", - "pageE": "ul.stui-vodlist>li", - "replaceE": "ul.stui-page__item", - "scrollD": 1000 - }, - "function": { - "bF": "return fun.src_bF(pageE, [1, 'a[data-original]', 'data-original'])" - } - }, "嗯哩嗯哩": { "host": "enlienli.com", "url": "return (fun.indexOF('/show/') || fun.indexOF('/search') || (fun.indexOF('/type/') && fun.getCSS('#page') != null))", @@ -1950,21 +1935,6 @@ "bF": "return fun.src_bF(pageE, [0,'img[data-original]','data-original'])" } }, - "片吧影院": { - "host": "www.pianba.tv", - "url": "return (fun.indexOF(/^\\/(so|class)\\//) || fun.indexOF('/sort/all'))", - "style": ".stui-page__all{display: none !important;}", - "blank": 3, - "pager": { - "nextL": "li.active.hidden-xs+li.hidden-xs>a", - "pageE": ".stui-vodlist", - "replaceE": ".stui-page__item", - "scrollD": 1000 - }, - "function": { - "bF": "return fun.src_bF(pageE, [1,'a[data-original]','data-original'])" - } - }, "91 美剧网": { "host": "/mjw\\d+\\.com/", "url": "return (document.title.indexOf('91美剧') > -1 && !fun.indexOF('/w/') && !fun.indexOF('/dp/'))", @@ -1978,19 +1948,6 @@ "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" } }, - "真不卡影院": { - "host": "/www\\.zhenbuka\\d\\.com/", - "url": "return (fun.indexOF('/vodtype/'))", - "blank": 3, - "pager": { - "nextL": "//ul[contains(@class, 'stui-page')]/li/a[text()='下一页']", - "pageE": "ul.stui-vodlist>li", - "replaceE": "ul.stui-page" - }, - "function": { - "bF": "return fun.src_bF(pageE, [1, 'a[data-original]', 'data-original'])" - } - }, "ZzzFun 动漫": { "host": "www.zzzfun.com", "url": "return (fun.indexOF('/vod_type') || fun.indexOF('/vod_show'))", @@ -2168,28 +2125,6 @@ "replaceE": ".pagination" } }, - "磁力狗": { - "host": ["clg.im","ciligou.top","clg00.site"], - "url": "/^\\/search/", - "style": "body, html {overflow-x: initial !important;}", - "blank": 3, - "pager": { - "nextL": ".pagination>li.active+li>a", - "pageE": "#Search_list_wrapper>li", - "replaceE": ".pagination", - "scrollD": 1000 - } - }, - "雨花阁": { - "host": "/^www\\.yuhuage\\d{2}\\.xyz$/", - "url": "/\\/search\\//", - "pager": { - "nextL": "a[title='下一页']", - "pageE": ".search-item", - "replaceE": ".bottom-pager", - "scrollD": 1000 - } - }, "片源网": { "host": "pianyuan.org", "url": "return (fun.lp() == '/')", @@ -2215,6 +2150,28 @@ "bF": "return fun.src_bF(pageE, [0,'img[data-original]','data-original'])" } }, + "磁力狗": { + "host": ["clg.im","ciligou.top","clg00.site"], + "url": "/^\\/search/", + "style": "body, html {overflow-x: initial !important;}", + "blank": 3, + "pager": { + "nextL": ".pagination>li.active+li>a", + "pageE": "#Search_list_wrapper>li", + "replaceE": ".pagination", + "scrollD": 1000 + } + }, + "雨花阁": { + "host": "/^www\\.yuhuage\\d{2}\\.xyz$/", + "url": "/\\/search\\//", + "pager": { + "nextL": "a[title='下一页']", + "pageE": ".search-item", + "replaceE": ".bottom-pager", + "scrollD": 1000 + } + }, "BT 之家": { "host": "/btbtt/", "url": "return (fun.getCSS(\".logo>a[title='BT之家']\") != null && (fun.lp() == '/' || fun.indexOF(/^\\/(index|forum|search)-/)))", @@ -4924,19 +4881,6 @@ "replaceE": ".pagination" } }, - "妖次元里番": { - "host": "www.ycylf.men", - "url": "return (fun.lp() == '/search.php' || fun.indexOF('.html'))", - "blank": 3, - "pager": { - "nextL": "li.active.hidden-xs+li.hidden-xs>a", - "pageE": ".stui-vodlist", - "replaceE": ".stui-page" - }, - "function": { - "bF": "return fun.src_bF(pageE, [1,'a[data-original]','data-original'])" - } - }, "Hentai Anime Zone": { "host": "hentaianimezone.com", "url": "return (!fun.indexOF('.html'))",