From 661ada4ec16de17b04d81f91a4b6a2c6e0aa1dc2 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Mon, 4 Apr 2022 19:45:39 +0800 Subject: [PATCH 0001/1163] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[4chan]=E3=80=81?= =?UTF-8?q?[=E7=BE=8E=E5=A5=B3=E5=86=99=E7=9C=9F=E7=BD=91]=E3=80=81[?= =?UTF-8?q?=E5=85=A8=E5=9B=BE=E7=BD=91]=20=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 80 +++++++++++++++------------------------ 1 file changed, 31 insertions(+), 49 deletions(-) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index f5614d706..c69be01a6 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -1025,6 +1025,16 @@ "scrollD": 2500 } }, + "4 Chan": { + "host": ["boards.4chan.org","boards.4channel.org"], + "url": "return (!fun.indexOF('/search') && !fun.indexOF('/thread/'))", + "blank": 3, + "pager": { + "nextL": ".pagelist strong+a", + "pageE": ".thread,.thread+hr", + "replaceE": ".pagelist" + } + }, "LowEndTalk": { "host": "lowendtalk.com", "blank": 3, @@ -4875,7 +4885,7 @@ }, "pornhub": { "host": "/\\.pornhub\\.com/", - "url": "/\\/video/", + "url": "/^\\/video/", "style": ".footerContentWrapper, .pre-footer {display: none !important;}", "blank": 3, "pager": { @@ -5657,26 +5667,6 @@ "scrollD": 1000 } }, - "ku66_m": { - "host": "m.ku66.net", - "url": "/\\d+\\.html/", - "style": ".ArticleImageBox img {min-height: 200px;}", - "pager": { - "nextL": "//div[@class='article_page']//a[text()='下一页']", - "pageE": ".ArticleImageBox>*", - "replaceE": ".article_page", - "scrollD": 4000 - } - }, - "ku66_m_list": { - "host": "m.ku66.net", - "pager": { - "nextL": "//div[@class='article_page']//a[text()='下一页']", - "pageE": ".PictureList>ul>li", - "replaceE": ".article_page", - "scrollD": 1000 - } - }, "ku137": { "host": "www.ku137.net", "url": "/\\d+\\.html/", @@ -5697,25 +5687,6 @@ "replaceE": ".page" } }, - "ku137_m": { - "host": "m.ku137.net", - "url": "/\\d+\\.html/", - "style": ".ArticleImageBox img {min-height: 300px;}", - "pager": { - "nextL": "//div[@class='article_page']//a[text()='下一页']", - "pageE": ".ArticleImageBox>*", - "replaceE": ".article_page", - "scrollD": 3000 - } - }, - "ku137_m_list": { - "host": "m.ku137.net", - "pager": { - "nextL": "//div[@class='article_page']//a[text()='下一页']", - "pageE": ".PictureList>ul>li", - "replaceE": ".article_page" - } - }, "kingdom": { "host": "www.kingdom-en.com", "url": "/\\d+\\.html/", @@ -5816,15 +5787,6 @@ "replaceE": ".paging" } }, - "五朵美女网": { - "host": "m.558duo.cc", - "pager": { - "nextL": "//a[text()='下一页']", - "pageE": ".PictureList", - "replaceE": ".article_page", - "scrollD": 1000 - } - }, "凸凹吧/撸女吧": { "host": ["www.tuao8.com","www.tuao8.xyz","www.tuaow.xyz","www.tuaom.cc","www.lunu.cc"], "url": "/^\\/(post|web)\\//", @@ -6036,5 +5998,25 @@ "replaceE": ".fanye1", "scrollD": 2000 } + }, + "美女写真网 - hh1234": { + "host": "www.hh1234.cc", + "url": "/\\/\\d+(_\\d+)?\\.html$/", + "pager": { + "nextL": ".current+a", + "pageE": ".content>img", + "replaceE": ".page-list", + "scrollD": 2000 + } + }, + "全图网 - quantuwang1.com": { + "host": ["qq.quantuwang1.com","q.quantuwang1.com"], + "url": "/^\\/m\\//", + "pager": { + "nextL": ".index_c_page>span+a", + "pageE": "body>.box>.index_c>.index_c_img", + "replaceE": ".index_c_page", + "scrollD": 2000 + } } } From 83c2c95fe5fe8a76e5987442b1ce0ceec53990a6 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Mon, 4 Apr 2022 19:46:07 +0800 Subject: [PATCH 0002/1163] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E9=83=A8?= =?UTF-8?q?=E5=88=86=E7=BE=8E=E5=A5=B3=E5=9B=BE=E7=AB=99=20-=20=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E7=89=88]=20=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 | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index f60b70471..13c9ab689 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3,7 +3,7 @@ // @name:zh-CN 自动无缝翻页 // @name:zh-TW 自動無縫翻頁 // @name:en AutoPager -// @version 5.6.3 +// @version 5.6.4 // @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...) 等網站~ @@ -259,10 +259,14 @@ 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('.content > #content') && getCSS('.page_chapter') && getXpath('//div[@class="page_chapter"]//a[text()="下一章"]')) { + } else if (getCSS('.ArticleImageBox, .PictureList') && getCSS('.article_page') && getXpath('//div[contains(@class,"article_page")]//a[text()="下一页"]')) { + console.info(`[自动无缝翻页] - 部分美女图站 - 手机版`); return 301; + + } else if (getCSS('.content > #content') && getCSS('.page_chapter') && getXpath('//div[contains(@class,"page_chapter")]//a[text()="下一章"]')) { console.info(`[自动无缝翻页] - <笔趣阁 1> 模板的小说网站`); return 200; } else if (getCSS('#nr1') && getCSS('.nr_page') && getCSS('#pb_next')) { console.info(`[自动无缝翻页] - <笔趣阁 2 - 手机版> 模板的小说网站`); return 201; @@ -315,10 +319,12 @@ curSite = DBSite.biquge3; break; case 300: // < 部分影视网站 > curSite = DBSite.yingshi; break; + case 301: // < 部分美女图站 - 手机版 > + curSite = DBSite.meinvtu_m; break; } } } - // 网站规则 + // 内置翻页规则 function setDBSite() { /* url: 匹配到该域名后要执行的函数/正则(一般用于根据 URL 分配相应翻页规则) @@ -497,7 +503,18 @@ function: { bF: src_bF, bFp: [1, '[data-original]', 'data-original'] } - }, + }, // 部分影视网站 + meinvtu_m: { + history: true, + blank: 3, + pager: { + type: 3, + nextL: '//div[contains(@class,"article_page")]//a[text()="下一页"]', + pageE: '.ArticleImageBox, .PictureList', + replaceE: '.article_page', + scrollD: 500 + } + }, // 部分美女图站 - 手机版 discuz_forum: { pager: { type: 2, @@ -1510,7 +1527,7 @@ function: { BAIDU_TIEBA: DBSite.baidu_tieba.SiteTypeID }; } - // 获取外置翻页规则 + // 外置翻页规则 function getRulesUrl(update = false) { // 如果是原来的时间格式 或 刚安装脚本,则需要立即更新 if (typeof(GM_getValue('menu_ruleUpdateTime', '')) == 'string') update = true @@ -3258,11 +3275,6 @@ function: { // 强制新标签页打开链接 function forceTarget() { - // 过渡,过几个星期后删除这两个判断 - if (curSite.forceTarget != undefined && curSite.blank == undefined) curSite.blank = curSite.forceTarget - if (curSite.blank === true) curSite.blank = 2 - // 过渡,过几个星期后删除这两个判断 - if (curSite.blank === 1) { document.head.appendChild(document.createElement('base')).target = '_blank'; From e77843b8734f4a068addac27eb5a81c833b17667 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 5 Apr 2022 09:06:23 +0800 Subject: [PATCH 0003/1163] =?UTF-8?q?=E8=A1=A5=E5=85=85=20[Hentai=20Cospla?= =?UTF-8?q?ys]=20=E5=85=B6=E4=BB=96=E5=9F=9F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index c69be01a6..32d4e7fa4 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -5278,29 +5278,31 @@ } }, "Hentai Cosplays - 手机版 - 图片页": { - "host": ["hentai-cosplays.com","porn-images-xxx.com","hentai-img.com"], + "host": ["/hentai-cosplays\\.com$/","/porn-images-xxx\\.com$/","/hentai-img\\.com$/"], "url": "return (fun.indexOF('/image/') && fun.isMobile())", "style": ".icon-good-thumbnail, .icon-bad-thumbnail {display: none !important;}", "pager": { + "type": 3, "nextL": "a.paginator_page[rel='next']", "pageE": "#detail_list", "replaceE": ".paginator_area", - "scrollD": 3500 + "scrollD": 1000 } }, "Hentai Cosplays - 图片页": { - "host": ["hentai-cosplays.com","porn-images-xxx.com","hentai-img.com"], + "host": ["/hentai-cosplays\\.com$/","/porn-images-xxx\\.com$/","/hentai-img\\.com$/"], "url": "/^\\/image\\//", "style": ".icon-good-thumbnail, .icon-bad-thumbnail {display: none !important;}", "pager": { + "type": 3, "nextL": "id('paginator')//a[contains(text(), '>')]", "pageE": ".icon-overlay", "replaceE": "#paginator", - "scrollD": 3000 + "scrollD": 1000 } }, "Hentai Cosplays - 手机版 - 分类页": { - "host": ["hentai-cosplays.com","porn-images-xxx.com","hentai-img.com"], + "host": ["/hentai-cosplays\\.com$/","/porn-images-xxx\\.com$/","/hentai-img\\.com$/"], "url": "return (fun.isMobile())", "blank": 3, "pager": { @@ -5308,21 +5310,21 @@ "nextL": "a.paginator_page[rel='next']", "pageE": "#page>#right_sidebar>#entry_list", "replaceE": "#page>#page_nation", - "scrollD": 700 + "scrollD": 1000 }, "function": { "bF": "return fun.src_bF(pageE, [0,'img[data-original]','data-original'])" } }, "Hentai Cosplays - 分类页": { - "host": ["hentai-cosplays.com","porn-images-xxx.com","hentai-img.com"], + "host": ["/hentai-cosplays\\.com$/","/porn-images-xxx\\.com$/","/hentai-img\\.com$/"], "blank": 3, "pager": { "type": 3, "nextL": "a.nextpostslink", "pageE": "#center>#display_area_image>#image-list", "replaceE": ".wp-pagenavi", - "scrollD": 700 + "scrollD": 1000 } }, "绅士仓库": { From bb93509aed3aeb87cc7d4f7f0cccb6c595d8f6e0 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 5 Apr 2022 12:18:07 +0800 Subject: [PATCH 0004/1163] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E7=88=B1?= =?UTF-8?q?=E7=9C=8B=E5=9B=BE=E5=90=A7]=20=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index 32d4e7fa4..80883de6c 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -6020,5 +6020,16 @@ "replaceE": ".index_c_page", "scrollD": 2000 } + }, + "爱看图吧": { + "host": "www.9iktb.com", + "url": "/^\\/gallery\\//", + "style": ".gallery-detail-img>img {min-height: 300px;}", + "pager": { + "type": 3, + "nextL": "li.active+li>a", + "pageE": ".gallery-detail-content", + "replaceE": ".pagination" + } } } From bf43d38cfa278fdc2fe7726a2a1759ac2bdc2b49 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 5 Apr 2022 12:48:09 +0800 Subject: [PATCH 0005/1163] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[ExHentai]=20?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index 80883de6c..ca17b3cc6 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -5196,19 +5196,18 @@ } }, "E-Hentai-g": { - "host": "e-hentai.org", + "host": ["e-hentai.org","exhentai.org"], "url": "/^\\/g\\//", "pager": { "nextL": "//table[@class='ptt']//a[text()='>']", - "pageE": "#gdt>.gdtm", - "replaceE": ".ptt, .ptb", - "scrollD": 1000 + "pageE": "#gdt>div:not(.c)", + "replaceE": ".ptt, .ptb" } }, "E-Hentai-s": { - "host": "e-hentai.org", + "host": ["e-hentai.org","exhentai.org"], "url": "/^\\/s\\//", - "style": "#img {max-width: 100% !important;height: auto !important;}", + "style": "#img {max-width: 100% !important;height: auto !important;min-height: 400px;}", "pager": { "nextL": "a#next", "pageE": "#img", @@ -5217,12 +5216,11 @@ } }, "E-Hentai": { - "host": "e-hentai.org", + "host": ["e-hentai.org","exhentai.org"], "pager": { "nextL": "//table[@class='ptt']//a[text()='>']", - "pageE": ".itg>tbody>tr:not(:first-of-type)", - "replaceE": ".ptt, .ptb", - "scrollD": 1000 + "pageE": ".itg>div, .itg>tbody>tr:not(:first-of-type)", + "replaceE": ".ptt, .ptb" } }, "nhentai": { From 97abbcc185453cb1c8f956d784dd340b42524df4 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 5 Apr 2022 22:47:05 +0800 Subject: [PATCH 0006/1163] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E7=BF=BB?= =?UTF-8?q?=E9=A1=B5=E6=A8=A1=E5=BC=8F5=E3=80=816?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 13c9ab689..3e0236583 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3,7 +3,7 @@ // @name:zh-CN 自动无缝翻页 // @name:zh-TW 自動無縫翻頁 // @name:en AutoPager -// @version 5.6.4 +// @version 5.6.5 // @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...) 等網站~ @@ -11,6 +11,8 @@ // @match *://*/* // @connect userscript.xiu2.xyz // @connect userscript.gh2233.ml +// @connect github-do.panbaidu.cn +// @connect github.do // @connect raw.iqiq.io // @connect hk1.monika.love // @connect raw.fastgit.org @@ -117,7 +119,7 @@ menuId[0] = GM_registerMenuCommand('❌ 当前网页暂不支持 [欢迎点击申请]', function () {window.GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true});window.GM_openInTab('https://greasyfork.org/zh-CN/scripts/419215/feedback', {active: true,insert: true,setParent: true});}); menuId[1] = GM_registerMenuCommand('🔄 更新外置翻页规则 (每天自动)', function(){getRulesUrl(true)}); menuId[2] = GM_registerMenuCommand('#️⃣ 自定义翻页规则', function(){customRules()}); - console.info('[自动无缝翻页] - 暂不支持当前网页 [ ' + location.href + ' ],欢迎申请支持: https://github.com/XIU2/UserScript / https://greasyfork.org/zh-CN/scripts/96880/feedback'); + console.info('[自动无缝翻页] - 暂不支持当前网页 [ ' + location.href + ' ],欢迎申请支持: https://github.com/XIU2/UserScript / https://greasyfork.org/zh-CN/scripts/419215/feedback'); return } else if (webType === -1) { return @@ -1533,6 +1535,7 @@ function: { if (typeof(GM_getValue('menu_ruleUpdateTime', '')) == 'string') update = true let urlArr = [//'https://userscript.gh2233.ml/other/Autopage/rules.json', + //'https://github-do.panbaidu.cn/https://raw.githubusercontent.com/XIU2/UserScript/master/other/Autopage/rules.json', 'https://raw.iqiq.io/XIU2/UserScript/master/other/Autopage/rules.json', 'https://hk1.monika.love/XIU2/UserScript/master/other/Autopage/rules.json', 'https://raw.fastgit.org/XIU2/UserScript/master/other/Autopage/rules.json', @@ -1551,8 +1554,8 @@ function: { } function getRulesUrl_(n = false) { - let url = urlArr[Math.floor(Math.random()*urlArr.length)]; - if (n) url = 'https://userscript.xiu2.xyz/other/Autopage/rules.json' + let url; + if (n) {url = 'https://userscript.xiu2.xyz/other/Autopage/rules.json'} else {url = urlArr[Math.floor(Math.random()*urlArr.length)];} GM_xmlhttpRequest({ url: url, method: 'GET', @@ -2767,7 +2770,7 @@ function: { // 创建 iframe let iframe = document.createElement('iframe'); - iframe.style = 'position: absolute; width: 100%; height: 100%; border: none;'; + iframe.style = 'position: absolute !important; width: 100% !important; height: 100% !important; border: none !important;'; iframe.id = 'Autopage_iframe'; iframe.src = src; @@ -2838,7 +2841,7 @@ function: { let iframe = document.getElementById('Autopage_iframe'); if (!iframe) { iframe = document.createElement('iframe'); - iframe.style = 'position: absolute; top: -9999px; left: -9999px; width: 100%; height: 100%; border: none; z-index: -999; /*visibility: hidden;*/'; + iframe.style = 'position: absolute !important; top: -9999px !important; left: -9999px !important; width: 100% !important; height: 100% !important; border: none !important; z-index: -999 !important; /*visibility: hidden;*/'; //iframe.sandbox = 'allow-same-origin allow-scripts allow-popups allow-forms'; iframe.id = 'Autopage_iframe'; iframe.src = src; From 7a7f915a8eafa9a800c1f8ef308786131bbd51d7 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Wed, 6 Apr 2022 13:53:07 +0800 Subject: [PATCH 0007/1163] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E6=9C=BA?= =?UTF-8?q?=E6=A0=B8=20GCORES]=20=E6=94=AF=E6=8C=81;=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=20[=E7=BB=85=E5=A3=AB=E4=BB=93=E5=BA=93]=20=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index ca17b3cc6..dd7446373 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -1688,6 +1688,15 @@ "scrollD": 500 } }, + "机核 GCORES": { + "host": "www.gcores.com", + "url": "fun.isUrlC(); fun.getAllCSS('.navLayout_side, .gtabs, .loadingPlaceholder>.row').forEach(function (o) {o.innerHTML = o.innerHTML;}); return (fun.lp() != '/' && (fun.indexOF('/collections/') || !fun.indexOF(/\\/\\d+$/)))", + "pager": { + "nextL": "li.pagination_item.is_active+li>a, li.pagination_item.active+li>a", + "pageE": ".loadingPlaceholder>.row>div", + "replaceE": ".pagination" + } + }, "SpigotMC": { "host": "www.spigotmc.org", "url": "/\\/resources\\/(categories|authors)?/", @@ -5327,12 +5336,12 @@ }, "绅士仓库": { "host": "/^cangku\\./", - "url": "if (document.title.indexOf('绅士') == -1){return} fun.isUrlC(); return (fun.lp() == '/' || fun.indexOF('/user/'))", + "url": "if (document.title.indexOf('绅士') == -1){return}; fun.isUrlC(); setTimeout(`document.querySelectorAll('#header, .simple-navbar').forEach(function (o) {o.innerHTML = o.innerHTML; console.log(o);});`, 1500); return (fun.lp() == '/' || fun.indexOF('/category/') || fun.indexOF('/user/'))", "history": true, "pager": { "type": 6, "nextL": "js;return fun.getNextEP('li.number.active+li.number', 'page=', /page=\\d+/)", - "pageE": ".post-list>.row, #user-post>.row, #user-favorite>.row, #user-comment .comment-list", + "pageE": ".post-list>.row, .category-post>.row, #user-post>.row, #user-favorite>.row, #user-comment .comment-list", "replaceE": ".el-pager", "loadTime": 1500 }, From 8a144c6e138b4dcf0888d97655cc55f3a14c2571 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Wed, 6 Apr 2022 15:51:20 +0800 Subject: [PATCH 0008/1163] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E6=91=84?= =?UTF-8?q?=E5=9B=BE=E7=BD=91]=E3=80=81[=E6=91=84=E5=9B=BE=E7=BD=91=20-=20?= =?UTF-8?q?=E6=96=B0=E8=A7=86=E7=95=8C]=20=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index dd7446373..c752c7ef9 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -1266,6 +1266,21 @@ "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" } }, + "摄图网": { + "host": ["699pic.com","xsj.699pic.com"], + "url": "return (fun.getCSS('.pagelist') != null)", + "style": ".lastNavItem, .yaoxinAct-rukou {display: none !important;}", + "pager": { + "nextL": ".downPage", + "pageE": ".swipeboxEx>*, .search-video-wrap>.video-list>ul, ul.music-list, #all-fonts-box, .img-list>.img-list-box, .video-list-box", + "replaceE": ".pagelist", + "scriptT": 2, + "scrollD": 2000 + }, + "function": { + "bF": "return fun.src_bF(pageE, [0,'img[data-original]','data-original'])" + } + }, "众图网": { "host": "www.ztupic.com", "url": "return (fun.lp() != '/' && !fun.indexOF('/sucai/'))", From ec221c21dec575c1affb765a0fc179302ad61b5d Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Wed, 6 Apr 2022 19:31:19 +0800 Subject: [PATCH 0009/1163] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[Gitee]=E3=80=81?= =?UTF-8?q?[Github]=E3=80=81[51CTO]=E3=80=81[SegmentFault]=E3=80=81[StackO?= =?UTF-8?q?verflow]=E3=80=81[=E8=B1=86=E7=93=A3]=E3=80=81[233=20=E5=8A=A8?= =?UTF-8?q?=E6=BC=AB]=E3=80=81[AGE=20=E5=8A=A8=E6=BC=AB]=E3=80=81[ZzzFun?= =?UTF-8?q?=20=E5=8A=A8=E6=BC=AB]=20=E8=A7=84=E5=88=99(=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E4=BB=85=20pageE=20=E4=B8=8D=E4=B8=80=E6=A0=B7=E7=9A=84?= =?UTF-8?q?=E5=90=8C=E7=BD=91=E7=AB=99=E8=A7=84=E5=88=99)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/ruleUpdateTime.json | 2 +- other/Autopage/rules.json | 387 ++++------------------------- 2 files changed, 44 insertions(+), 345 deletions(-) diff --git a/other/Autopage/ruleUpdateTime.json b/other/Autopage/ruleUpdateTime.json index abd053782..ef58c9708 100644 --- a/other/Autopage/ruleUpdateTime.json +++ b/other/Autopage/ruleUpdateTime.json @@ -1 +1 @@ -1648716020 \ No newline at end of file +1649244597 \ No newline at end of file diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index c752c7ef9..5f7096ff5 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -343,66 +343,21 @@ "replaceE": "#paginator" } }, - "豆瓣 - 分集短评": { + "豆瓣 - 分集短评/剧评影评/在看/想看/看过的电影/作品": { "host": "movie.douban.com", - "url": "/^\\/subject\\/\\d+\\/(episode|tv_discuss)/", + "url": "return (fun.indexOF(/^\\/subject\\/\\d+\\/(episode|tv_discuss)/) || fun.indexOF(/^\\/subject\\/\\d+\\/reviews/) || fun.indexOF(/^\\/people\\/\\d+\\/(do|wish|collect)/) || fun.indexOF(/^\\/celebrity\\/\\d+\\/movies/))", "pager": { "nextL": "link[rel='next']", - "pageE": "#comments", + "pageE": "#comments, .review-list, .grid-view, .grid_view>ul>li", "replaceE": ".paginator" } }, - "豆瓣 - 剧评影评": { - "host": "movie.douban.com", - "url": "/^\\/subject\\/\\d+\\/reviews/", - "pager": { - "nextL": "link[rel='next']", - "pageE": ".review-list", - "replaceE": ".paginator" - } - }, - "豆瓣 - 在看/想看/看过的电影": { - "host": "movie.douban.com", - "url": "/^\\/people\\/\\d+\\/(do|wish|collect)/", - "pager": { - "nextL": "link[rel='next']", - "pageE": ".grid-view", - "replaceE": ".paginator" - } - }, - "豆瓣 - 作品": { - "host": "movie.douban.com", - "url": "/^\\/celebrity\\/\\d+\\/movies/", - "pager": { - "nextL": "link[rel='next']", - "pageE": ".grid_view>ul>li", - "replaceE": ".paginator" - } - }, - "豆瓣 - 片单": { - "host": "www.douban.com", - "url": "/^\\/doulist\\//", - "pager": { - "nextL": "link[rel='next']", - "pageE": ".doulist-item", - "replaceE": ".paginator" - } - }, - "豆瓣 - 标签": { + "豆瓣 - 片单/标签/小组讨论精选": { "host": "www.douban.com", - "url": "/^\\/tag\\//", + "url": "/^\\/((doulist|tag)\\/|group\\/explore)/", "pager": { "nextL": "link[rel='next']", - "pageE": ".article>.mod", - "replaceE": ".paginator" - } - }, - "豆瓣 - 小组讨论精选": { - "host": "www.douban.com", - "url": "/^\\/group\\/explore/", - "pager": { - "nextL": "span.next>a", - "pageE": ".channel-item", + "pageE": ".doulist-item, .article>.mod:not([id='doulist-info']), .channel-item", "replaceE": ".paginator" } }, @@ -1983,23 +1938,10 @@ }, "ZzzFun 动漫": { "host": "www.zzzfun.com", - "url": "return (fun.indexOF('/vod_type') || fun.indexOF('/vod_show'))", - "pager": { - "nextL": "#page a[title='下一页']", - "pageE": "ul.search-result>a", - "replaceE": "#page", - "scrollD": 1000 - }, - "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" - } - }, - "ZzzFun 动漫 - 搜索页": { - "host": "www.zzzfun.com", - "url": "return (fun.indexOF('/vod_search'))", + "url": "/^\\/vod_(type|show|search)/", "pager": { "nextL": "#page a[title='下一页']", - "pageE": "ul.show-list>li", + "pageE": "ul.search-result>a, ul.show-list>li", "replaceE": "#page", "scrollD": 1000 }, @@ -2086,24 +2028,13 @@ "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" } }, - "AGE 动漫 - 全部/搜索": { - "host": ["www.agemys.com","www.age.tv"], - "url": "return (fun.indexOF('/catalog/') || fun.lp() == '/search')", - "blank": 3, - "pager": { - "nextL": "id('container')//div[@class='blockcontent']/div[@style][not(@class)]/li/a[contains(text(), '下一页')]", - "pageE": "#container .blockcontent1>div", - "replaceE": "#container .blockcontent>div[style]:not([class])", - "scrollD": 1000 - } - }, - "AGE 动漫 - 其他页": { + "AGE 动漫": { "host": ["www.agemys.com","www.age.tv"], - "url": "return (fun.lp() == '/recommend' || fun.lp() == '/update')", + "url": "return (fun.indexOF('/catalog/') || fun.lp() == '/search' || fun.lp() == '/recommend' || fun.lp() == '/update')", "blank": 3, "pager": { "nextL": "id('container')//div[@class='blockcontent']/div[@style][not(@class)]/li/a[contains(text(), '下一页')]", - "pageE": "#container .blockcontent>ul>li", + "pageE": "#container .blockcontent1>div, #container .blockcontent>ul:not(.search-list)>li", "replaceE": "#container .blockcontent>div[style]:not([class])", "scrollD": 1000 } @@ -2120,25 +2051,15 @@ }, "233 动漫": { "host": "www.dm233.cc", - "url": "return (fun.indexOF('/catalog/') || fun.lp() == '/recommend/' || fun.lp() == '/search')", + "url": "return (fun.indexOF('/catalog/') || fun.lp() == '/article/' || fun.lp() == '/recommend/' || fun.lp() == '/search')", "blank": 3, "pager": { "nextL": "//div[@class='pagelist']//a[contains(text(), '下一页') or contains(text(), '下一頁')]", - "pageE": ".dhnew ul>li", + "pageE": ".dhnew ul>li, .xgyd ul>li", "replaceE": ".pagelist", "scrollD": 1000 } }, - "233 动漫 - 动漫情报/资讯": { - "host": "www.dm233.cc", - "url": "return (fun.lp() == '/article/')", - "blank": 3, - "pager": { - "nextL": "//div[@class='pagelist']//a[contains(text(), '下一页') or contains(text(), '下一頁')]", - "pageE": ".xgyd ul>li", - "replaceE": ".pagelist" - } - }, "233 动漫 - 排行榜": { "host": "www.dm233.cc", "url": "return (fun.lp() == '/rank/')", @@ -3750,66 +3671,23 @@ "scrollD": 1000 } }, - "StackOverflow - Questions": { + "StackOverflow": { "host": "stackoverflow.com", - "url": "return (fun.lp() == '/questions')", + "url": "return (fun.lp() == '/search' || (fun.indexOF(/^\\/questions/) && !fun.indexOF(/^\\/questions\\/\\d+/)) || fun.lp() == '/tags' || fun.lp() == '/users')", "blank": 3, "pager": { "nextL": "a[rel='next']", - "pageE": "#questions>div", + "pageE": "#questions>div, .js-search-results>div:first-child>div, #tags-browser>div, #user-browser>div:first-child>div", "replaceE": ".pager", "scrollD": 2000 } }, - "StackOverflow - Search": { - "host": "stackoverflow.com", - "url": "return (fun.lp() == '/search')", - "blank": 3, - "pager": { - "nextL": "a[rel='next']", - "pageE": ".js-search-results>div:first-child>div", - "replaceE": ".pager", - "scrollD": 2000 - } - }, - "StackOverflow - Tags": { - "host": "stackoverflow.com", - "url": "return (fun.lp() == '/tags')", - "blank": 3, - "pager": { - "nextL": "a[rel='next']", - "pageE": "#tags-browser>div", - "replaceE": ".pager", - "scrollD": 2000 - } - }, - "StackOverflow - Users": { - "host": "stackoverflow.com", - "url": "return (fun.lp() == '/users')", - "blank": 3, - "pager": { - "nextL": "a[rel='next']", - "pageE": "#user-browser>div:first-child>div", - "replaceE": ".pager", - "scrollD": 2000 - } - }, - "SegmentFault - Questions": { + "SegmentFault": { "host": "segmentfault.com", - "url": "fun.isUrlC(); return (fun.indexOF('/questions'))", + "url": "fun.isUrlC(); return (fun.lp() == '/search' || fun.indexOF('/questions'))", "pager": { "nextL": "//a[@class='page-link'][text()='下一页']", - "pageE": "ul.list-group>li", - "replaceE": "ul.pagination", - "scrollD": 1000 - } - }, - "SegmentFault - Search": { - "host": "segmentfault.com", - "url": "return (fun.lp() == '/search')", - "pager": { - "nextL": "//a[@class='page-link'][text()='下一页']", - "pageE": "li.list-group-item", + "pageE": "ul.list-group>li, li.list-group-item", "replaceE": "ul.pagination", "scrollD": 1000 } @@ -3962,30 +3840,12 @@ "replaceE": ".topic-page" } }, - "51CTO - 博客 - 分类页": { - "host": "blog.51cto.com", - "url": "/^\\/nav/", - "pager": { - "nextL": "li.next>a", - "pageE": ".date-list", - "replaceE": ".pagination" - } - }, "51CTO - 博客": { "host": "blog.51cto.com", - "url": "return (fun.indexOF(/^\\/u_\\d+/) && !fun.indexOF(/^\\/u_\\d+\\/\\d+/))", + "url": "return (fun.indexOF(/^\\/(nav|topic)/) || (fun.indexOF(/^\\/u_\\d+/) && !fun.indexOF(/^\\/u_\\d+\\/\\d+/)))", "pager": { "nextL": "li.next>a", - "pageE": "#common-article-listbox-1", - "replaceE": ".pagination" - } - }, - "51CTO - 博客 - 其他": { - "host": "blog.51cto.com", - "url": "/^\\/(topic|search)\\//", - "pager": { - "nextL": "li.next>a", - "pageE": "ul.search-artical", + "pageE": ".date-list, #common-article-listbox-1, ul.search-artical", "replaceE": ".pagination" } }, @@ -4000,57 +3860,27 @@ "replaceE": "main navigation-tree, main .scrollbar" } }, - "Gitee - Explore 列表": { - "host": "gitee.com", - "url": "/\\/explore\\//", - "pager": { - "nextL": "a[rel='next']", - "pageE": ".items>.item", - "replaceE": ".pagination", - "scrollD": 2500 - } - }, - "Gitee - Issues 列表": { - "host": "gitee.com", - "url": "return (fun.indexOF(/\\/issues$/))", - "pager": { - "nextL": "a[rel='next']", - "pageE": ".issue-wrapper", - "replaceE": ".pagination", - "scrollD": 2500 - } - }, - "Gitee - Releases 列表": { - "host": "gitee.com", - "url": "/\\/releases/", - "pager": { - "nextL": "a[rel='next']", - "pageE": ".release-tag-item", - "replaceE": ".pagination", - "scrollD": 2500 - } - }, - "Gitee - Tags 列表": { + "Gitee - Explore/Issues/Pulls/Releases/Tags": { "host": "gitee.com", - "url": "/\\/tags/", + "url": "return (fun.indexOF('/explore/') || fun.indexOF(/\\/(issues|pulls|releases|tags)$/))", "pager": { "nextL": "a[rel='next']", - "pageE": ".tag-item", + "pageE": ".items>.item, .issue-wrapper, .pull-request__wrapper, .release-tag-item, .tag-item", "replaceE": ".pagination", "scrollD": 2500 } }, - "Gitee - 搜索页": { + "Gitee - Search": { "host": "search.gitee.com", - "url": "return (location.search)", + "url": "return (location.search != '')", "pager": { "nextL": "li.next:not(.disabled)>a", "pageE": "#hits-list>div", - "replaceE": "ul.pagination", + "replaceE": ".pagination", "scrollD": 1000 } }, - "Github - 首页": { + "Github": { "host": ["github.com","hub.fastgit.xyz"], "url": "fun.isUrlC(); return (fun.lp() == '/')", "pager": { @@ -4059,183 +3889,52 @@ "scrollD": 2000 } }, - "Github - 用户 Star 列表": { - "host": ["github.com","hub.fastgit.xyz"], - "url": "/tab=stars/", - "pager": { - "nextL": "//div[@class='paginate-container']/div/*[last()]", - "pageE": "#js-pjax-container .position-relative div[class^='col-lg-']>div:not(.position-relative):not(.paginate-container)", - "insertP": [".paginate-container",1], - "replaceE": ".paginate-container", - "scrollD": 3000 - } - }, - "Github - 用户 Repositories 列表": { + "Github - Star/Repositories/Commits": { "host": ["github.com","hub.fastgit.xyz"], - "url": "/tab=repositories/", + "url": "/(tab=(stars|repositories)|\\/commits)/", "pager": { "nextL": "//div[@class='paginate-container']/div/*[last()]", - "pageE": "#user-repositories-list>ul>li", + "pageE": "#js-pjax-container .position-relative div[class^='col-lg-']>div:not(.position-relative):not(.paginate-container), #user-repositories-list>ul>li, .js-navigation-container>div", "replaceE": ".paginate-container", - "scrollD": 3000 - } - }, - "Github - Issues 列表 / PR 列表": { - "host": ["github.com","hub.fastgit.xyz"], - "url": "return (fun.indexOF(/\\/(issues|pulls)$/))", - "pager": { - "nextL": "a.next_page", - "pageE": ".js-navigation-container.js-active-navigation-container>div[id^='issue_']", - "replaceE": ".pagination", - "scrollD": 3000 - } - }, - "Github - Discussions 列表": { - "host": ["github.com","hub.fastgit.xyz"], - "url": "return (fun.indexOF(/\\/discussions$/) || fun.indexOF('/discussions/categories'))", - "pager": { - "nextL": "a.next_page", - "pageE": "ul[aria-labelledby='discussions-list']>li", - "replaceE": ".pagination", - "scrollD": 3000 + "scrollD": 2500 } }, - "Github - Releases 列表": { + "Github - Issues/Pull/Discussions/Releases": { "host": ["github.com","hub.fastgit.xyz"], - "url": "return (fun.indexOF(/\\/releases$/))", + "url": "return (fun.indexOF(/\\/(issues|pulls|discussions|releases)$/) || fun.indexOF('/discussions/categories'))", "pager": { "nextL": "a.next_page", - "pageE": "#repo-content-pjax-container>div[data-pjax]>div:not(.paginate-container)", + "pageE": "div[id^='issue_'], ul[aria-labelledby='discussions-list']>li, #repo-content-pjax-container>div>div[data-pjax]>div:not(.paginate-container)", "replaceE": ".pagination", - "scrollD": 3000 + "scrollD": 2500 } }, - "Github - Tags 列表": { + "Github - Tags": { "host": ["github.com","hub.fastgit.xyz"], "url": "return (fun.indexOF(/\\/tags$/))", "pager": { "nextL": "//div[@class='pagination']/*[last()]", "pageE": ".Box-body>div.Box-row", "replaceE": ".pagination", - "scrollD": 3000 - } - }, - "Github - Commits 列表": { - "host": ["github.com","hub.fastgit.xyz"], - "url": "/\\/commits/", - "pager": { - "nextL": "//div[@class='paginate-container']/div/*[last()]", - "pageE": "div.js-navigation-container>div", - "replaceE": ".paginate-container", - "scrollD": 3000 + "scrollD": 2500 } }, - "Github - Notifications 列表": { + "Github - Notifications": { "host": ["github.com","hub.fastgit.xyz"], "url": "/\\/notifications/", "pager": { "nextL": "nav.paginate-container>a[aria-label='Next']", "pageE": "li.notifications-list-item", "replaceE": "nav.paginate-container, .js-notifications-list-paginator-counts", - "scrollD": 3000 - } - }, - "Github - Search 列表 - Repositories": { - "host": ["github.com","hub.fastgit.xyz"], - "url": "return (fun.lp() == '/search' && location.search && (!fun.indexOF('type=', 's') || fun.indexOF('type=repositories', 's')))", - "pager": { - "nextL": "a.next_page", - "pageE": "ul.repo-list>li", - "replaceE": ".pagination", - "scrollD": 3000 - } - }, - "Github - Search 列表 - Code": { - "host": ["github.com","hub.fastgit.xyz"], - "url": "return (fun.indexOF('/search') && location.search && (!fun.indexOF('type=', 's') || fun.indexOF('type=code', 's')))", - "pager": { - "nextL": "a.next_page", - "pageE": ".code-list-item", - "replaceE": ".pagination", - "scrollD": 3000 - } - }, - "Github - Search 列表 - Commit": { - "host": ["github.com","hub.fastgit.xyz"], - "url": "return (fun.indexOF('/search') && location.search && fun.indexOF('type=commits', 's'))", - "pager": { - "nextL": "a.next_page", - "pageE": "#commit_search_results>div", - "replaceE": ".pagination", - "scrollD": 3000 - } - }, - "Github - Search 列表 - Issues": { - "host": ["github.com","hub.fastgit.xyz"], - "url": "return (fun.indexOF('/search') && location.search && fun.indexOF('type=issues', 's'))", - "pager": { - "nextL": "a.next_page", - "pageE": ".issue-list-item", - "replaceE": ".pagination", - "scrollD": 3000 - } - }, - "Github - Search 列表 - Discussions": { - "host": ["github.com","hub.fastgit.xyz"], - "url": "return (fun.indexOF('/search') && location.search && fun.indexOF('type=discussions', 's'))", - "pager": { - "nextL": "a.next_page", - "pageE": ".discussion-list-item", - "replaceE": ".pagination", - "scrollD": 3000 - } - }, - "Github - Search 列表 - Package": { - "host": ["github.com","hub.fastgit.xyz"], - "url": "return (fun.indexOF('/search') && location.search && fun.indexOF('type=registrypackages', 's'))", - "pager": { - "nextL": "a.next_page", - "pageE": "#package_search_results>div", - "replaceE": ".pagination", - "scrollD": 3000 - } - }, - "Github - Search 列表 - Marketplace": { - "host": ["github.com","hub.fastgit.xyz"], - "url": "return (fun.indexOF('/search') && location.search && fun.indexOF('type=marketplace', 's'))", - "pager": { - "nextL": "a.next_page", - "pageE": "#marketplace_search_results>div:first-child>div", - "replaceE": ".pagination", - "scrollD": 3000 - } - }, - "Github - Search 列表 - Topics": { - "host": ["github.com","hub.fastgit.xyz"], - "url": "return (fun.indexOF('/search') && location.search && fun.indexOF('type=topics', 's'))", - "pager": { - "nextL": "a.next_page", - "pageE": ".topic-list-item", - "replaceE": ".pagination", - "scrollD": 3000 - } - }, - "Github - Search 列表 - wiki": { - "host": ["github.com","hub.fastgit.xyz"], - "url": "return (fun.indexOF('/search') && location.search && fun.indexOF('type=wikis', 's'))", - "pager": { - "nextL": "a.next_page", - "pageE": "#wiki_search_results>div:first-child>div", - "replaceE": ".pagination", - "scrollD": 3000 + "scrollD": 2500 } }, - "Github - Search 列表 - user": { + "Github - Search": { "host": ["github.com","hub.fastgit.xyz"], - "url": "return (fun.indexOF('/search') && location.search && fun.indexOF('type=users', 's'))", + "url": "/\\/search\\?/", "pager": { "nextL": "a.next_page", - "pageE": "#user_search_results>div:first-child>div", + "pageE": ".repo-list>li, .code-list-item, #commit_search_results>div, .issue-list-item, .discussion-list-item, #package_search_results>div, #marketplace_search_results>div:first-child>div, .topic-list-item, #wiki_search_results>div:first-child>div, #user_search_results>div:first-child>div", "replaceE": ".pagination", "scrollD": 3000 } From 09d5a742332f623312756b54afb485fe458aad2f Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Thu, 7 Apr 2022 09:18:27 +0800 Subject: [PATCH 0010/1163] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E7=BB=85?= =?UTF-8?q?=E5=A3=AB=E4=BB=93=E5=BA=93]=20=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index 5f7096ff5..747f78e6b 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -5050,7 +5050,7 @@ }, "绅士仓库": { "host": "/^cangku\\./", - "url": "if (document.title.indexOf('绅士') == -1){return}; fun.isUrlC(); setTimeout(`document.querySelectorAll('#header, .simple-navbar').forEach(function (o) {o.innerHTML = o.innerHTML; console.log(o);});`, 1500); return (fun.lp() == '/' || fun.indexOF('/category/') || fun.indexOF('/user/'))", + "url": "if (document.title.indexOf('绅士') == -1){return}; fun.isUrlC(); setTimeout(`let a='.mr-auto,.navbar-brand.active,.simple-navbar';if(location.pathname.indexOf('/search/')!=-1){a='.mr-auto,.navbar-brand.active'};document.querySelectorAll(a).forEach(function (o) {o.innerHTML = o.innerHTML;})`, 1500); return (fun.lp() == '/' || fun.indexOF('/category/') || fun.indexOF('/user/'))", "history": true, "pager": { "type": 6, From 19fa99352c8b62021ad363c09852adb784c19fc1 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Thu, 7 Apr 2022 10:39:08 +0800 Subject: [PATCH 0011/1163] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=A4=96=E7=BD=AE=E7=BF=BB=E9=A1=B5=E8=A7=84=E5=88=99?= =?UTF-8?q?]=20=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 3e0236583..36494ea8d 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3,7 +3,7 @@ // @name:zh-CN 自动无缝翻页 // @name:zh-TW 自動無縫翻頁 // @name:en AutoPager -// @version 5.6.5 +// @version 5.6.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...) 等網站~ @@ -1544,7 +1544,13 @@ function: { 'https://cdn.staticaly.com/gh/XIU2/UserScript/master/other/Autopage/rules.json', //'https://cdn.jsdelivr.net/gh/XIU2/UserScript/other/Autopage/rules.json', 'https://gcore.jsdelivr.net/gh/XIU2/UserScript/other/Autopage/rules.json', - 'https://fastly.jsdelivr.net/gh/XIU2/UserScript/other/Autopage/rules.json'] + 'https://fastly.jsdelivr.net/gh/XIU2/UserScript/other/Autopage/rules.json'], + urlArr2 = [//'https://userscript.gh2233.ml/other/Autopage/rules.json', + 'https://userscript.xiu2.xyz/other/Autopage/rules.json', + 'https://raw.iqiq.io/XIU2/UserScript/master/other/Autopage/rules.json', + 'https://hk1.monika.love/XIU2/UserScript/master/other/Autopage/rules.json', + 'https://raw.fastgit.org/XIU2/UserScript/master/other/Autopage/rules.json', + 'https://ghproxy.fsofso.com/https://github.com/XIU2/UserScript/blob/master/other/Autopage/rules.json'] if (update) { // 手动更新(或安装后首次更新) GM_notification({text: '🔄 更新外置翻页规则中,请勿操作网页...', timeout: 3000}); @@ -1553,9 +1559,8 @@ function: { getRulesUrl_(); } - function getRulesUrl_(n = false) { - let url; - if (n) {url = 'https://userscript.xiu2.xyz/other/Autopage/rules.json'} else {url = urlArr[Math.floor(Math.random()*urlArr.length)];} + function getRulesUrl_(n = false, url) { + if (n) {url = urlArr2[Math.floor(Math.random()*urlArr2.length)];} else {url = urlArr[Math.floor(Math.random()*urlArr.length)];} GM_xmlhttpRequest({ url: url, method: 'GET', @@ -1588,11 +1593,11 @@ function: { }, onerror: function (response) { console.log('URL:' + url, response) - GM_notification({text: '❌ 错误!更新失败,请联系作者解决...', timeout: 5000}); + GM_notification({text: '❌ 错误!更新失败,请几分钟后重试...', timeout: 5000}); }, ontimeout: function (response) { console.log('URL:' + url, response) - GM_notification({text: '❌ 超时!更新失败,请联系作者解决...', timeout: 5000}); + GM_notification({text: '❌ 超时!更新失败,请几分钟后重试...', timeout: 5000}); } }) } @@ -1616,7 +1621,9 @@ function: { // 左键双击网页空白处暂停翻页 pausePageEvent(); // 强制新标签页打开链接 - if (curSite.blank != undefined || curSite.forceTarget != undefined) forceTarget(); + if (curSite.blank != undefined) forceTarget(); + // 初始化事件 + //if (curSite.initE != undefined) initEvent(); // 对于使用 pjax 技术的网站,需要监听 URL 变化来重新判断翻页规则 if (urlC) { @@ -1635,6 +1642,8 @@ function: { nowLocation = location.href; curSite = {SiteTypeID: 0}; pageNum.now = 1; // 重置规则+页码 registerMenuCommand(); // 重新判断规则 //console.log(curSite); + if (curSite.blank != undefined) forceTarget(); // 强制新标签页打开链接 + //if (curSite.initE != undefined) initEvent(); // 初始化事件 if (curSite.style) {insStyle(curSite.style)} // 插入 Style CSS 样式 // 帖子内自动翻页判断 if (!GM_getValue('menu_thread')) { @@ -3308,6 +3317,11 @@ function: { }); } } + // 初始化事件 + /*function initEvent() { + if (curSite.initE[1] == undefined) curSite.initE[1] = 500; + setTimeout(function(){getAllCSS(curSite.initE[0]).forEach(function (o) {o.innerHTML = o.innerHTML;});}, curSite.initE[1]) + }*/ // 判断元素是否隐藏(隐藏返回 true) function isHidden(el){ return (el.offsetParent === null); From 50ec19d0e9b40f650594c230ecc0e9be48ad8a87 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Thu, 7 Apr 2022 17:11:23 +0800 Subject: [PATCH 0012/1163] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E8=B1=86?= =?UTF-8?q?=E7=93=A3=20-=20=E5=B9=BF=E6=92=AD]=E3=80=81[=E7=AD=94=E9=A2=98?= =?UTF-8?q?=E6=97=A0=E5=BF=A7]=E3=80=81[FC2=20=E7=94=B5=E5=AD=90=E5=B8=82?= =?UTF-8?q?=E5=9C=BA]=20=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index 747f78e6b..d4ee6eea0 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -352,12 +352,23 @@ "replaceE": ".paginator" } }, - "豆瓣 - 片单/标签/小组讨论精选": { + "豆瓣 - 广播": { "host": "www.douban.com", - "url": "/^\\/((doulist|tag)\\/|group\\/explore)/", + "url": "return (fun.indexOF(/^\\/people\\/\\d+\\/status/) && (!fun.indexOF('tab=','s') || fun.indexOF('tab=comment','s')))", + "pager": { + "type": 6, + "nextL": "a.next", + "pageE": ".comment-list-wrapper, .list", + "replaceE": ".paginator", + "loadTime": 1000 + } + }, + "豆瓣 - 片单/标签/小组讨论精选/广播": { + "host": "www.douban.com", + "url": "return (fun.indexOF(/^\\/(doulist|tag)\\//) || fun.lp() == '/group/explore' || (fun.indexOF(/^\\/people\\/\\d+\\/status/) && fun.indexOF('tab=','s') && !fun.indexOF('tab=collect','s')))", "pager": { "nextL": "link[rel='next']", - "pageE": ".doulist-item, .article>.mod:not([id='doulist-info']), .channel-item", + "pageE": ".doulist-item, .article>.mod:not([id='doulist-info']), .channel-item, .list", "replaceE": ".paginator" } }, @@ -4409,6 +4420,16 @@ "scrollD": 1800 } }, + "答题无忧": { + "host": "www.dati56.com", + "url": "/^\\/post\\//", + "pager": { + "nextL": "//a[@class='cur']/parent::li/following-sibling::li/a", + "pageE": ".content>p", + "replaceE": ".ipage", + "scrollD": 3000 + } + }, "立创开源硬件平台": { "host": "www.oshwhub.com", "url": "/^\\/explore/", @@ -4879,6 +4900,17 @@ "scrollD": 2500 } }, + "FC2 电子市场": { + "host": "adult.contents.fc2.com", + "url": "/^\\/search\\//", + "blank": 3, + "pager": { + "nextL": "span.items+a[data-link-name='pager']", + "pageE": ".c-cntCard-110-f", + "replaceE": ".c-pager-101", + "scrollD": 2000 + } + }, "hanime1": { "host": "hanime1.me", "url": "return (fun.lp() == '/search')", From 1558b3bea5e0d45ec7ed20afaad87be5c9f0c5a0 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Thu, 7 Apr 2022 18:27:49 +0800 Subject: [PATCH 0013/1163] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E7=BF=BB=E9=A1=B5=E8=A7=84=E5=88=99]=20?= =?UTF-8?q?=E4=B8=AD=E6=98=BE=E7=A4=BA=E8=84=9A=E6=9C=AC=E7=9B=AE=E5=89=8D?= =?UTF-8?q?=E6=89=80=E6=9C=89=E8=A7=84=E5=88=99(=E6=96=B9=E4=BE=BF?= =?UTF-8?q?=E6=9F=A5=E9=98=85);=20=E4=BC=98=E5=8C=96=20=E8=A7=84=E5=88=99?= =?UTF-8?q?=E5=90=88=E5=B9=B6=E6=96=B9=E5=BC=8F(=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E8=A7=84=E5=88=99=E5=B0=86=E8=A6=86=E7=9B=96=E5=90=8C?= =?UTF-8?q?=E5=90=8D=E7=9A=84=E5=A4=96=E7=BD=AE=E8=A7=84=E5=88=99)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 36494ea8d..a0635bc42 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3,7 +3,7 @@ // @name:zh-CN 自动无缝翻页 // @name:zh-TW 自動無縫翻頁 // @name:en AutoPager -// @version 5.6.6 +// @version 5.6.7 // @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...) 等網站~ @@ -1520,7 +1520,15 @@ function: { } // 国家自然科学基金 }; // 合并 自定义规则、外置规则、内置规则 - DBSite = Object.assign(GM_getValue('menu_customRules', {}), GM_getValue('menu_rules', {}), DBSite) + if (Object.keys(GM_getValue('menu_customRules', {})).length === 0) { + DBSite = Object.assign(GM_getValue('menu_customRules', {}), GM_getValue('menu_rules', {}), DBSite) + } else { // 自定义规则 覆盖 同名的外置规则 + let a = GM_getValue('menu_customRules', {}), a1 = Object.keys(a), + b = GM_getValue('menu_rules', {}), b1 = Object.keys(b) + for (let i = 0; i < a1.length; i++) {if(b1.indexOf(a1[i]) != -1) {delete b[a1[i]]};} + DBSite = Object.assign(a, b, DBSite) + } + // 生成 SiteTypeID setSiteTypeID(); //console.log(DBSite) @@ -2858,21 +2866,14 @@ function: { // 加载完成后才继续 iframe.onload = function() { - //iframe.contentWindow.scrollTo(0, 999999); // 滚动到底部,以触发网页的滚动条相关加载事件 - //iframe.contentWindow.scrollTo({top: 9999999, behavior: 'smooth'}); - if (!curSite.pager.loadTime) curSite.pager.loadTime = 100; // 默认 100ms - //console.log(curSite.pager.loadTime, curSite.pager.loadTime/30) - //console.time('sort'); + if (!curSite.pager.loadTime) curSite.pager.loadTime = 300; // 默认 300ms let time1 = 0 ,time2 = setInterval(function(){ let scrollHeight = (iframe.contentWindow.document.documentElement.scrollHeight || iframe.contentWindow.document.body.scrollHeight)/10 iframe.contentWindow.scrollTo(0, 999999); iframe.contentWindow.scrollTo(0, scrollHeight*time1); - //console.log(time1, iframe.contentWindow.document.documentElement.scrollHeight || iframe.contentWindow.document.body.scrollHeight) if (++time1 == 10) { - //console.timeEnd('sort'); clearInterval(time2); processElems(iframe.contentWindow.document); // 插入/替换元素等 - //console.log(iframe.contentWindow.document.documentElement.scrollHeight || iframe.contentWindow.document.body.scrollHeight) pausePage = true; // 恢复翻页 } }, curSite.pager.loadTime/10) @@ -3415,8 +3416,7 @@ function: { if (customRules == '{}') customRules = '{\n\t\n}'; // 引导用户插入位置 let _html = `

