From 0635e5825f4e0dd0d65c3093fd715052a76c394c Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Mon, 11 Apr 2022 12:14:14 +0800 Subject: [PATCH 0001/1130] =?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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index bd09f29e5..16c5165f1 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3,7 +3,7 @@ // @name:zh-CN 自动无缝翻页 // @name:zh-TW 自動無縫翻頁 // @name:en AutoPager -// @version 5.7.0 +// @version 5.7.1 // @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...) 等網站~ @@ -91,7 +91,7 @@ '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', + 'https://ghproxy.fsofso.com/https://github.com/XIU2/UserScript/blob/master/other/Autopage/rules.json', 'https://raw-gh.gcdn.mirr.one/XIU2/UserScript/master/other/Autopage/rules.json', 'https://cdn.staticaly.com/gh/XIU2/UserScript/master/other/Autopage/rules.json', //'https://cdn.jsdelivr.net/gh/XIU2/UserScript/other/Autopage/rules.json', @@ -102,8 +102,8 @@ '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' + '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' ], menuId = [], webType = 0, curSite = {SiteTypeID: 0}, DBSite, DBSite2, SiteType, pausePage = true, pageNum = {now: 1, _now: 1}, urlC = false, nowLocation = '', lp = location.pathname; window.autoPage = {lp: ()=>location.pathname, indexOF: indexOF, isMobile: isMobile, isUrlC: isUrlC, blank: forceTarget, getAll: getAll, getOne: getOne, getAllXpath: getAllXpath, getXpath: getXpath, getAllCSS: getAllCSS, getCSS: getCSS, getNextE: getNextE, getNextEP: getNextEP, getNextSP: getNextSP, getNextEPN: getNextEPN, getNextUPN: getNextUPN, getNextUP: getNextUP, getNextF: getNextF, getSearch: getSearch, getCookie: getCookie, insStyle: insStyle, insScript: insScript, src_bF: src_bF, xs_bF: xs_bF} From d0603a3285d5c6ebc7d9ef4c0e90c4e93467ebf4 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Mon, 11 Apr 2022 12:51:53 +0800 Subject: [PATCH 0002/1130] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[HuangboAV]=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 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index efce13768..37bffe485 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -4861,6 +4861,19 @@ "bF": "return fun.src_bF(pageE, [0,'img[data-original]','data-original'])" } }, + "HuangboAV": { + "host": "huangboav.com", + "url": "return (fun.indexOF(/^\\/(category|tag)\\//) || fun.indexOF('s=','s'))", + "style": "img[data-src] {opacity: 1 !important;}", + "pager": { + "nextL": "//a[@class='current']/parent::li/following-sibling::li[1]/a", + "pageE": ".page-header~div:not(.pagination)", + "replaceE": ".pagination" + }, + "function": { + "bF": "return fun.src_bF(pageE, [0,'img[data-src]','data-src'])" + } + }, "SupJav": { "host": "supjav.com", "url": "return (fun.indexOF('/category/') || fun.indexOF('/tag/') || fun.indexOF('/popular') || fun.indexOF('s=','s'))", From 779c9a07e6ae493e7ffc30c40d6b6c6149dc66e8 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Mon, 11 Apr 2022 13:15:25 +0800 Subject: [PATCH 0003/1130] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E9=83=A8?= =?UTF-8?q?=E5=88=86=20=E8=87=AA=E5=B8=A6=E6=97=A0=E7=BC=9D=E7=BF=BB?= =?UTF-8?q?=E9=A1=B5=20=E7=BD=91=E7=AB=99]=20=E9=80=9A=E7=94=A8=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 16c5165f1..3edf0a582 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -256,7 +256,7 @@ } else if (getAllCSS('.load-more, .loadmore, #load-more, #loadmore, .show_more').length === 1) { console.info(`[自动无缝翻页] - 部分自带 自动无缝翻页 的网站 1`); return 8; - } else if (getAllXpath('//*[@onclick][text()="加载更多" or text()="查看更多"][not(@href) or @href="#" or starts-with(@href, "javascript")]').length === 1) { + } else if (getAllXpath('//*[text()="加载更多" or text()="查看更多"][not(@href) or @href="#" or starts-with(@href, "javascript")]').length === 1) { console.info(`[自动无缝翻页] - 部分自带 自动无缝翻页 的网站 2`); return 9; } else if (getCSS('link[href*="/wp-content/" i], script[src*="/wp-content/" i]')) { @@ -314,7 +314,7 @@ case 8: // < 部分自带 自动无缝翻页 的网站 1 > DBSite.loadmore.url('.load-more, .loadmore, #load-more, #loadmore, .show_more'); break; case 9: // < 部分自带 自动无缝翻页 的网站 2 > - DBSite.loadmore.url('//*[@onclick][text()="加载更多" or text()="查看更多"][not(@href) or @href="#" or starts-with(@href, "javascript")]'); break; + DBSite.loadmore.url('//*[text()="加载更多" or text()="查看更多"][not(@href) or @href="#" or starts-with(@href, "javascript")]'); break; case 100: // < 部分使用 WordPress 的网站 (a.next) > DBSite.wp_article.url('a.next, a.next-page'); break; case 101: // < 部分使用 WordPress 的网站 (a[rel="next"]) > From 0328314c64bec5ef4f4befc525f9c43ebdf3f46f Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Mon, 11 Apr 2022 16:20:55 +0800 Subject: [PATCH 0004/1130] =?UTF-8?q?=E8=A1=A5=E5=85=85=20[MacWK]=20?= =?UTF-8?q?=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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index 37bffe485..bf6bf84e2 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -3249,7 +3249,7 @@ } }, "MacWK": { - "host": "www.macwk.com", + "host": ["macwk.com","www.macwk.com"], "url": "fun.isUrlC(); return (fun.indexOF(/^\\/(soft|article)\\/.+\\/p\\d/))", "style": ".app-content-bottom {display: none !important;}", "history": true, From f355655d8cbc6e4431d16ef5e771453bb60671fd Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Mon, 11 Apr 2022 18:37:29 +0800 Subject: [PATCH 0005/1130] =?UTF-8?q?=E4=BC=98=E5=8C=96=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?=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 3edf0a582..92989494b 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3350,8 +3350,8 @@ function: { let customRules = JSON.stringify(GM_getValue('menu_customRules', {}), null, '\t'); if (customRules == '{}') customRules = '{\n\t\n}'; // 引导用户插入规则的位置 let _html = `
-

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

-
「 点击展开 查看规则示例 」(为了避免需要的时候还要找,我干脆把常用规则都一股脑塞进去了) +

# 自定义翻页规则(优先级最高,会覆盖同名的外置翻页规则)-【将规则插入默认的 { } 中间】

+
「 点击展开 查看规则示例 」(为了避免需要的时候还要找,我干脆把常用规则都一股脑塞进去了)
  • 翻页规则为 JSON 格式,因此大家需要多少了解一点 JSON 的基本格式(主要就是逗号、转义、双引号等)。
  • 具体的翻页规则说明、示例,为了方便更新及补充,我都写到 Github 里面了。
  • @@ -3413,7 +3413,7 @@ function: { } }
-
「 点击展开 查看所有规则 」(可 Ctrl+F 搜索 pageUrl 查看当前网页所用规则,内置规则因格式无法列出) +
「 点击展开 查看所有规则 」(可按 Ctrl+F 搜索 pageUrl 查看当前网页规则,内置规则无法列出)
 
