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 0001/1123] =?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 0002/1123] =?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 0003/1123] =?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 0004/1123] =?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 0005/1123] =?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 0006/1123] =?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 0007/1123] =?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 0008/1123] =?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 0009/1123] =?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 0010/1123] =?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 0011/1123] =?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 0012/1123] =?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 0013/1123] =?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 - // 插入并运行