# 自定义翻页规则(优先级最高,但前提是 "规则名" 不能重复)-【将规则插入默认的 { } 中间】

-
-「 点击展开 查看示例 」(为了避免需要的时候还要找,我干脆把常用规则都一股脑塞进去了) +
「 点击展开 查看规则示例 」(为了避免需要的时候还要找,我干脆把常用规则都一股脑塞进去了)
  • 翻页规则为 JSON 格式,因此大家需要多少了解一点 JSON 的基本格式(主要就是逗号、转义、双引号等)。
  • 具体的翻页规则说明、示例,为了方便更新及补充,我都写到 Github 里面了。
  • @@ -3435,7 +3435,7 @@ function: { "nextL": "xxxx", "pageE": "xxxx", "replaceE": "xxxx", - "scrollD": 1000 + "scrollD": 1500 } }, "bbb": { @@ -3477,8 +3477,11 @@ function: { } } } - -
+
+
「 点击展开 查看所有规则 」(可 Ctrl+F 搜索规则名、域名等信息来寻找,规则顺序为:自定义、外置、内置) +
+${JSON.stringify(DBSite, null, '\t')}
+
From 58f5610d73a8e9d9dbf9ae85521fc710454ec113 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Thu, 7 Apr 2022 20:00:05 +0800 Subject: [PATCH 0014/1163] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E8=B1=86?= =?UTF-8?q?=E7=93=A3=20-=20=E5=B9=BF=E6=92=AD]=20=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index d4ee6eea0..207f2922b 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -354,10 +354,10 @@ }, "豆瓣 - 广播": { "host": "www.douban.com", - "url": "return (fun.indexOF(/^\\/people\\/\\d+\\/status/) && (!fun.indexOF('tab=','s') || fun.indexOF('tab=comment','s')))", + "url": "return (fun.indexOF(/^\\/people\\/.+\\/status/) && (!fun.indexOF('tab=','s') || fun.indexOF('tab=comment','s')))", "pager": { "type": 6, - "nextL": "a.next", + "nextL": "js; let a=fun.getCSS('a.next');if(a && a.href){return a.href.replace('#comments','')}", "pageE": ".comment-list-wrapper, .list", "replaceE": ".paginator", "loadTime": 1000 @@ -365,7 +365,7 @@ }, "豆瓣 - 片单/标签/小组讨论精选/广播": { "host": "www.douban.com", - "url": "return (fun.indexOF(/^\\/(doulist|tag)\\//) || fun.lp() == '/group/explore' || (fun.indexOF(/^\\/people\\/\\d+\\/status/) && fun.indexOF('tab=','s') && !fun.indexOF('tab=collect','s')))", + "url": "return (fun.indexOF(/^\\/(doulist|tag)\\//) || fun.lp() == '/group/explore' || (fun.indexOF(/^\\/people\\/.+\\/status/) && fun.indexOF('tab=','s') && !fun.indexOF('tab=collect','s')))", "pager": { "nextL": "link[rel='next']", "pageE": ".doulist-item, .article>.mod:not([id='doulist-info']), .channel-item, .list", From ff2ee9a2145eb02b9771276e97b765d2be6e2ced Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Thu, 7 Apr 2022 20:11:59 +0800 Subject: [PATCH 0015/1163] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E8=B1=86?= =?UTF-8?q?=E7=93=A3=20-=20=E5=B9=BF=E6=92=AD]=20=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index 207f2922b..9600e37b7 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -357,7 +357,7 @@ "url": "return (fun.indexOF(/^\\/people\\/.+\\/status/) && (!fun.indexOF('tab=','s') || fun.indexOF('tab=comment','s')))", "pager": { "type": 6, - "nextL": "js; let a=fun.getCSS('a.next');if(a && a.href){return a.href.replace('#comments','')}", + "nextL": "js; let a=fun.getCSS('a.next');if(a && a.href){return a.href.replace(/#.+$/,'')}", "pageE": ".comment-list-wrapper, .list", "replaceE": ".paginator", "loadTime": 1000 From 277c072d9692baf041efabf69fba39ed88c08e64 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Fri, 8 Apr 2022 09:29:11 +0800 Subject: [PATCH 0016/1163] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E8=B1=86?= =?UTF-8?q?=E7=93=A3=20-=20=E6=97=A5=E8=AE=B0]=E3=80=81[HDSay=20=E9=AB=98?= =?UTF-8?q?=E6=B8=85=E4=B9=90=E5=9B=AD]=20=E6=94=AF=E6=8C=81;=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=20[E-Hentai-g]=20=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 233 ++++++++++++++++++++------------------ 1 file changed, 120 insertions(+), 113 deletions(-) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index 9600e37b7..79829ec08 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -352,20 +352,20 @@ "replaceE": ".paginator" } }, - "豆瓣 - 广播": { + "豆瓣 - 广播/日记": { "host": "www.douban.com", - "url": "return (fun.indexOF(/^\\/people\\/.+\\/status/) && (!fun.indexOF('tab=','s') || fun.indexOF('tab=comment','s')))", + "url": "return ((fun.indexOF(/^\\/people\\/.+\\/status/) && (!fun.indexOF('tab=','s') || fun.indexOF('tab=comment','s'))) || (fun.indexOF(/^\\/note\\/\\d+\\//) && !fun.indexOF('type=','s')))", "pager": { "type": 6, "nextL": "js; let a=fun.getCSS('a.next');if(a && a.href){return a.href.replace(/#.+$/,'')}", - "pageE": ".comment-list-wrapper, .list", + "pageE": ".comment-list-wrapper", "replaceE": ".paginator", "loadTime": 1000 } }, - "豆瓣 - 片单/标签/小组讨论精选/广播": { + "豆瓣 - 片单/标签/小组讨论精选/广播/日记": { "host": "www.douban.com", - "url": "return (fun.indexOF(/^\\/(doulist|tag)\\//) || fun.lp() == '/group/explore' || (fun.indexOF(/^\\/people\\/.+\\/status/) && fun.indexOF('tab=','s') && !fun.indexOF('tab=collect','s')))", + "url": "return (fun.indexOF(/^\\/(doulist|tag)\\//) || fun.lp() == '/group/explore' || ((fun.indexOF(/^\\/people\\/.+\\/status/) && fun.indexOF('tab=','s') && !fun.indexOF('tab=collect','s'))) || (fun.indexOF(/^\\/note\\/\\d+\\//) && fun.indexOF('type=','s')))", "pager": { "nextL": "link[rel='next']", "pageE": ".doulist-item, .article>.mod:not([id='doulist-info']), .channel-item, .list", @@ -1010,6 +1010,77 @@ "replaceE": ".Pager" } }, + "CADTutor - 列表页": { + "host": "www.cadtutor.net", + "url": "/\\/forum\\/forum\\//", + "pager": { + "nextL": "a[rel='next']", + "pageE": "ol.ipsDataList>li:not([data-rowid])~li", + "replaceE": "ul.ipsPagination", + "scrollD": 2000 + } + }, + "CADTutor - 帖子内": { + "host": "www.cadtutor.net", + "url": "/\\/forum\\/topic\\//", + "thread": true, + "pager": { + "nextL": "a[rel='next']", + "pageE": "#elPostFeed>form>*:not(input):not(.after-first-post)", + "replaceE": "ul.ipsPagination", + "scrollD": 2000 + } + }, + "CADTutor - 搜索页": { + "host": "www.cadtutor.net", + "url": "/\\/forum\\/search\\//", + "pager": { + "nextL": "a[rel='next']", + "pageE": "ol.ipsStream>li", + "replaceE": "ul.ipsPagination", + "scrollD": 2000 + } + }, + "TheSwamp - 列表页": { + "host": "www.theswamp.org", + "url": "/board=/", + "pager": { + "nextL": ".pagelinks>strong+a", + "pageE": "#messageindex tbody>tr:not([class])", + "replaceE": ".pagelinks", + "scrollD": 2000 + } + }, + "TheSwamp - 帖子内": { + "host": "www.theswamp.org", + "url": "/topic=/", + "thread": true, + "pager": { + "nextL": ".pagelinks>strong+a", + "pageE": "#forumposts form>*", + "replaceE": ".pagelinks", + "scrollD": 2000 + } + }, + "Ventoy 论坛": { + "host": "forums.ventoy.net", + "url": "/^\\/(forumdisplay|search)\\.php/", + "pager": { + "nextL": ".pagination_next", + "pageE": ".tborder>tbody>tr.inline_row", + "replaceE": ".pagination" + } + }, + "Ventoy 论坛 - 帖子内": { + "host": "forums.ventoy.net", + "url": "/^\\/showthread\\.php/", + "thread": true, + "pager": { + "nextL": ".pagination:not(#breadcrumb_multipage_popup) .pagination_next", + "pageE": "#posts>*", + "replaceE": ".pagination:not(#breadcrumb_multipage_popup)" + } + }, "Pixiv - 分类页": { "host": "www.pixiv.net", "url": "fun.isUrlC(); if (fun.isMobile()) {return false}; if (fun.lp() == '/') {fun.blank();} else if (fun.indexOF('/tags/')) {return true;} else if (fun.indexOF('/artworks/')) {setTimeout(function(){fun.getXpath('//button[contains(string(), \"查看全部\") or contains(string(), \"See all\") or contains(string(), \"すべて見る\") or contains(string(), \"모두 보기\")]').click();}, 3000)}", @@ -2400,6 +2471,16 @@ "scrollD": 2000 } }, + "HDSay 高清乐园": { + "host": "www.hdsay.net", + "url": "/^\\/forum\\/plate/", + "blank": 3, + "pager": { + "nextL": "a.current+a.item", + "pageE": "//tr[@class='row-split'][2]/following-sibling::tr", + "replaceE": ".hpaging" + } + }, "A4k 字幕网": { "host": "www.a4k.net", "url": "return (!fun.indexOF('/subtitle/'))", @@ -4272,14 +4353,6 @@ "scrollD": 1000 } }, - "古诗文网": { - "host": ["www.gushiwen.cn","so.gushiwen.cn","m.gushiwen.cn"], - "pager": { - "nextL": "a.amore", - "pageE": ".left .sons:not([id]), .sonspic", - "replaceE": ".pagesright" - } - }, "彼岸图网": { "host": "pic.netbian.com", "style": "li.nextpage {display: none !important;} .alist>ul {height: auto !important;} .alist>ul>li {position: static !important; float: left !important; height: 550px !important;}", @@ -4381,6 +4454,27 @@ "scrollD": 1800 } }, + "立创开源硬件平台": { + "host": "www.oshwhub.com", + "url": "/^\\/explore/", + "pager": { + "nextL": "a.current+a", + "pageE": ".each-project", + "replaceE": ".page", + "scriptT": 0, + "scrollD": 1200 + } + }, + "资本市场电子化信息披露平台": { + "host": "eid.csrc.gov.cn", + "url": "/\\/\\d+\\/index/", + "pager": { + "nextL": "js; if (fun.getCSS('li.on+li:not(.click)>a') == null) {return}; if (fun.indexOF('_f.html')) {fun.getCSS('#channelFilterForm').action = `index_${fun.getCSS('li.on+li:not(.click)>a').textContent}_f.html`; return fun.getNextF('#channelFilterForm');} else {return fun.getCSS('img[src$=\"location.png\"]~a:last-of-type').href.replace('.html',`_${fun.getCSS('li.on+li:not(.click)>a').textContent}.html`);}", + "pageE": "table>tbody>tr:not(:first-of-type)", + "replaceE": "ul.g-ul", + "scrollD": 1000 + } + }, "二手车之家": { "host": "www.che168.com", "url": "return (fun.lp() != '/' && !fun.indexOF('/dealer/'))", @@ -4410,6 +4504,14 @@ "scrollD": 2000 } }, + "古诗文网": { + "host": ["www.gushiwen.cn","so.gushiwen.cn","m.gushiwen.cn"], + "pager": { + "nextL": "a.amore", + "pageE": ".left .sons:not([id]), .sonspic", + "replaceE": ".pagesright" + } + }, "文档库": { "host": "www.wendangku.net", "url": "/\\/doc\\//", @@ -4430,17 +4532,6 @@ "scrollD": 3000 } }, - "立创开源硬件平台": { - "host": "www.oshwhub.com", - "url": "/^\\/explore/", - "pager": { - "nextL": "a.current+a", - "pageE": ".each-project", - "replaceE": ".page", - "scriptT": 0, - "scrollD": 1200 - } - }, "如意了教育 - 学校": { "host": "www.ruyile.com", "url": "return (fun.lp() == '/xuexiao/')", @@ -4473,16 +4564,6 @@ "scrollD": 1000 } }, - "资本市场电子化信息披露平台": { - "host": "eid.csrc.gov.cn", - "url": "/\\/\\d+\\/index/", - "pager": { - "nextL": "js; if (fun.getCSS('li.on+li:not(.click)>a') == null) {return}; if (fun.indexOF('_f.html')) {fun.getCSS('#channelFilterForm').action = `index_${fun.getCSS('li.on+li:not(.click)>a').textContent}_f.html`; return fun.getNextF('#channelFilterForm');} else {return fun.getCSS('img[src$=\"location.png\"]~a:last-of-type').href.replace('.html',`_${fun.getCSS('li.on+li:not(.click)>a').textContent}.html`);}", - "pageE": "table>tbody>tr:not(:first-of-type)", - "replaceE": "ul.g-ul", - "scrollD": 1000 - } - }, "美团技术团队": { "host": "tech.meituan.com", "url": "/^\\/($|page|tags)/", @@ -4511,77 +4592,6 @@ "replaceE": ".pagination" } }, - "CADTutor - 列表页": { - "host": "www.cadtutor.net", - "url": "/\\/forum\\/forum\\//", - "pager": { - "nextL": "a[rel='next']", - "pageE": "ol.ipsDataList>li:not([data-rowid])~li", - "replaceE": "ul.ipsPagination", - "scrollD": 2000 - } - }, - "CADTutor - 帖子内": { - "host": "www.cadtutor.net", - "url": "/\\/forum\\/topic\\//", - "thread": true, - "pager": { - "nextL": "a[rel='next']", - "pageE": "#elPostFeed>form>*:not(input):not(.after-first-post)", - "replaceE": "ul.ipsPagination", - "scrollD": 2000 - } - }, - "CADTutor - 搜索页": { - "host": "www.cadtutor.net", - "url": "/\\/forum\\/search\\//", - "pager": { - "nextL": "a[rel='next']", - "pageE": "ol.ipsStream>li", - "replaceE": "ul.ipsPagination", - "scrollD": 2000 - } - }, - "TheSwamp - 列表页": { - "host": "www.theswamp.org", - "url": "/board=/", - "pager": { - "nextL": ".pagelinks>strong+a", - "pageE": "#messageindex tbody>tr:not([class])", - "replaceE": ".pagelinks", - "scrollD": 2000 - } - }, - "TheSwamp - 帖子内": { - "host": "www.theswamp.org", - "url": "/topic=/", - "thread": true, - "pager": { - "nextL": ".pagelinks>strong+a", - "pageE": "#forumposts form>*", - "replaceE": ".pagelinks", - "scrollD": 2000 - } - }, - "Ventoy 论坛": { - "host": "forums.ventoy.net", - "url": "/^\\/(forumdisplay|search)\\.php/", - "pager": { - "nextL": ".pagination_next", - "pageE": ".tborder>tbody>tr.inline_row", - "replaceE": ".pagination" - } - }, - "Ventoy 论坛 - 帖子内": { - "host": "forums.ventoy.net", - "url": "/^\\/showthread\\.php/", - "thread": true, - "pager": { - "nextL": ".pagination:not(#breadcrumb_multipage_popup) .pagination_next", - "pageE": "#posts>*", - "replaceE": ".pagination:not(#breadcrumb_multipage_popup)" - } - }, "学佛网": { "host": "www.xuefo.tw", "pager": { @@ -4954,6 +4964,7 @@ "host": ["e-hentai.org","exhentai.org"], "url": "/^\\/g\\//", "pager": { + "type": 3, "nextL": "//table[@class='ptt']//a[text()='>']", "pageE": "#gdt>div:not(.c)", "replaceE": ".ptt, .ptb" @@ -5038,8 +5049,7 @@ "type": 3, "nextL": "a.paginator_page[rel='next']", "pageE": "#detail_list", - "replaceE": ".paginator_area", - "scrollD": 1000 + "replaceE": ".paginator_area" } }, "Hentai Cosplays - 图片页": { @@ -5050,8 +5060,7 @@ "type": 3, "nextL": "id('paginator')//a[contains(text(), '>')]", "pageE": ".icon-overlay", - "replaceE": "#paginator", - "scrollD": 1000 + "replaceE": "#paginator" } }, "Hentai Cosplays - 手机版 - 分类页": { @@ -5062,8 +5071,7 @@ "type": 3, "nextL": "a.paginator_page[rel='next']", "pageE": "#page>#right_sidebar>#entry_list", - "replaceE": "#page>#page_nation", - "scrollD": 1000 + "replaceE": "#page>#page_nation" }, "function": { "bF": "return fun.src_bF(pageE, [0,'img[data-original]','data-original'])" @@ -5076,8 +5084,7 @@ "type": 3, "nextL": "a.nextpostslink", "pageE": "#center>#display_area_image>#image-list", - "replaceE": ".wp-pagenavi", - "scrollD": 1000 + "replaceE": ".wp-pagenavi" } }, "绅士仓库": { From 185b6aa402d7015f88bbea076cc150b55dab42c7 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Fri, 8 Apr 2022 10:44:23 +0800 Subject: [PATCH 0017/1163] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E6=91=84?= =?UTF-8?q?=E5=9B=BE=E7=BD=91]=20=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index 79829ec08..aacda7b95 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -1315,7 +1315,7 @@ "scrollD": 2000 }, "function": { - "bF": "return fun.src_bF(pageE, [0,'img[data-original]','data-original'])" + "bF": "pageE.forEach(function (one) {if (one.className === 'list' && one.dataset.w != undefined) {one.style.width = `${one.dataset.w}px`;}}); return fun.src_bF(pageE, [0,'img[data-original]','data-original'])" } }, "众图网": { From 8ddd62cc7ab73ce183b799416458902c2d8ad0a8 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Fri, 8 Apr 2022 13:33:22 +0800 Subject: [PATCH 0018/1163] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20[COCOMANGA=20?= =?UTF-8?q?=E6=BC=AB=E7=94=BB]=20=E8=A7=84=E5=88=99=E5=B9=B6=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E8=87=B3=E5=A4=96=E7=BD=AE=E7=BF=BB=E9=A1=B5=E8=A7=84?= =?UTF-8?q?=E5=88=99=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 89 +-------------------------------------- other/Autopage/rules.json | 26 ++++++++++++ 2 files changed, 27 insertions(+), 88 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index a0635bc42..134be5cbe 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3,7 +3,7 @@ // @name:zh-CN 自动无缝翻页 // @name:zh-TW 自動無縫翻頁 // @name:en AutoPager -// @version 5.6.7 +// @version 5.6.8 // @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...) 等網站~ @@ -1441,59 +1441,6 @@ function: { scrollD: 1000 } }, // Xmanhua 漫画 - 分类/搜索页 - cocomanga: { - host: 'www.cocomanga.com', - url: ()=> {if (indexOF('.html')) { - if (!(getCookie('mh_readmode') === '' || getCookie('mh_readmode') === '3')) { - document.cookie='mh_readmode=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/'; // 强制开启自带的无缝翻页功能 - location.reload(); // 刷新网页 - } - setTimeout(cocomanga_init, 500); - curSite = DBSite.cocomanga; - } else if (indexOF(/\/\d+\/$/)) { - setTimeout(function(){if (getCSS('a.website-display-all')) getCSS('a.website-display-all').click();}, 300) - } else if (lp == '/show') { - curSite = DBSite.cocomanga_list; - } else if (lp == '/search') { - curSite = DBSite.cocomanga_search; - }}, - style: '.mh_readend, .mh_footpager, .mh_readmode {display: none !important;} .mh_comicpic img {cursor: unset !important;} .mh_comicpic img {min-height: 150px;}', - pager: { - type: 4, - nextL: '//a[contains(@class, "read_page_link") and contains(string(), "下一章")][not(contains(@href, "javascript"))]', - insertP: ['#mangalist', 3], - insertE: cocomanga_insertE, - replaceE: '.mh_readtitle, .mh_headpager > a.mh_prevbook, .mh_readend', - interval: 1000, - scrollD: 2500 - } - }, // COCOMANGA 漫画 - cocomanga_list: { - blank: 1, - pager: { - nextL: ()=> getNextEP('.fed-page-info a.fed-btns-green+a[onclick]', 'page=', /page=\d+/), - pageE: 'ul.fed-list-info > li', - replaceE: '.fed-page-info', - scrollD: 1000 - }, - function: { - bF: src_bF, - bFp: [1, 'a[data-original]', 'data-original'] - } - }, // COCOMANGA 漫画 - 分类页 - cocomanga_search: { - blank: 1, - pager: { - nextL: ()=> getNextEP('.fed-page-info a.fed-btns-green+a[onclick]', 'page=', /page=\d+/), - pageE: 'dl.fed-deta-info', - replaceE: '.fed-page-info', - scrollD: 1000 - }, - function: { - bF: src_bF, - bFp: [1, 'a[data-original]', 'data-original'] - } - }, // COCOMANGA 漫画 - 搜索页 coolkeyan: { host: 'www.coolkeyan.com', url: ()=> {if (location.hash.indexOf('/project/') > -1) curSite = DBSite.coolkeyan;}, @@ -2545,40 +2492,6 @@ function: { } - // [COCOMANGA 漫画] 初始化(调整本话图片) - function cocomanga_init() { - let last = getCSS('.mh_comicpic:last-of-type'); - if (last && last.getAttribute('p')) { - getOne(curSite.pager.insertP[0]).innerHTML = ''; // 删除旧图片元素 - cocomanga_img(parseInt(last.getAttribute('p'))) // 插入新图片元素 - } - } - // [COCOMANGA 漫画] 生成图片元素并插入网页 - function cocomanga_img(totalImageCount) { - if (totalImageCount < 1) return - let _img = ''; - for (let i=1; i<=totalImageCount; i++) {_img += `
`;} - getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中 - } - // [COCOMANGA 漫画] 插入数据 - function cocomanga_insertE(pageE, type) { - if (pageE) { - // 插入