@@ -3422,6 +3422,8 @@ function: { document.documentElement.insertAdjacentHTML('beforeend', _html); // 插入元素 document.documentElement.style.overflow = document.body.style.overflow = 'hidden'; // 避免网页本身滚动 getCSS('#Autopage_customRules_all').textContent = JSON.stringify(DBSite2, null, '\t'); // 单独插入全部规则列表,避免被 insertAdjacentHTML 语义化 HTML 标签 + //let b=Object.entries(DBSite2) + //for (var i = 0; i < b.length; i++) {console.log(b[i][0], b[i][1].host);} // 点击事件 getCSS('#Autopage_customRules_save').onclick = function () { customRules = getCSS('#Autopage_customRules_textarea').value; From d1ab0d0d2de8e8a444ab50b87ee17c8c89c5805e Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Mon, 11 Apr 2022 21:53:20 +0800 Subject: [PATCH 0006/1130] =?UTF-8?q?=E5=90=88=E5=B9=B6=20=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E7=9B=B8=E4=BC=BC=E7=9A=84=E5=90=8C=E7=BD=91=E7=AB=99?= =?UTF-8?q?=E8=A7=84=E5=88=99(=E9=A1=BA=E4=BE=BF=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=86=E4=B8=8B)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 506 +++++++++----------------------------- 1 file changed, 114 insertions(+), 392 deletions(-) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index bf6bf84e2..0f4dceebf 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -4566,36 +4566,13 @@ "scrollD": 3000 } }, - "如意了教育 - 学校": { + "如意了教育 - 学校/数据/试卷": { "host": "www.ruyile.com", - "url": "return (fun.lp() == '/xuexiao/')", + "url": "/^\\/(xuexiao|data|shijuan)\\/($|\\?|p)/", "pager": { - "nextL": "//div[@class='fy']/a[contains(text(), '下一页')]", - "pageE": ".xxlb>.sk", - "replaceE": ".fy", - "scrollD": 1000 - } - }, - "如意了教育 - 数据": { - "host": "www.ruyile.com", - "url": "return (fun.lp() == '/data/')", - "pager": { - "nextL": "//div[@class='fy']/a[contains(text(), '下一页')]", - "pageE": ".m1_z>.lbk", - "insertP": [".page",1], - "replaceE": ".fy", - "scrollD": 1000 - } - }, - "如意了教育 - 试卷": { - "host": "www.ruyile.com", - "url": "return (fun.lp() == '/shijuan/')", - "pager": { - "nextL": "//div[@class='fy']/a[contains(text(), '下一页')]", - "pageE": ".m1_z>.m2_lb", - "insertP": [".page",1], - "replaceE": ".fy", - "scrollD": 1000 + "nextL": ".fy>strong+a", + "pageE": ".xxlb>.sk, .m1_z>.lbk, .m1_z>.m2_lb", + "replaceE": ".fy" } }, "美团技术团队": { @@ -4631,8 +4608,7 @@ "pager": { "nextL": "//font/a[text()='下页']", "pageE": "#AutoNumber1>tbody>tr", - "replaceE": "//font[./a[text()='下页']]", - "scrollD": 1000 + "replaceE": "//font[./a[text()='下页']]" } }, "佛弟子文库": { @@ -4640,8 +4616,7 @@ "pager": { "nextL": "a.current+a", "pageE": "div.wrap>a[href$='.html']", - "replaceE": ".page", - "scrollD": 1000 + "replaceE": ".page" } }, "东方资讯": { @@ -4909,21 +4884,11 @@ }, "JAV Library": { "host": ["www.javlib.com","www.javlibrary.com","www.o58c.com"], - "url": "/\\/vl_/", + "url": "/\\/(vl_|public)/", "blank": 3, "pager": { "nextL": "a.next", - "pageE": ".video", - "replaceE": ".page_selector" - } - }, - "JAV Library - 论坛": { - "host": ["www.javlib.com","www.javlibrary.com","www.o58c.com"], - "url": "/\\/public/", - "blank": 3, - "pager": { - "nextL": "a.next", - "pageE": "table.pubgroup>tbody>tr:not(#header), table.post", + "pageE": ".video, table.pubgroup>tbody>tr:not(#header), table.post", "replaceE": ".page_selector" } }, @@ -5051,6 +5016,32 @@ "bF": "return fun.src_bF(pageE, [0,'img[data-original]','data-original'])" } }, + "177 漫画/xxiav": { + "host": ["www.177picyy.com","www.xxiav.com"], + "url": "/\\d+\\.html/", + "pager": { + "nextL": "//div[@class='page-links']/a[./span[./i[@class='be be-arrowright']]]", + "pageE": ".single-content>p", + "replaceE": ".page-links", + "scrollD": 3000 + }, + "function": { + "bF": "return fun.src_bF(pageE, [0,'img[data-lazy-src]','data-lazy-src'])" + } + }, + "18 禁漫": { + "host": "www.18mh.cc", + "url": "/^\\/index-look/", + "style": ".e img {display: block; margin: 0 auto;}", + "pager": { + "nextL": "//div[@class='c']/a[text()='下一頁' or text()='下一章'][not(@class='n fanye')]", + "pageE": ".e>img:not([style='display:none;'])", + "replaceE": ".c, .b" + }, + "function": { + "bF": "return fun.src_bF(pageE, [0,'img[data-url]','data-url'])" + } + }, "E-Hentai-g": { "host": ["e-hentai.org","exhentai.org"], "url": "/^\\/g\\//", @@ -5190,77 +5181,37 @@ "replaceE": ".pagination" } }, - "美女推 - 图片页": { + "美女推": { "host": "mvtui.com", - "url": "/\\.html/", - "pager": { - "nextL": ".article-paging span.current+a", - "pageE": ".article-content>p", - "replaceE": ".article-paging", - "scrollD": 3000 - } - }, - "美女推 - 分类页": { - "host": "mvtui.com", - "url": "/^\\/.+/", + "url": "/^\\/./", "pager": { - "nextL": "li.next-page a", - "pageE": "#posts>div", - "replaceE": ".pagination" + "nextL": ".article-paging span.current+a, li.next-page a", + "pageE": ".article-content>p, #posts", + "replaceE": ".article-paging, .pagination" }, "function": { "bF": "return fun.src_bF(pageE, [0,'img[data-src]','data-src'])" } }, - "秀人集 - 图片页": { + "秀人集": { "host": "/\\.xiuren[a-z]+\\./", - "url": "/\\.html/", + "url": "return (fun.lp() != '/' && !fun.indexOF('/search/'))", "pager": { - "nextL": "//div[@class='page']/a[text()='下页']", - "pageE": "div.content>p>*", + "nextL": ".current+a", + "pageE": ".content>p, .update_area li.i_list", "replaceE": ".page" } }, - "秀人集 - 搜索页": { - "host": "/\\.xiuren[a-z]+\\./", - "url": "/search/", - "pager": { - "nextL": ".page>a.current+a", - "pageE": ".node>*", - "replaceE": ".page", - "scrollD": 700 - } - }, - "秀人集 - 分类页": { - "host": "/\\.xiuren[a-z]+\\./", - "url": "/^\\/.+/", - "pager": { - "nextL": "//div[@class='page']/a[text()='下页']", - "pageE": "li.i_list", - "replaceE": ".page", - "scrollD": 1000 - } - }, - "极品性感美女 - 图片页": { + "极品性感美女": { "host": "www.jpxgyw.net", - "url": "/\\.html/", + "url": "return (fun.lp() != '/' && !fun.indexOF('/search/'))", "pager": { - "nextL": ".pagination a.current+a", - "pageE": ".article-content img", + "nextL": ".current+a", + "pageE": ".article-content>p, body.home .related_posts>ul", "replaceE": ".pagination", - "interval": 500, "scrollD": 2000 } }, - "极品性感美女 - 分类页": { - "host": "www.jpxgyw.net", - "url": "return (fun.lp() != '/' && !fun.indexOF('/search/'))", - "pager": { - "nextL": ".pagination a.current+a", - "pageE": ".related_posts>ul", - "replaceE": ".pagination" - } - }, "mm.tvv.tw": { "host": "mm.tvv.tw", "url": "return (!fun.indexOF('.html'))", @@ -5273,28 +5224,17 @@ } }, "mm131": { - "host": "www.mmm131.com", - "url": "/\\.html/", + "host": ["www.mmm131.com","m.mmm131.com"], + "url": "return (fun.lp() != '/')", "pager": { - "nextL": "//div[@class='content-page']/a[contains(text(), '下一页')]", - "pageE": ".content-pic img", - "replaceE": ".content-page", + "nextL": ".page_now+a, .paging>a:not(.rw), #xbtn", + "pageE": ".content-pic, dl.list-left>dd:not([class='page']), article:not([id])>.single-post-content img, #content>article[id]", + "replaceE": ".content-page, .page, .paging, #webpage", "scrollD": 2000 } }, - "mm131_list": { - "host": "www.mmm131.com", - "url": "/^\\/.+/", - "pager": { - "nextL": "//dd[@class='page']/a[contains(text(), '下一页')]", - "pageE": "dl.list-left>dd:not([class='page'])", - "replaceE": ".page", - "scrollD": 1000 - } - }, "mm131_m": { "host": "m.mmm131.com", - "url": "return (fun.lp() == '/')", "style": ".bannert, .bannerb, bannert_ios, .bannerb_ios {display: none !important;}", "pager": { "type": 2, @@ -5303,240 +5243,93 @@ "scrollD": 2000 } }, - "mm131_m_": { - "host": "m.mmm131.com", - "url": "/\\.html/", - "style": ".bannert, .bannerb, bannert_ios, .bannerb_ios {display: none !important;}", - "pager": { - "nextL": "//div[@class='paging']/a[text()='下一张' or text()='下一页']", - "pageE": ".post-content img", - "replaceE": ".paging", - "scrollD": 2000 - } - }, - "mm131_m_list": { - "host": "m.mmm131.com", - "style": ".bannert, .bannerb, bannert_ios, .bannerb_ios {display: none !important;}", - "pager": { - "nextL": "#xbtn", - "pageE": "#content>article", - "replaceE": "#webpage", - "scrollD": 2000 - }, - "function": { - "bF": "return fun.src_bF(pageE, [0,'img[data-img]','data-img'])" - } - }, - "mrcong": { + "MrCong": { "host": "mrcong.com", - "url": "return (fun.lp() != '/' && !fun.indexOF('/tag/'))", "pager": { - "nextL": ".post-page-numbers.current+a.post-page-numbers", - "pageE": "#fukie2>p>img", - "replaceE": ".page-link", + "nextL": ".current+a", + "pageE": "#fukie2>p>img, article.item-list", + "replaceE": ".page-link, .pagination", "scrollD": 3000 } }, - "mrcong_list": { - "host": "mrcong.com", - "pager": { - "type": 3, - "nextL": ".current+a.page", - "pageE": "article.item-list", - "scrollE": ".pagination", - "replaceE": ".pagination", - "scrollD": 2000 - } - }, "buondua": { "host": "buondua.com", - "url": "/-photos-\\d+/", "pager": { "type": 3, - "nextL": "//nav[@class='pagination']//span[./a[contains(@class, 'is-current')]]/following-sibling::span[1]/a", - "pageE": ".article-fulltext>p", - "replaceE": "nav.pagination", - "scrollE": ".bottom-articles" - }, - "function": { - "bF": "return fun.src_bF(pageE, [0,'img[data-src]','data-src'])" - } - }, - "buondua_list": { - "host": "buondua.com", - "pager": { - "type": 3, - "nextL": ".pagination-next", - "pageE": ".items-row.column, .collection-item.column", - "replaceE": "nav.pagination" + "nextL": "//a[@class='pagination-next']|//a[@class='pagination-link is-current']/parent::span/following-sibling::span[1]/a", + "pageE": ".article-fulltext, .main-body>.blog.columns", + "replaceE": ".pagination", + "scrollE": ".pagination[role='navigation'], .article-fulltext~.pagination" }, "function": { "bF": "return fun.src_bF(pageE, [0,'img[data-src]','data-src'])" } }, - "宅男女神 - 图片页": { + "宅男女神": { "host": "www.fnvshen.com", - "url": "/^\\/g\\//", + "url": "/^\\/(g|gallery|tag)\\//", "pager": { - "nextL": "#pages>span +a:not(.a1)", - "pageE": "#hgallery>img", - "replaceE": "#pages" - } - }, - "宅男女神 - 分类页": { - "host": "www.fnvshen.com", - "url": "/^\\/gallery|tag\\//", - "style": ".yalayi_box {display: none !important; margin: -4px 0 !important;}", - "pager": { - "nextL": "//div[@class='pagesYY']//a[contains(text(), '下一页')]", - "pageE": "#listdiv>ul>li", - "replaceE": ".pagesYY", - "scrollD": 1000 - }, - "function": { - "bF": "return fun.src_bF(pageE, [0,'img[data-original]','data-original'])" - } - }, - "宅男女神 - 文章页": { - "host": "www.fnvshen.com", - "url": "/^/article/\\d+\\//", - "pager": { - "nextL": ".pagesYY a.cur+a", - "pageE": "#articleDiv", - "insertP": ["#articleDiv",6], - "replaceE": ".pagesYY", - "scrollD": 1000 - } - }, - "宅男女神 - 文章分类页": { - "host": "www.fnvshen.com", - "url": "/^/article//", - "pager": { - "nextL": "//div[@class='pagesYY']//a[contains(text(), '下一页')]", - "pageE": "li.other_girlli", - "replaceE": ".pagesYY", - "scrollD": 1000 + "nextL": "#pages>span +a:not(.a1), a.cur+a", + "pageE": "#hgallery>img, #listdiv>ul>li", + "replaceE": "#pages, .pagesYY" } }, "爱女神 - 图片页": { "host": "www.99nvshen.com", - "url": "/^\\/gallery\\//", + "url": "/^\\/(gallery|galleryList|modelList)\\//", "pager": { - "nextL": "ul.pagination a[aria-label='Next']", - "pageE": "a.gallery-detail-img", - "replaceE": "ul.pagination", - "interval": 1500, - "scrollD": 2500 - } - }, - "爱女神 - 分类页": { - "host": "www.99nvshen.com", - "url": "/^\\/galleryList|modelList\\//", - "pager": { - "nextL": "ul.pagination a[aria-label='Next']", - "pageE": ".book-list>div.col-sm-4", - "replaceE": "ul.pagination" - } - }, - "秀人美女 - 图片页": { - "host": "www.xrmn5.cc", - "url": "/\\d+\\.html/", - "pager": { - "nextL": "//div[contains(@class, 'page')]//a[contains(text(), '下页')]", - "pageE": ".content_left>p>img", - "replaceE": ".page", - "scrollD": 3000 + "type": 3, + "nextL": "a[aria-label='Next']", + "pageE": "//nav[@class='pagination-box']/preceding-sibling::div[1][@class='book-list']", + "replaceE": ".pagination", + "scrollD": 1000 } }, - "秀人美女 - 分类页": { + "秀人美女": { "host": "www.xrmn5.cc", - "url": "/^\\/.+/", + "url": "/(^\\/.)|(\\d+\\.html$)/", "pager": { - "nextL": "//div[contains(@class, 'page')]//a[contains(text(), '下页')]", - "pageE": "ul.update_area_lists>li", + "type": 3, + "nextL": "a.current+a", + "pageE": ".content_left>p, .update_area ul.update_area_lists>li", "replaceE": ".page", - "scrollD": 2000 + "scrollD": 1000 } }, - "精品美女吧 - 图片页": { + "精品美女吧": { "host": "www.jpmn8.com", - "url": "/\\d+\\.html/", + "url": "/(^\\/.)|(\\d+\\.html$)/", "style": "img[onload] {min-height: 500px;}", "pager": { - "nextL": "//div[@class='pagination1']//a[text()='下一页']", - "pageE": "img[onload]", + "type": 3, + "nextL": ".current+a", + "pageE": "img[onload], article.excerpt", "replaceE": ".pagination1", - "scrollD": 3000 - } - }, - "精品美女吧 - 分类页": { - "host": "www.jpmn8.com", - "url": "/^\\/.+/", - "pager": { - "nextL": "//div[@class='pagination1']//a[text()='下一页']", - "pageE": "article.excerpt", - "replaceE": ".pagination1" + "scrollD": 1000 } }, "ku66": { - "host": "www.ku66.net", - "url": "/\\d+\\.html/", - "style": ".content img {min-height: 500px;}", + "host": ["www.ku66.net","www.ku138.cc"], + "url": "/(^\\/.)|(\\d+\\.html$)/", + "style": ".content img {min-height: 500px;} .Title9, .dibu1, .dibu2 {display: none !important;}", "pager": { - "nextL": "//div[@class='NewPages']//a[text()='下一页']", - "pageE": ".content>img", - "replaceE": ".NewPages", - "scrollD": 4000 - } - }, - "ku66_list": { - "host": "www.ku66.net", - "url": "/^\\/.+/", - "pager": { - "nextL": "//div[@class='NewPages']//a[text()='下一页']", - "pageE": ".TypeList>ul>li", - "replaceE": ".NewPages", + "type": 3, + "nextL": ".thisclass+li>a, .this-page+a:not(.no-page)", + "pageE": ".content, .TypeList, .m-list.ml1", + "replaceE": ".NewPages, .page", "scrollD": 1000 } }, - "ku137": { - "host": "www.ku137.net", - "url": "/\\d+\\.html/", - "style": ".Title9, .dibu1, .dibu2 {display: none !important;} .content img {min-height: 500px;}", - "pager": { - "nextL": "//div[@class='page']/a[text()='下一页']", - "pageE": ".content>img", - "replaceE": ".page", - "scrollD": 3000 - } - }, - "ku137_list": { - "host": "www.ku137.net", - "url": "/^\\/.+/", - "pager": { - "nextL": "//div[@class='page']/a[text()='下一页']", - "pageE": ".m-list>ul>li", - "replaceE": ".page" - } - }, "kingdom": { "host": "www.kingdom-en.com", - "url": "/\\d+\\.html/", + "url": "/(^\\/.)|(\\d+\\.html$)/", "style": ".pic_center img {min-height: 300px;}", "pager": { - "nextL": "//div[@class='pages2' or @class='article_page']//a[text()='下一页']", - "pageE": ".pic_center img", - "replaceE": ".pages2, .article_page", - "scrollD": 3000 - } - }, - "kingdom_list": { - "host": "www.kingdom-en.com", - "url": "/^\\/.+/", - "pager": { - "nextL": "a.page_next", - "pageE": ".channel_list3>ul", - "replaceE": ".pages" + "type": 3, + "nextL": ".page_nowindex+a, a.page_next", + "pageE": ".pic_center, .channel_list3", + "replaceE": ".pages2, .article_page, .pages", + "scrollD": 1000 } }, "kissgoddess": { @@ -5563,60 +5356,24 @@ "replaceE": ".bb ul" } }, - "爱美女 - 图片页": { - "host": "www.2meinv.com", - "url": "/^\\/article-/", - "pager": { - "nextL": "//div[@class='page-show']/a[text()='下一页']", - "pageE": ".pp.hh img", - "replaceE": ".page-show" - } - }, - "爱美女 - 分类页": { - "host": "www.2meinv.com", + "爱美女": { + "host": ["www.2meinv.com","wap.2meinv.com"], "pager": { - "nextL": "//div[@class='page-show']/a[text()='下一页']", - "pageE": "ul.detail-list>li", - "replaceE": ".page-show" - } - }, - "爱美女 - 手机版 - 图片页": { - "host": "wap.2meinv.com", - "url": "/^\\/article-/", - "pager": { - "nextL": "//div[contains(@class,'article-page')]/a[text()='下一页']", - "pageE": ".arcmain li", - "replaceE": ".article-page" - } - }, - "爱美女 - 手机版 - 分类页": { - "host": "wap.2meinv.com", - "pager": { - "nextL": "//div[contains(@class,'article-page')]/a[text()='下一页']", - "pageE": "#listcon li", - "replaceE": ".article-page" - }, - "function": { - "bF": "return fun.src_bF(pageE, [0,'img[data-original]','data-original'])" - } - }, - "娱乐吧 - 手机版 - 图片页": { - "host": "m.yuleba.org", - "url": "/^\\/a\\//", - "pager": { - "nextL": "//div[@class='paging']/a[text()='下一页']", - "pageE": ".a_img>p", - "replaceE": ".paging", - "scrollD": 4000 + "nextL": "//div[@class='page-show' or contains(@class,'article-page')]/a[text()='下一页']", + "pageE": ".pp.hh img, ul.detail-list, .arcmain li, #listcon>ul", + "replaceE": ".page-show, .article-page" } }, "娱乐吧": { "host": ["www.yuleba.org","m.yuleba.org"], "url": "/^\\/a|b\\//", + "style": ".b_img>.paging {float: left;}", "pager": { + "type": 3, "nextL": "//div[@class='paging']/a[text()='下一页']", - "pageE": ".b_img>ul, .picture>p", - "replaceE": ".paging" + "pageE": ".b_img:not(:nth-child(7))>ul, .picture>p, .a_img>p", + "replaceE": ".paging", + "scrollD": 1000 } }, "凸凹吧/撸女吧": { @@ -5641,49 +5398,14 @@ } }, "仙女图": { - "host": "www.xiannvtu.com", - "url": "/\\/v\\//", + "host": ["www.xiannvtu.com","m.xiannvtu.com"], + "url": "/^\\/v\\//", "pager": { - "nextL": "//div[@class='page']//a[text()='下一页']", - "pageE": ".picbox img", - "replaceE": ".page", - "scrollD": 2000 - } - }, - "仙女图 - 手机版": { - "host": "m.xiannvtu.com", - "url": "/\\/v\\//", - "pager": { - "nextL": "//div[@class='fenye']//a[text()='下一页']", - "pageE": "#content>.post>.post-content img", - "replaceE": ".fenye", - "scrollD": 3500 - } - }, - "177 漫画/xxiav": { - "host": ["www.177picyy.com","www.xxiav.com"], - "url": "/\\d+\\.html/", - "pager": { - "nextL": "//div[@class='page-links']/a[./span[./i[@class='be be-arrowright']]]", - "pageE": ".single-content>p", - "replaceE": ".page-links", - "scrollD": 3000 - }, - "function": { - "bF": "return fun.src_bF(pageE, [0,'img[data-lazy-src]','data-lazy-src'])" - } - }, - "18 禁漫": { - "host": "www.18mh.cc", - "url": "/^\\/index-look/", - "style": ".e img {display: block; margin: 0 auto;}", - "pager": { - "nextL": "//div[@class='c']/a[text()='下一頁' or text()='下一章'][not(@class='n fanye')]", - "pageE": ".e>img:not([style='display:none;'])", - "replaceE": ".c, .b" - }, - "function": { - "bF": "return fun.src_bF(pageE, [0,'img[data-url]','data-url'])" + "type": 3, + "nextL": "//div[@class='page' or @class='fenye']//a[text()='下一页']", + "pageE": ".picbox img, #content>.post>.post-content img", + "replaceE": ".page, .fenye", + "scrollD": 1000 } }, "ROSIMM 写真": { From 9d382fa78f1689897e6ffcc647f6571ac8f82c4f Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Mon, 11 Apr 2022 23:33:07 +0800 Subject: [PATCH 0007/1130] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[JavDove=20?= =?UTF-8?q?=E7=95=AA=E5=8F=B7=E9=B8=BD]=E3=80=81[HuangboAV]=20=E8=A7=84?= =?UTF-8?q?=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, 4 insertions(+), 2 deletions(-) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index 0f4dceebf..2e6cb9f4f 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -4827,6 +4827,7 @@ "JavDove 番号鸽": { "host": "/^(www\\.)?javdove/", "url": "/\\/videos/", + "blank": 3, "pager": { "nextL": ".prevnext[rel='next']", "pageE": ".row>.col-video", @@ -4838,11 +4839,12 @@ }, "HuangboAV": { "host": "huangboav.com", - "url": "return (fun.indexOF(/^\\/(category|tag)\\//) || fun.indexOF('s=','s'))", + "url": "return (fun.indexOF(/^\\/(category|tag)\\//) || location.search != '')", "style": "img[data-src] {opacity: 1 !important;}", + "blank": 3, "pager": { "nextL": "//a[@class='current']/parent::li/following-sibling::li[1]/a", - "pageE": ".page-header~div:not(.pagination)", + "pageE": ".page-header~div:not(.pagination):not(.clear)", "replaceE": ".pagination" }, "function": { From 1bf924fba352e37f26d571d6ea6ddb920c323296 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 12 Apr 2022 08:38:33 +0800 Subject: [PATCH 0008/1130] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E7=AC=94?= =?UTF-8?q?=E8=B6=A3=E9=98=81=20-=20=E6=89=8B=E6=9C=BA=E7=89=88]=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 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 92989494b..78898525a 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3,7 +3,7 @@ // @name:zh-CN 自动无缝翻页 // @name:zh-TW 自動無縫翻頁 // @name:en AutoPager -// @version 5.7.1 +// @version 5.7.2 // @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...) 等網站~ @@ -284,9 +284,9 @@ } 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()="下一章"]')) { + } else if (getCSS('.content > #content') && getXpath('//div[contains(@class,"page_chapter")]//a[text()="下一章"]')) { console.info(`[自动无缝翻页] - <笔趣阁 1> 模板的小说网站`); return 200; - } else if (getCSS('#nr1') && getCSS('.nr_page') && getCSS('#pb_next')) { + } else if (getCSS('#nr1, #chaptercontent, .Readarea, .ReadAjax_content') && getCSS('#pb_next')) { console.info(`[自动无缝翻页] - <笔趣阁 2 - 手机版> 模板的小说网站`); return 201; } else if (getCSS('#txt, .txt') && getCSS('#pb_next, .url_next') && getCSS('.chapter-control, .chapter-page-btn')) { console.info(`[自动无缝翻页] - <笔趣阁 3> 模板的小说网站`); return 202; @@ -459,13 +459,13 @@ function: { } }, // 笔趣阁 1 模板的小说网站 biquge1_m: { - style: 'img, .posterror, .show-app2, a[href*="posterror()"], [onclick*="location.href"], [style*="url("], #nr1 > *:not(br):not(p) {display: none !important;}', + style: 'img, .posterror, .show-app2, a[href*="posterror()"], [onclick*="location.href"], [style*="url("], #nr1>*:not(br):not(p), #chaptercontent>*:not(br):not(p), .Readarea>*:not(br):not(p), .ReadAjax_content>*:not(br):not(p) {display: none !important;}', history: true, pager: { nextL: '#pb_next', - pageE: '#nr1', - insertP: ['#nr1', 6], - replaceE: '.nr_page' + pageE: '#nr1, #chaptercontent, .Readarea, .ReadAjax_content', + insertP: ['#nr1, #chaptercontent, .Readarea, .ReadAjax_content', 6], + replaceE: '//a[@id="pb_next"]/parent::*' } }, // 笔趣阁 2 - 手机版 模板的小说网站 biquge2: { From 3c192db0df3e77e493828f3f70f1bd59a49d4185 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 12 Apr 2022 11:06:53 +0800 Subject: [PATCH 0009/1130] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E8=B1=86?= =?UTF-8?q?=E7=93=A3=20-=20=E5=BD=B1=E8=AF=84=E8=AF=84=E8=AE=BA]=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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index 2e6cb9f4f..1f7188429 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -352,8 +352,8 @@ "replaceE": ".paginator" } }, - "豆瓣 - 广播/日记/书评": { - "host": ["www.douban.com","book.douban.com"], + "豆瓣 - 广播/日记/书评/影评评论": { + "host": ["www.douban.com","book.douban.com","movie.douban.com"], "url": "return ((fun.indexOF(/^\\/people\\/.+\\/status/) && (!fun.indexOF('tab=','s') || fun.indexOF('tab=comment','s'))) || (fun.indexOF(/^\\/note\\/\\d+\\//) && !fun.indexOF('type=','s')) || fun.indexOF(/^\\/review\\/\\d+\\//))", "pager": { "type": 6, From 1cb4079df6ac79da33aaedf91e0cb4d4c0a4fd8d Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 12 Apr 2022 11:17:02 +0800 Subject: [PATCH 0010/1130] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E7=9B=B4=E6=8E=A5=E4=B8=8B=E8=BD=BD=E6=96=87=E4=BB=B6?= =?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 --- Lanzou-Enhanced.user.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Lanzou-Enhanced.user.js b/Lanzou-Enhanced.user.js index 9363e9322..4a1910c43 100644 --- a/Lanzou-Enhanced.user.js +++ b/Lanzou-Enhanced.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 蓝奏云网盘增强 -// @version 1.4.1 +// @version 1.4.2 // @author X.I.U // @description 刷新不回根目录、后退返回上一级、右键文件显示菜单、点击直接下载文件、点击空白进入目录、自动显示更多文件、一键复制所有分享链接、自定义分享链接域名、自动打开/复制分享链接、带密码的分享链接自动输密码、拖入文件自动显示上传框、输入密码后回车确认、调整描述(话说)编辑框初始大小 // @include /^https:\/\/.+\.lanzou[a-z]\.com\/.*$/ @@ -284,11 +284,16 @@ iframe = iframe.contentWindow; let timer = setInterval(function(){ if (iframe.document.querySelector('#go a[href]')) { - iframe.document.querySelector('#go a[href]').target = '_top' - iframe.document.querySelector('#go a[href]').click(); - //GM_openInTab(iframe.document.querySelector('#go a[href]').href, {active: false, insert: true, setParent: false}); // 后台打开 + //iframe.document.querySelector('#go a[href]').target = '_top' + //iframe.document.querySelector('#go a[href]').click(); + GM_openInTab(iframe.document.querySelector('#go a[href]').href, {active: false, insert: true, setParent: false}); // 后台打开 clearInterval(timer); - setTimeout(function(){window.top.close();},200)// 关闭该后台标签页 + // 关闭该后台标签页 + if (GM_info.scriptHandler === 'Violentmonkey') { // Violentmonkey 需要延迟一会儿 + setTimeout(function(){window.top.close();}, 500) + } else { + window.top.close(); + } } }, 10); } From 82773769a8f603c3003c791300f79bf7722aec0e Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 12 Apr 2022 12:47:30 +0800 Subject: [PATCH 0011/1130] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E7=A6=81?= =?UTF-8?q?=E6=BC=AB=E5=A4=A9=E5=A0=82]=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 1f7188429..d858988b3 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -4988,7 +4988,7 @@ }, "禁漫天堂": { "host": ["jmcomic.mobi","jmcomic1.mobi","18comic.vip","18comic.org"], - "url": "/^\\/photo\\//", + "url": "if (fun.indexOF(/^\\/photo\\//)){fun.src_bF(fun.getAllCSS('.scramble-page'), [0,'img[data-original]:not(.lazy-loaded)','data-original']); return true}", "style": "[data-group], div[data-page], .thumb-overlay-albums>*:not(.scramble-page) {display: none !important;} #Comic_Top_Nav[style*='display: block'] {opacity: 0.3;}", "history": true, "pager": { From 2fa78cdb66d4754eedfd01ec352b4b7288aa2bca Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 12 Apr 2022 16:11:24 +0800 Subject: [PATCH 0012/1130] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[423down=20-=20?= =?UTF-8?q?=E6=96=87=E7=AB=A0=E5=86=85=E8=AF=84=E8=AE=BA]=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81;=20=E4=BC=98=E5=8C=96=20[=E8=BD=BB=E7=8B=82=E5=BF=97]?= =?UTF-8?q?=E3=80=81[=E9=BB=91=E5=9F=9F=E5=9F=BA=E5=9C=B0]=20=E8=A7=84?= =?UTF-8?q?=E5=88=99?= 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 d858988b3..208602527 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -3200,14 +3200,12 @@ "scrollD": 2000 } }, - "_423down": { + "423down": { "host": "www.423down.com", - "url": "return (!fun.indexOF('.html'))", "pager": { - "nextL": "//div[@class='paging']//a[contains(text(),'下一页')]", - "pageE": "div.content-wrap ul.excerpt>li", - "replaceE": "div.paging", - "scrollD": 2000 + "nextL": "//span[@class='current']/following-sibling::a[1] | //span[@class='page-numbers current']/preceding-sibling::a[1]", + "pageE": ".content>.excerpt, .commentlist>li", + "replaceE": ".paging, .pagenav" } }, "不死鸟": { @@ -3271,18 +3269,18 @@ }, "轻狂志": { "host": "www.flighty.cn", - "url": "return (fun.lp() != '/')", + "url": "/^\\/./", "pager": { - "nextL": "//div[@class='pages']//a[text()='下一页']", + "nextL": ".pages .thisclass+li>a", "pageE": ".items", "replaceE": ".pages" } }, "黑域基地": { "host": "www.hybase.com", - "url": "return (!fun.indexOF(/\\/\\d+\\.html/))", + "url": "return (fun.getCSS('#pages') != null)", "pager": { - "nextL": "id('pages')/a[text()='下一页']", + "nextL": "#pages>b+a", "pageE": ".entry", "replaceE": "#pages" } From a8762a02fbc82f74f04c04e7a26a3b444b623baf Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 12 Apr 2022 17:03:37 +0800 Subject: [PATCH 0013/1130] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E9=83=A8?= =?UTF-8?q?=E5=88=86=20=E8=87=AA=E5=B8=A6=E6=97=A0=E7=BC=9D=E7=BF=BB?= =?UTF-8?q?=E9=A1=B5=20=E7=BD=91=E7=AB=99]=20=E9=80=9A=E7=94=A8=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 78898525a..5d068cc04 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3,7 +3,7 @@ // @name:zh-CN 自动无缝翻页 // @name:zh-TW 自動無縫翻頁 // @name:en AutoPager -// @version 5.7.2 +// @version 5.7.3 // @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...) 等網站~ @@ -256,7 +256,7 @@ } else if (getAllCSS('.load-more, .loadmore, #load-more, #loadmore, .show_more').length === 1) { console.info(`[自动无缝翻页] - 部分自带 自动无缝翻页 的网站 1`); return 8; - } else if (getAllXpath('//*[text()="加载更多" or text()="查看更多"][not(@href) or @href="#" or starts-with(@href, "javascript")]').length === 1) { + } else if (getAllXpath('//*[text()="加载更多" or text()="查看更多"][not(@href) or @href="#" or starts-with(@href, "javascript")]').length === 1 && location.hostname.indexOf('www.smzdm.com') == -1) { console.info(`[自动无缝翻页] - 部分自带 自动无缝翻页 的网站 2`); return 9; } else if (getCSS('link[href*="/wp-content/" i], script[src*="/wp-content/" i]')) { @@ -3461,7 +3461,7 @@ function: { } // 插入网页 let _style = ``, - _html = `
${pageNum._now}
` + _html = `
${pageNum._now}
` document.documentElement.insertAdjacentHTML('beforeend', _style + _html); // 解决 远景论坛 会清理掉前面插入的 CSS 样式的问题 if (location.hostname === 'bbs.pcbeta.com') {setTimeout(function(){document.documentElement.insertAdjacentHTML('beforeend', _style);}, 500);} From eb3b9b84b9475380c83646471b26dc4a8c1af28d Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 12 Apr 2022 19:25:12 +0800 Subject: [PATCH 0014/1130] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E7=AC=94?= =?UTF-8?q?=E8=B6=A3=E9=98=81]=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 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 5d068cc04..d88a5566c 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3,7 +3,7 @@ // @name:zh-CN 自动无缝翻页 // @name:zh-TW 自動無縫翻頁 // @name:en AutoPager -// @version 5.7.3 +// @version 5.7.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...) 等網站~ @@ -445,7 +445,7 @@ function: { }, // 部分使用 Typecho 的网站 (handsome) biquge1: { url: ()=> {curSite = DBSite.biquge1;xs_bF(getAllCSS('.content > #content'),[/
.{0,10}秒记住.+$/, '']);}, - style: 'img, .posterror, a[href*="posterror()"], [style*="url("], #content > *:not(br):not(p) {display: none !important;}', + style: 'img, .posterror, a[href*="posterror()"], [style*="background"][style*="url("]:not(html):not(body), #content > *:not(br):not(p) {display: none !important;}', history: true, pager: { nextL: '//div[@class="page_chapter"]//a[text()="下一章"]', @@ -459,7 +459,7 @@ function: { } }, // 笔趣阁 1 模板的小说网站 biquge1_m: { - style: 'img, .posterror, .show-app2, a[href*="posterror()"], [onclick*="location.href"], [style*="url("], #nr1>*:not(br):not(p), #chaptercontent>*:not(br):not(p), .Readarea>*:not(br):not(p), .ReadAjax_content>*:not(br):not(p) {display: none !important;}', + style: 'img, .posterror, .show-app2, a[href*="posterror()"], [onclick*="location.href"], [style*="background"][style*="url("]:not(html):not(body), #nr1>*:not(br):not(p), #chaptercontent>*:not(br):not(p), .Readarea>*:not(br):not(p), .ReadAjax_content>*:not(br):not(p) {display: none !important;}', history: true, pager: { nextL: '#pb_next', @@ -470,7 +470,7 @@ function: { }, // 笔趣阁 2 - 手机版 模板的小说网站 biquge2: { url: ()=> {if (isMobile() || getCSS('.chapter-page-btn') != null) {curSite = DBSite.biquge2_m;} else {curSite = DBSite.biquge2;}}, - style: 'img, .posterror, a[href*="posterror()"], [style*="url("], #txt > *:not(br):not(p) {display: none !important;}', + style: 'img, .posterror, a[href*="posterror()"], [style*="background"][style*="url("]:not(html):not(body), #txt > *:not(br):not(p) {display: none !important;}', history: true, pager: { type: 6, @@ -483,7 +483,7 @@ function: { } }, // 笔趣阁 3 模板的小说网站 biquge2_m: { - style: 'img, .posterror, a[href*="posterror()"], [style*="url("], #txt > *:not(br):not(p) {display: none !important;}', + style: 'img, .posterror, a[href*="posterror()"], [style*="background"][style*="url("]:not(html):not(body), #txt > *:not(br):not(p) {display: none !important;}', history: true, pager: { nextL: '#pb_next, .url_next', @@ -494,7 +494,7 @@ function: { } }, // 笔趣阁 3 - 手机版 模板的小说网站 biquge3: { - style: 'img, .posterror, a[href*="posterror()"], [style*="url("], script+div[style="padding:15px;"] {display: none !important;}', + style: 'img, .posterror, a[href*="posterror()"], [style*="background"][style*="url("]:not(html):not(body), script+div[style="padding:15px;"] {display: none !important;}', history: true, pager: { nextL: '//a[contains(text(), "下一章") or contains(text(), "下一页")]', From 704aa787540a372cf4bea067b02b80c3e5fda2b9 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 12 Apr 2022 22:08:00 +0800 Subject: [PATCH 0015/1130] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E5=BF=AB?= =?UTF-8?q?=E5=B2=B8=E6=BC=AB=E7=94=BB]=20=E6=94=AF=E6=8C=81;=20=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=20[=E6=BC=AB=E7=94=BBDB]=20=E8=A7=84=E5=88=99(?= =?UTF-8?q?=E5=B9=B6=E7=A7=BB=E8=87=B3=E5=A4=96=E7=BD=AE=E7=BF=BB=E9=A1=B5?= =?UTF-8?q?=E8=A7=84=E5=88=99);=20=E4=BC=98=E5=8C=96=20[=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E7=BF=BB=E9=A1=B5=E8=A7=84=E5=88=99]=20=E5=86=85?= =?UTF-8?q?=E7=BD=AE=E5=87=BD=E6=95=B0=20src=5FbF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 116 ++++++-------------------------------- other/Autopage/rules.json | 96 +++++++++++++++++++++++-------- 2 files changed, 89 insertions(+), 123 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index d88a5566c..0d80019c8 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3,7 +3,7 @@ // @name:zh-CN 自动无缝翻页 // @name:zh-TW 自動無縫翻頁 // @name:en AutoPager -// @version 5.7.4 +// @version 5.7.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...) 等網站~ @@ -426,12 +426,15 @@ function: { } }, // 部分自带 自动无缝翻页 的网站 wp_article: { - url: function(nextL) {if (!indexOF('/post/') && !getCSS('#comments, .comments-area, #disqus_thread')) {curSite = DBSite.wp_article; curSite.pager.nextL = nextL; if (getCSS('img[data-src]')) {curSite.function = {bF: "return fun.src_bF(pageE, [0, 'img[data-src]', 'data-src'])"};} else if (getCSS('img[data-original]')) {curSite.function = {bF: "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])"};}}}, + url: function(nextL) {if (!indexOF('/post/') && !getCSS('#comments, .comments-area, #disqus_thread')) {curSite = DBSite.wp_article; curSite.pager.nextL = nextL;}}, blank: 1, pager: { pageE: 'article[class], div[id^="post-"], ul[class*="post"] > li.item', replaceE: '#nav-below, nav.navigation, nav.paging-navigation, .pagination, .wp-pagenavi, .pagenavi', scrollD: 2000 + }, + function: { + bF: "return fun.src_bF(pageE)" } }, // 部分使用 WordPress 的网站 typecho_handsome: { @@ -878,10 +881,6 @@ function: { } setTimeout(manhuacat_init, 100); curSite = DBSite.manhuacat; - } else if (indexOF('/list')) { - curSite = DBSite.manhuacat_list; - } else if (indexOF('/search') || indexOF('/update')) { - curSite = DBSite.manhuacat_search; }}, style: '#left, #right, #pull-load, .loading, .pagination, footer {display: none !important;} .img-content > img {display: block !important;margin: 0 auto !important; border: none !important; padding: 0 !important; max-width: 99% !important; height: auto !important;}', // 隐藏不需要的元素,调整图片 pager: { @@ -894,27 +893,6 @@ function: { scrollD: 3000 } }, // 漫画猫 - manhuacat_list: { - blank: 1, - pager: { - nextL: '//div[contains(@class, "pagination")]//a[contains(text(), "下一页") or contains(text(), "下页")]', - pageE: '.comic-main-section > *', - replaceE: '.pagination', - scrollD: 1000 - }, - function: { - bF: src_bF, - bFp: [0, 'img[data-original]', 'data-original'] - } - }, // 漫画猫 - 分类页 - manhuacat_search: { - pager: { - nextL: '//div[contains(@class, "pagination")]//a[contains(text(), "下一页") or contains(text(), "下页")]', - pageE: '.comic-main-section .row > div', - replaceE: '.pagination', - scrollD: 1000 - } - }, // 漫画猫 - 搜索页 imanhuaw: { host: ['www.imanhuaw.net', 'www.imanhuaw.com', 'www.ccshwy.com'], url: ()=> { @@ -1013,28 +991,6 @@ function: { replaceE: 'ul.pagination' } }, // 36漫画 - 分类/搜索页 - manhuadb: { - host: 'www.manhuadb.com', - url: ()=> {if (indexOF(/\/manhua\/\d+\/.+\.html/)) { - if (getCSS('img.img-fluid.show-pic')) getCSS('img.img-fluid.show-pic').style.display = 'none'; // 隐藏第一个图片(避免重复) - setTimeout(manhuadb_init, 100); - curSite = DBSite.manhuadb; - } else if (indexOF('/list')) { - curSite = DBSite.manhuacat_list; - } else if (indexOF('/search') || indexOF('/update')) { - curSite = DBSite.manhuacat_search; - }}, - style: '.row.m-0.pt-3.ad_2_wrap, .row.m-0.ad_1_wrap, .pagination.justify-content-center, #left, #right {display: none !important;}', - pager: { - type: 4, - nextL: manhuadb_nextL, - pageE: 'body > script:not([type]):not([src]), .vg-r-data, ol.links-of-books.num_div', - insertP: ['.pjax-container', 3], - insertE: manhuadb_insertE, - interval: 5000, - scrollD: 3000 - } - }, // 漫画 DB hicomic: { host: 'www.hicomic.net', url: ()=> {if (indexOF('/chapters/')) { @@ -2071,47 +2027,6 @@ function: { } - // [漫画 DB] 初始化(将本话其余图片插入网页中) - function manhuadb_init() { - let _img = '', data = getCSS('.vg-r-data'), imgDate; - if (!data) return - getAllCSS(curSite.pager.pageE.replace('', '')).forEach(function (one) { - if (one.tagName === 'SCRIPT' && one.textContent.indexOf('var img_data =') > -1) { - let json = JSON.parse(window.atob(one.textContent.split("'")[1])); - if (json) { - let _img = ''; - for (let i = 0; i < json.length; i++) {_img += ``;} - getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中 - } - } - }) - } - // [漫画 DB] 获取下一页地址 - function manhuadb_nextL() { - let nextArr = getAllCSS('a.fixed-a-es'), next; - var url = ''; - if (nextArr.length == 0) return - for (let i = 0; i < nextArr.length; i++) { - if (nextArr[i].className.indexOf('active') > -1) { - if (nextArr[i+1]) url = nextArr[i+1].href; - break; - } - } - if (url === curSite.pageUrl) return - curSite.pageUrl = url - getPageE_(curSite.pageUrl); - } - // [漫画 DB] 插入数据 - function manhuadb_insertE(pageE, type) { - if (!pageE) return - if (replaceElems(pageE, curSite.pager.pageE, curSite.pager.pageE)) { - addHistory(pageE); - pageNum.now = pageNum._now + 1 - manhuadb_init(); // 将刚刚替换的图片插入网页中 - } - } - - // [HiComic(嗨漫画)] 初始化(将本话其余图片插入网页中) function hicomic_init() { let _img = ''; @@ -2920,18 +2835,21 @@ function: { } } // 通用型插入前函数(加载图片) - function src_bF(pageE, css) { + function src_bF(pageE, css = [0, 'img[data-original], img[data-src]', 'data-original']) { + if (css[2] === undefined) css[2] = 'data-original' pageE.forEach(function (one) { if (css[0] == 0) { // src 图片 - if (one.tagName == 'IMG' && one.getAttribute(css[2])) one.src = one.getAttribute(css[2]); - one.querySelectorAll(css[1]).forEach(function (now) { - now.src = now.getAttribute(css[2]); - }); + if (one.tagName === 'IMG') { + if (one.getAttribute(css[2])){one.src = one.getAttribute(css[2]);}else if (one.dataset.src){one.src = one.dataset.src;} + } else { + one.querySelectorAll(css[1]).forEach(function (now) {if (now.getAttribute(css[2])){now.src = now.getAttribute(css[2]);}else if (now.dataset.src){now.src = now.dataset.src;};}); + } } else if (css[0] == 1) { // 背景图片 - if (one.tagName == 'IMG' && one.getAttribute(css[2])) one.style.backgroundImage = 'url("' + one.getAttribute(css[2]) + '")'; - one.querySelectorAll(css[1]).forEach(function (now) { - now.style.backgroundImage = 'url("' + now.getAttribute(css[2]) + '")'; - }); + if (one.tagName === 'IMG') { + if (one.getAttribute(css[2])){one.style.backgroundImage = 'url("' + one.getAttribute(css[2]) + '")';}else if (one.dataset.src){one.style.backgroundImage = 'url("' + one.dataset.src + '")';} + } else { + one.querySelectorAll(css[1]).forEach(function (now) {if (now.getAttribute(css[2])){now.style.backgroundImage = 'url("' + now.getAttribute(css[2]) + '")';}else if (now.dataset.src){now.style.backgroundImage = 'url("' + now.dataset.src + '")';};}); + } } }); return pageE diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index 208602527..56d961544 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -560,7 +560,7 @@ "replaceE": ".wp-pagenavi" }, "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" + "bF": "return fun.src_bF(pageE)" } }, "煎蛋网 - 大杂烩": { @@ -759,7 +759,7 @@ "scrollD": 1000 }, "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" + "bF": "return fun.src_bF(pageE)" } }, "淘股吧论坛": { @@ -903,7 +903,7 @@ "scrollD": 2000 }, "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" + "bF": "return fun.src_bF(pageE)" } }, "北+ - 帖子内": { @@ -1269,7 +1269,7 @@ "scrollD": 2500 }, "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" + "bF": "return fun.src_bF(pageE)" } }, "千图网 - 专题/收藏夹": { @@ -1283,7 +1283,7 @@ "scrollD": 4000 }, "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" + "bF": "return fun.src_bF(pageE)" } }, "千库网": { @@ -1297,7 +1297,7 @@ "scrollD": 2000 }, "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" + "bF": "return fun.src_bF(pageE)" } }, "昵图网": { @@ -1310,7 +1310,7 @@ "scrollD": 2000 }, "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" + "bF": "return fun.src_bF(pageE)" } }, "摄图网": { @@ -1338,7 +1338,7 @@ "scrollD": 2000 }, "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-src]', 'data-src'])" + "bF": "return fun.src_bF(pageE)" } }, "我图网": { @@ -1353,7 +1353,7 @@ "scrollD": 2000 }, "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" + "bF": "return fun.src_bF(pageE)" } }, "包图网 - 音乐页": { @@ -1594,7 +1594,7 @@ "scrollD": 1000 }, "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" + "bF": "return fun.src_bF(pageE)" } }, "3DM - 游戏专区 - 分类页": { @@ -1607,7 +1607,7 @@ "scrollD": 1000 }, "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" + "bF": "return fun.src_bF(pageE)" } }, "3DM - 游戏专区 - 资源页": { @@ -1688,7 +1688,7 @@ "scrollD": 1000 }, "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" + "bF": "return fun.src_bF(pageE)" } }, "游侠网 - 攻略页": { @@ -1743,7 +1743,7 @@ "scrollD": 100 }, "function": { - "bF": "pageE.forEach(function (one) {if (one.tagName === 'P' && one.textContent.indexOf('更多相关内容请关注') > -1) {one.style.display = 'none';}}); return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" + "bF": "pageE.forEach(function (one) {if (one.tagName === 'P' && one.textContent.indexOf('更多相关内容请关注') > -1) {one.style.display = 'none';}}); return fun.src_bF(pageE)" } }, "游民星空 - 专栏文章页": { @@ -1983,7 +1983,7 @@ "replaceE": ".wp-pagenavi" }, "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" + "bF": "return fun.src_bF(pageE)" } }, "低端影视": { @@ -2019,7 +2019,7 @@ "scrollD": 1000 }, "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-src]', 'data-src'])" + "bF": "return fun.src_bF(pageE)" } }, "核桃影院": { @@ -2044,7 +2044,7 @@ "replaceE": ".pagination" }, "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" + "bF": "return fun.src_bF(pageE)" } }, "ZzzFun 动漫": { @@ -2057,7 +2057,7 @@ "scrollD": 1000 }, "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" + "bF": "return fun.src_bF(pageE)" } }, "吐槽弹幕网": { @@ -2122,7 +2122,7 @@ "scrollD": 1000 }, "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" + "bF": "return fun.src_bF(pageE)" } }, "漫岛动漫": { @@ -2136,7 +2136,7 @@ "scrollD": 1000 }, "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" + "bF": "return fun.src_bF(pageE)" } }, "AGE 动漫": { @@ -2726,6 +2726,54 @@ "aF": "let _img=''; for (let i=0;i`;}; document.getElementById('cp_img').insertAdjacentHTML('beforeend', _img);" } }, + "漫画DB": { + "host": "www.manhuadb.com", + "url": "if (fun.indexOF(/^\\/manhua\\/\\d+\\/.+\\.html/)) {if (fun.getCSS('img.img-fluid.show-pic')){fun.getCSS('img.img-fluid.show-pic').style.display = 'none';}; setTimeout(function(){let _img = '', data = document.querySelector('.vg-r-data'), imgDate = JSON.parse(atob(img_data));for (let i = 0; i < imgDate.length; i++) {_img += ``;};document.querySelector('.pjax-container').insertAdjacentHTML('beforeend', _img);},100); return true;}", + "style": ".row.m-0.pt-3.ad_2_wrap, .row.m-0.ad_1_wrap, .pagination.justify-content-center, #left, #right {display: none !important;} .pjax-container>img {min-height: 300px;}", + "history": true, + "pager": { + "nextL": "//ol[@class='links-of-books num_div']//a[@class='active ']/parent::li/following-sibling::li[1]/a", + "pageE": "//body/script[starts-with(text(),'var img_data')]", + "insertP": ["body",3], + "replaceE": ".vg-r-data, ol.links-of-books", + "scriptT": 2, + "interval": 5000, + "scrollD": 2000 + }, + "function": { + "aF": "let _img = '', data = fun.getCSS('.vg-r-data'), imgDate = JSON.parse(atob(img_data));for (let i = 0; i < imgDate.length; i++) {_img += ``;};fun.getCSS('.pjax-container').insertAdjacentHTML('beforeend', _img)" + } + }, + "漫画DB - 分类页": { + "host": ["www.manhuadb.com","www.manhuacat.com","www.maofly.com","www.kanbook.net"], + "url": "/\\/(list|update|search)/", + "blank": 3, + "pager": { + "nextL": "//div[contains(@class, 'pagination')]//a[contains(text(), '下一页') or contains(text(), '下页')]", + "pageE": ".comic-main-section", + "replaceE": ".pagination" + }, + "function": { + "bF": "return fun.src_bF(pageE)" + } + }, + "快岸漫画": { + "host": "www.kanbook.net", + "url": "if (fun.indexOF(/^\\/\\d+\\/\\d+\\/\\d+/)) {if (fun.getCSS('img.img-fluid')){fun.getCSS('img.img-fluid').style.display = 'none';}; setTimeout(function(){let _img = '';for (let i = 0; i < imagesUrlArr.length; i++) {_img += ``;};document.querySelector('.content-wrapper').insertAdjacentHTML('beforeend', _img);},100); return true;}", + "style": ".pagination.justify-content-center, #left, #right, p[id^='page_c_'] {display: none !important;} .content-wrapper>img {min-height: 300px;}", + "history": true, + "pager": { + "nextL": "js; if (next_part != '') return (location.origin + next_part)", + "pageE": "//body/script[not(@src)]", + "insertP": ["body",3], + "scriptT": 2, + "interval": 5000, + "scrollD": 2000 + }, + "function": { + "aF": "let _img = '';for (let i = 0; i < imagesUrlArr.length; i++) {_img += ``;};fun.getCSS('.content-wrapper').insertAdjacentHTML('beforeend', _img);" + } + }, "拷贝漫画": { "host": "/copymanga\\./", "url": "/\\/chapter\\//", @@ -3139,7 +3187,7 @@ "scrollD": 1000 }, "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" + "bF": "return fun.src_bF(pageE)" } }, "哔哩轻小说 - 全本": { @@ -3152,7 +3200,7 @@ "scrollD": 1000 }, "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" + "bF": "return fun.src_bF(pageE)" } }, "哔哩轻小说 - 手机版": { @@ -3176,7 +3224,7 @@ "scrollD": 1000 }, "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" + "bF": "return fun.src_bF(pageE)" } }, "AO3 - 列表页/搜索页": { @@ -3334,7 +3382,7 @@ "replaceE": "ul.pagination" }, "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-original]', 'data-original'])" + "bF": "return fun.src_bF(pageE)" } }, "六音软件": { @@ -3450,7 +3498,7 @@ "scrollD": 1200 }, "function": { - "bF": "return fun.src_bF(pageE, [0, 'img[data-src]', 'data-src'])" + "bF": "return fun.src_bF(pageE)" } }, "悪魔の小站": { From 466423c0c5f9196429198feed5b9145acd569084 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 12 Apr 2022 22:26:37 +0800 Subject: [PATCH 0016/1130] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E7=9B=98?= =?UTF-8?q?=E5=8F=8B=E7=A4=BE=E5=8C=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 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index 56d961544..c8d9054b7 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -1010,6 +1010,25 @@ "replaceE": ".Pager" } }, + "盘友社区 - 帖子内": { + "host": "www.panyoubbs.com", + "url": "/^\\/thread\\//", + "thread": true, + "pager": { + "nextL": ".active+li:not(.disabled)>a", + "pageE": ".thread-list", + "replaceE": ".page" + } + }, + "盘友社区": { + "host": "www.panyoubbs.com", + "pager": { + "nextL": ".active+li:not(.disabled)>a", + "pageE": ".list", + "replaceE": ".page", + "scrollD": 2000 + } + }, "CADTutor - 列表页": { "host": "www.cadtutor.net", "url": "/\\/forum\\/forum\\//", From cbde023a751da14301a0f43f6edb6e8dea43b0bf Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Wed, 13 Apr 2022 10:31:40 +0800 Subject: [PATCH 0017/1130] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20[=E6=BC=AB?= =?UTF-8?q?=E6=9C=AC]=E3=80=81[=E9=AC=BC=E7=BD=97=E4=B8=BD=E6=BC=AB?= =?UTF-8?q?=E7=94=BB]=E3=80=81[anime1]=20=E8=A7=84=E5=88=99(=E5=B9=B6?= =?UTF-8?q?=E7=A7=BB=E8=87=B3=E5=A4=96=E7=BD=AE=E7=BF=BB=E9=A1=B5=E8=A7=84?= =?UTF-8?q?=E5=88=99)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 29 +---------------------- other/Autopage/rules.json | 50 ++++++++++++++++++++++++++++----------- 2 files changed, 37 insertions(+), 42 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 0d80019c8..5ff93111a 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3,7 +3,7 @@ // @name:zh-CN 自动无缝翻页 // @name:zh-TW 自動無縫翻頁 // @name:en AutoPager -// @version 5.7.5 +// @version 5.7.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...) 等網站~ @@ -819,33 +819,6 @@ function: { scrollD: 1000 } }, // B 站(Bilibili) - 搜索页 - 专栏 - anime1: { - host: 'anime1.me', - url: ()=> {if (indexOF('s=', 's')) {curSite = DBSite.wp_article;} else if (lp == '/') {curSite = DBSite.anime1;}}, - history: false, - pager: { - type: 4, - nextL: ()=> { // 获取下一页内容(叠加) - let next = getCSS('a.paginate_button.next'); - if (next && next.className.indexOf('disabled') === -1) { - let oldList = getCSS('#table-list > tbody').innerHTML; - if (oldList) {next.click(); pageNum.now = pageNum._now + 1; getCSS('#table-list > tbody').insertAdjacentHTML('afterbegin', oldList);} - } - }, - interval: 500, - scrollD: 800 - } - }, // Anime1 - manben: { - host: 'www.manben.com', - url: ()=> {if (indexOF(/\/m\d+/)) { - if (getCookie('showtype') != '2') { - document.cookie='showtype=2; expires=Thu, 18 Dec 2031 12:00:00 GMT; path=/'; // 写入 Cookie 开启 [垂直阅读] 模式 - location.reload(); // 刷新网页 - } - curSite = DBSite.mhxqiu; - }} - }, // 漫本 cartoonmad: { host: ['www.cartoonmad.com','www.cartoonmad.cc'], url: ()=> {if (indexOF('/comic/')) { diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index c8d9054b7..0feede72a 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -2200,6 +2200,19 @@ "replaceE": ".pagelist" } }, + "anime1": { + "host": "anime1.me", + "url": "/^\\/$/", + "hiddenPN": true, + "history": false, + "blank": 3, + "pager": { + "nextL": "js; let next = fun.getCSS('a.paginate_button.next');if (next && next.className.indexOf('disabled') === -1) {let oldList = fun.getCSS('#table-list>tbody').innerHTML;if (oldList) {next.click(); fun.getCSS('#table-list>tbody').insertAdjacentHTML('afterbegin', oldList);}}", + "pageE": "#table-list>tbody", + "interval": 500, + "scrollD": 800 + } + }, "初音社": { "host": "www.mikuclub.cc", "url": "/^\\/[a-z]/", @@ -2707,6 +2720,24 @@ "replaceE": ".nav-links" } }, + "漫本": { + "host": "www.manben.com", + "url": "if (fun.indexOF(/^\\/m\\d+/)) {if (fun.getCookie('showtype') != '2') {document.cookie='showtype=2; expires=Thu, 18 Dec 2031 12:00:00 GMT; path=/';location.reload();}else{return true;}}", + "style": ".main{height: auto !important;overflow-y: hidden !important;} #comicContain img {min-height: 300px;} .comic-contain li{margin: 0 !important;} img.imgFloat_1, img.imgFloat_2, span.comic-ft {display: none !important;}", + "history": true, + "pager": { + "nextL": "#mainControlNext", + "pageE": "//body/script[starts-with(text(),'eval(')]", + "insertP": ["body",3], + "replaceE": ".main_control", + "scriptT": 2, + "interval": 5000, + "scrollD": 2000 + }, + "function": { + "aF": "let _img=''; for (let i=0;i`;}; document.getElementById('comicContain').insertAdjacentHTML('beforeend', _img);" + } + }, "漫画皮": { "host": "www.manhuapi.com", "url": "/\\/chapter\\//", @@ -2894,23 +2925,14 @@ }, "鬼罗丽漫画": { "host": ["www.gllmh8.com","m.gllmh8.com"], - "url": "/\\/\\d+(_\\d+)?\\.html$/", - "style": ".article-content img {visibility: visible; opacity: 1;} .swiper-container {display: none !important;}", + "url": "/^\\/./", + "style": ".article-content img {visibility: visible; opacity: 1;display: block;} #newsArticle img {margin-bottom: -1px;} .swiper-container {display: none !important;}", "history": true, "pager": { + "type": 3, "nextL": "li.thisclass+li>a", - "pageE": ".article-content p, #newsArticle p", - "replaceE": ".pagination, .pages", - "scrollD": 5500 - } - }, - "鬼罗丽漫画 - 分类页": { - "host": "www.gllmh8.com", - "pager": { - "nextL": "li.thisclass+li>a", - "pageE": ".listl>ul>li", - "replaceE": ".page", - "scrollD": 2000 + "pageE": ".article-content img, #newsArticle img, .listl>ul, ul.news_list_1", + "replaceE": ".pagination, .pages, .page" } }, "起点中文": { From 3b6df2bd4338ed8588142f0a0fcb2ea51b86d72e Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Wed, 13 Apr 2022 16:21:57 +0800 Subject: [PATCH 0018/1130] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[LoversLab]=20?= =?UTF-8?q?=E6=94=AF=E6=8C=81;=20=E6=9B=B4=E6=96=B0=20[=E5=8A=A8=E6=BC=AB?= =?UTF-8?q?=E7=8B=82]=E3=80=81[=E5=8A=A8=E6=BC=AB=E6=88=8F=E8=AF=B4]=20?= =?UTF-8?q?=E8=A7=84=E5=88=99(=E5=B9=B6=E7=A7=BB=E8=87=B3=E5=A4=96?= =?UTF-8?q?=E7=BD=AE=E7=BF=BB=E9=A1=B5=E8=A7=84=E5=88=99)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 87 +-------------------------------------- other/Autopage/rules.json | 79 +++++++++++++++++++++++++---------- 2 files changed, 60 insertions(+), 106 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 5ff93111a..4ec41cd72 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3,7 +3,7 @@ // @name:zh-CN 自动无缝翻页 // @name:zh-TW 自動無縫翻頁 // @name:en AutoPager -// @version 5.7.6 +// @version 5.7.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...) 等網站~ @@ -819,32 +819,6 @@ function: { scrollD: 1000 } }, // B 站(Bilibili) - 搜索页 - 专栏 - cartoonmad: { - host: ['www.cartoonmad.com','www.cartoonmad.cc'], - url: ()=> {if (indexOF('/comic/')) { - getCSS('body > table > tbody > tr:nth-child(4) > td > table > tbody > tr:first-child > td:first-child > a').href = 'javascript:void(0);'; // 清理图片上的链接 - curSite = DBSite.cartoonmad; - } else if (lp != '/') { - curSite = DBSite.cartoonmad_list; - }}, - style: 'body > table > tbody > tr:nth-child(4) > td > table > tbody > tr:first-child > td:not(:first-child) {display: none !important;} body > table > tbody > tr:nth-child(4) > td > table > tbody > tr:first-child > td:first-child img {max-width: 100%;height: auto;display: block !important;margin: 0 auto !important;}', - pager: { - nextL: cartoonmad_nextL, - pageE: 'body > table > tbody > tr:nth-child(4) > td > table > tbody > tr:first-child > td:first-child img', - replaceE: 'body > table > tbody > tr:nth-child(2), body > table > tbody > tr:nth-child(5)', - interval: 0, - scrollD: 2000 - } - }, // 动漫狂 - cartoonmad_list: { - blank: 1, - pager: { - nextL: '//a[@class="pages"][contains(text(), "下一頁")]', - pageE: 'td[background="/image/content_box4.gif"]+td > table > tbody > tr', - replaceE: '//a[@class="pages"]/parent::td/parent::tr | //font[contains(text(), "目前在第")]', - scrollD: 1000 - } - }, // 动漫狂 - 分类/搜索页 manhuacat: { host: ['www.manhuacat.com', 'www.maofly.com'], url: ()=> {if (indexOF(/\/manga\/\d+\/.+\.html/)) { @@ -1062,37 +1036,6 @@ function: { scrollD: 1000 } }, //动漫之家 - 日漫 - 最新更新 - acgn: { - host: 'comic.acgn.cc', - url: ()=> { - if (indexOF('/view-')) { - curSite = DBSite.acgn; - acgn_aF(); - } else if (indexOF('/cate-') || indexOF('/pinyin-')) { - curSite = DBSite.acgn_list; - } - }, - style: '.img1 {cursor: initial !important;}', - pager: { - nextL: '#next_chapter', - pageE: '.pic[_src]', - replaceE: '[class^="display_"]', - interval: 2000, - scrollD: 2000 - }, - function: { - aF: acgn_aF - } - }, // 动漫戏说 - acgn_list: { - blank: 1, - pager: { - nextL: 'a[rel="next"]', - pageE: 'ul#display > li', - replaceE: '#pagination', - scrollD: 1000 - } - }, // 动漫戏说 - 分类页 ykmh: { host: 'www.ykmh.com', url: ()=> {if (indexOF(/\/\d+\.html/)) { @@ -1819,23 +1762,6 @@ function: { } - // [漫画狂] 获取下一页地址 - function cartoonmad_nextL() { - let url = getXpath('//a[@class="pages"][contains(text(),"下一頁")]'); - if (url) { - if (url.getAttribute('href') === 'thend.asp') { - url = getXpath('//a[@class="pages"][contains(string(),"下一話")]') - if (url) return url.href; - pausePage = false; - GM_notification({text: `注意:该网站早期漫画章节,因为网站自身问题而无法翻至下一话(仅限于显示为 [第 X 卷]/[下一卷] 的)。\n因此需要手动去 [目录页] 进入下一卷!`, timeout: 10000}); - } else { - return url.href; - } - } - return ''; - } - - // [漫画猫] 初始化(显示本话所以图片) function manhuacat_init() { let _img = ''; @@ -2125,15 +2051,6 @@ function: { } - // [动漫戏说] 插入后函数(加载图片) - function acgn_aF() { - let old = getAllCSS('.pic[_src][id]'), _img = ''; - if (old.length > 0) { - for (let now of old) {now.outerHTML = `
`;} - } - } - - // [漫画星球] 插入数据 function mhxqiu_insertE(pageE, type) { if (!pageE) return @@ -2784,7 +2701,7 @@ function: { } } } else { // 获取主体元素失败后,尝试重新获取 - console.log(curSite.pager.pageE, pageE, curSite.pager.insertP, toE) + console.log(curSite.pager.pageE, pageE, curSite.pager.insertP, toE, response) if (curSite.retry) { console.warn('[自动无缝翻页] 获取主体元素失败,尝试重新获取...') setTimeout(function(){curSite.pageUrl = '';}, curSite.retry) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index 0feede72a..6aa50ea03 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -1029,38 +1029,28 @@ "scrollD": 2000 } }, - "CADTutor - 列表页": { - "host": "www.cadtutor.net", - "url": "/\\/forum\\/forum\\//", + "CADTutor/LoversLab": { + "host": ["www.cadtutor.net","www.loverslab.com"], + "url": "/\\/(forum\\/\\d)|search/", "pager": { - "nextL": "a[rel='next']", - "pageE": "ol.ipsDataList>li:not([data-rowid])~li", + "nextL": "li.ipsPagination_next:not(.ipsPagination_inactive)>a", + "pageE": "ol.ipsDataList>li[data-rowid], ol.ipsStream>li", "replaceE": "ul.ipsPagination", "scrollD": 2000 } }, - "CADTutor - 帖子内": { - "host": "www.cadtutor.net", - "url": "/\\/forum\\/topic\\//", + "CADTutor/LoversLab - 帖子内": { + "host": ["www.cadtutor.net","www.loverslab.com"], + "url": "/\\/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", + "nextL": "li.ipsPagination_next:not(.ipsPagination_inactive)>a", + "pageE": "#elPostFeed>form>*:not(input):not(div)", "replaceE": "ul.ipsPagination", "scrollD": 2000 } }, - "TheSwamp - 列表页": { + "TheSwamp": { "host": "www.theswamp.org", "url": "/board=/", "pager": { @@ -2738,6 +2728,27 @@ "aF": "let _img=''; for (let i=0;i`;}; document.getElementById('comicContain').insertAdjacentHTML('beforeend', _img);" } }, + "动漫狂": { + "host": "www.cartoonmad.cc", + "style": "body > table > tbody > tr:nth-child(4) > td > table > tbody > tr:first-child > td:not(:first-child) {display: none !important;} body > table > tbody > tr:nth-child(4) > td > table > tbody > tr:first-child > td:first-child img {max-width: 100%;height: auto;display: block !important;margin: 0 auto !important;}", + "pager": { + "nextL": "js; let next=fun.getXpath(\"//a[@class='pages'][contains(text(),'下一頁')][not(@href='thend.asp')]\");if (next) {return next.href;} else {next=fun.getXpath(\"//a[@class='pages'][contains(string(),'下一話')]\");if (next) return next.href;}", + "pageE": "img[onload]", + "replaceE": "body > table > tbody > tr:nth-child(2), body > table > tbody > tr:nth-child(5)", + "interval": 0, + "scrollD": 2000 + } + }, + "动漫狂 - 分类/搜索页": { + "host": "www.cartoonmad.com", + "url": "/^\\/./", + "blank": 3, + "pager": { + "nextL": "//a[@class='pages'][contains(text(), '下一頁')]", + "pageE": "td[background='/image/content_box4.gif']+td > table > tbody > tr", + "replaceE": "//a[@class='pages']/parent::td/parent::tr | //font[contains(text(), '目前在第')]" + } + }, "漫画皮": { "host": "www.manhuapi.com", "url": "/\\/chapter\\//", @@ -2824,6 +2835,32 @@ "aF": "let _img = '';for (let i = 0; i < imagesUrlArr.length; i++) {_img += ``;};fun.getCSS('.content-wrapper').insertAdjacentHTML('beforeend', _img);" } }, + "动漫戏说": { + "host": "comic.acgn.cc", + "url": "if(fun.indexOF('/view-')){fun.getAllCSS('.pic[_src][id]').forEach(e => {e.outerHTML = `
`;}); return true;}", + "style": ".img1 {cursor: initial !important;} .btn_wrap, #ss-toolbar {display: none !important;}", + "pager": { + "nextL": "#next_chapter", + "pageE": ".pic[_src]", + "replaceE": "[class^='display_']", + "interval": 5000, + "scrollD": 2000 + }, + "function": { + "aF": "fun.getAllCSS('.pic[_src][id]').forEach(e => {e.outerHTML = `
`;});" + } + }, + "动漫戏说 - 分类页": { + "host": "comic.acgn.cc", + "url": "/^\\/(cate|pinyin)-/", + "blank": 3, + "pager": { + "nextL": "a[rel='next']", + "pageE": "ul#display > li", + "replaceE": "#pagination", + "scrollD": 1000 + } + }, "拷贝漫画": { "host": "/copymanga\\./", "url": "/\\/chapter\\//", From 14e28a7f1d8775f4ccb8a9023a46cb055c4fd3c6 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Thu, 14 Apr 2022 00:25:19 +0800 Subject: [PATCH 0019/1130] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[EPORNER]=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 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index 6aa50ea03..703234438 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -4805,6 +4805,21 @@ "scrollD": 2500 } }, + "EPORNER": { + "host": "www.eporner.com", + "url": "return (!fun.indexOF('/video-'))", + "style": "#mainBlogPosts, .footer-text, footer {display: none !important;}", + "blank": 3, + "pager": { + "nextL": ".nmnext", + "pageE": "#vidresults>[id], script[src*='/ajax']", + "replaceE": ".numlist2", + "scriptT": 2 + }, + "function": { + "bF": "return fun.src_bF(pageE)" + } + }, "t66y - 帖子列表": { "host": "www.t66y.com", "url": "/^\\/thread/", From 2ccf37f0053ef0c0b24e3e41685911211991b630 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Thu, 14 Apr 2022 11:34:46 +0800 Subject: [PATCH 0020/1130] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[flysheep]?= =?UTF-8?q?=E3=80=81[=E5=8A=A8=E6=BC=AB=E4=B9=8B=E5=AE=B6=20-=20=E6=97=A5?= =?UTF-8?q?=E6=BC=AB=20-=20=E5=88=86=E7=B1=BB=E9=A1=B5]=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81;=20=E6=9B=B4=E6=96=B0=20[=E5=8A=A8=E6=BC=AB=E4=B9=8B?= =?UTF-8?q?=E5=AE=B6]=E3=80=81[=E5=8A=A8=E6=BC=AB=E4=B9=8B=E5=AE=B6=20-=20?= =?UTF-8?q?=E6=97=A5=E6=BC=AB]=E3=80=81[=E6=BC=AB=E7=94=BB=E6=98=9F?= =?UTF-8?q?=E7=90=83]=E3=80=81[=E9=A3=8E=E4=B9=8B=E5=8A=A8=E6=BC=AB]=20?= =?UTF-8?q?=E8=A7=84=E5=88=99(=E5=B9=B6=E7=A7=BB=E8=87=B3=E5=A4=96?= =?UTF-8?q?=E7=BD=AE=E7=BF=BB=E9=A1=B5=E8=A7=84=E5=88=99)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 213 +---------------------------- other/Autopage/ruleUpdateTime.json | 2 +- other/Autopage/rules.json | 164 ++++++++++++++++++---- 3 files changed, 141 insertions(+), 238 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 4ec41cd72..d65538b2a 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3,7 +3,7 @@ // @name:zh-CN 自动无缝翻页 // @name:zh-TW 自動無縫翻頁 // @name:en AutoPager -// @version 5.7.7 +// @version 5.7.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...) 等網站~ @@ -954,88 +954,6 @@ function: { scrollD: 3000 } }, // HiComic (嗨漫画) - dmzj: { - host: 'www.dmzj.com', - url: ()=> {if (indexOF('/view/')) { - if (getCookie('display_mode') != '1') { // 强制开启 [上下滚动阅读] 模式 - document.cookie='display_mode=1; expires=Thu, 18 Dec 2031 12:00:00 GMT; path=/'; // 写入 Cookie 开启 [上下滚动阅读] 模式 - location.reload(); // 刷新网页 - } - setTimeout(function() {dmzj_init('.comic_wraCon > a > img')}, 100); - curSite = DBSite.dmzj; - } else if (indexOF('/category') || indexOF('/update')) { - curSite = DBSite.dmzj_list; - } else if (indexOF('/rank')) { - curSite = DBSite.dmzj_rank; - }}, - style: 'p.mh_curr_page, .btmBtnBox, .float_code, #floatCode {display: none !important;} .comic_wraCon > img {display: block !important;margin: 0 auto !important; border: none !important; padding: 0 !important; max-width: 99% !important; height: auto !important;}', // 隐藏中间的页数信息 - pager: { - type: 4, - nextL: 'span.next > a', - insertP: ['.comic_wraCon', 3], - insertE: dmzj_insertE, - replaceE: '.wrap_last_mid, .wrap_last_head', - interval: 2000, - scrollD: 3000 - } - }, // 动漫之家 - 原创 - dmzj_list: { - style: '.wrap_mhlist_l.con_left, .wrap_list {height: auto!important;}', - blank: 1, - pager: { - nextL: 'a.pg_next', - pageE: 'ul.list_con_li > li', - replaceE: '.page', - scrollD: 1000 - } - }, // 动漫之家 - 原创 - 分类页 - dmzj_rank: { - style: '.wrap_mhlist_l.con_left {height: auto!important;}', - pager: { - nextL: 'a.pg_next', - pageE: '.ph_r_con_li > div:not(.ad_column)', - replaceE: '.page', - scrollD: 1000 - } - }, // 动漫之家 - 原创 - 排行榜 - dmzj_manhua: { - host: 'manhua.dmzj.com', - url: ()=> {if (indexOF(/\/\d+\.shtml/)) { - let chapterScroll = getCSS('#qiehuan_txt') // 强制为 [上下滚动阅读] 模式 - if (chapterScroll && chapterScroll.textContent === '切换到上下滚动阅读') {chapterScroll.click();} - setTimeout(function() {dmzj_init('#center_box > .inner_img img[src]')}, 100); - curSite = DBSite.dmzj_manhua; - /*} else if (indexOF('/tags/')) { - curSite = DBSite.dmzj_manhua_list;*/ - } else if (indexOF('/update')) { - curSite = DBSite.dmzj_manhua_update; - }}, - style: 'p.curr_page, .btmBtnBox, .float_code, #floatCode {display: none !important;} #center_box > img {display: block !important;margin: 0 auto !important; border: none !important; padding: 0 !important; max-width: 99% !important; height: auto !important;}', // 隐藏中间的页数信息 - pager: { - type: 4, - nextL: '#next_chapter', - insertP: ['#center_box', 3], - insertE: dmzj_manhua_insertE, - replaceE: '.display_graybg', - interval: 2000, - scrollD: 3000 - } - }, // 动漫之家 - 日漫 - /*dmzj_manhua_list: { - pager: { - nextL: ()=> getNextUPN(/(?<=-)\d+(?=\.shtml)/, /-\d+\.shtml/, '-', '.shtml', '2', getCSS('#topage > option:last-child').value), - pageE: '#search_list_div ul' - } - },*/ // 动漫之家 - 日漫 - 分类页 - dmzj_manhua_update: { - blank: 1, - pager: { - nextL: '//div[@class="pages"]/a[contains(text(), "下一页")]', - pageE: '.newpic_content > *:not(.pages)', - replaceE: '.pages', - scrollD: 1000 - } - }, //动漫之家 - 日漫 - 最新更新 ykmh: { host: 'www.ykmh.com', url: ()=> {if (indexOF(/\/\d+\.html/)) { @@ -1070,48 +988,6 @@ function: { scrollD: 1000 } }, // 优酷漫画 - 分类页 - mhxqiu: { - host: [/\.mhxqiu/,/www\.sixmh\d\./], - url: ()=> {if (indexOF(/\/\d+\.html/)) { // 阅读页 - curSite = DBSite.mhxqiu; - } else if (indexOF(/\/\d+\/$/)) { // 目录页 - setTimeout(function(){if (getCSS('#zhankai')) getCSS('#zhankai').click();}, 500) - } else if (indexOF(/\/(sort|rank)\//)) { // 分类页 - curSite = DBSite.mhxqiu_list; - }}, - style: '.imgFloat_1, .imgFloat_2, .main_control, span.comic-ft {display: none !important;} html, body, #mainView {height: auto !important;} body.view .main ul.comic-contain li{margin:0 auto !important;} .comic-contain .loaded{box-shadow: none !important;}', - pager: { - type: 4, - nextL: '#mainControlNext', - insertP: ['#comicContain', 3], - insertE: mhxqiu_insertE, - replaceE: '.main_control, h1.chaptername_title, span.title-comicHeading', - interval: 4000, - scrollD: 3000 - } - }, // 漫画星球 - mhxqiu_list: { - blank: 1, - pager: { - nextL: '//div[@class="NewPages"]//a[contains(text(), "下一页")]', - pageE: '.cy_list_mh > ul', - replaceE: '.NewPages', - scrollD: 1000 - } - }, // 漫画星球 - 分类页 - fffdm: { - host: 'manhua.fffdm.com', - url: ()=> {if (location.pathname.split('/').length === 4) {curSite = DBSite.fffdm;}}, - style: '#footer, #header {display: none !important;} #mhimg0 img {display: block !important;margin: 0 auto !important;}', - pager: { - type: 4, - nextL: '//a[contains(text(), "下一页") or contains(text(), "下一頁") or contains(text(), "下一话") or contains(text(), "下一話")]', - insertP: ['#mhimg0', 3], - insertE: fffdm_insertE, - replaceE: '.navigation, #weizhi, h1', - scrollD: 2000 - } - }, // 风之动漫 leyuman: { host: 'www.leyuman.com', url: ()=> {if (indexOF(/\/comic\/\d+\/\d+\.html/)) { @@ -1969,53 +1845,6 @@ function: { } - // [动漫之家] 初始化(调整本话其余图片) - function dmzj_init(css) { - let _img = ''; - getAllCSS(css).forEach(function (one) {_img += ``;}) - getOne(curSite.pager.insertP[0]).innerHTML = _img; - } - // [动漫之家] 插入数据 - function dmzj_insertE(pageE, type) { - if (!pageE) return - // 插入并运行