From 5d5d7e2fa8b9612fd4b7aca63fadfcb60170233d Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sun, 4 Jun 2023 11:56:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20[=E5=8A=A8=E6=BC=AB?= =?UTF-8?q?=E5=B1=8B]=20=E8=A7=84=E5=88=99=E5=B9=B6=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E8=87=B3=E5=A4=96=E7=BD=AE=E7=BF=BB=E9=A1=B5=E8=A7=84=E5=88=99?= =?UTF-8?q?=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 61 +-------------------------------------- other/Autopage/rules.json | 25 ++++++++++++++++ 2 files changed, 26 insertions(+), 60 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index db9c494..3e2f343 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3,7 +3,7 @@ // @name:zh-CN 自动无缝翻页 // @name:zh-TW 自動無縫翻頁 // @name:en AutoPager -// @version 6.4.27 +// @version 6.4.28 // @author X.I.U // @description ⭐无缝加载 下一页内容 至网页底部(类似瀑布流)⭐,目前支持:【所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、NexusPHP...」论坛】【百度、谷歌(Google)、必应(Bing)、搜狗、微信、360、Yahoo、Yandex 等搜索引擎...】、贴吧、豆瓣、知乎、B 站(bilibili)、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...) 等網站~ @@ -1048,26 +1048,6 @@ function: { scrollD: 800 } }, // Mangabz 漫画 - 分类/搜索页 - dm5: { - host: 'www.dm5.com', - url: ()=> {if (indexOF(/\/m\d+/)) { - setTimeout(mangabz_init, 1500); - curSite = DBSite.dm5; - } else if (indexOF('/manga-list') || lp == '/search' || getCSS('.box-body > ul.mh-list > li')) { - curSite = DBSite.mangabz_list; - } else if (getCSS('.detail-more')) { - getCSS('.detail-more').click(); - }}, - style: '.view-paging > .container, .view-comment {display: none !important;} .rightToolBar {opacity: 0.3 !important;} #cp_img > img, #barChapter > img{display: block !important;margin: 0 auto !important; max-width: 99% !important; width: auto !important; height: auto !important;} body {overflow: auto !important;}', - pager: { - type: 4, - nextL: dm5_nextL, - insertP: ['#barChapter,#cp_img', 3], - insertE: dm5_insertE, - replaceE: '.view-paging > .container, .rightToolBar', - interval: 500 - } - }, // 动漫屋 xmanhua: { host: ['xmanhua.com', 'www.xmanhua.com'], url: ()=> {if (indexOF(/\/m\d+/)) { @@ -1721,45 +1701,6 @@ function: { } - // [动漫屋] 获取下一页地址 - function dm5_nextL() { - var url = ''; - if (DM5_PAGE === DM5_IMAGE_COUNT) { // 下一话 - if (getNextE('//div[@class="view-paging"]//a[text()="下一章"]')) getPageE_(curSite.pageUrl); // 访问下一话 URL 获取 - } else { // 下一页 - if (!mkey) var mkey = ''; - url = location.origin + location.pathname + 'chapterfun.ashx' + `?cid=${DM5_CID}&page=${DM5_PAGE + 1}&key=${(mkey)}&language=1>k=6&_cid=${DM5_CID}&_mid=${DM5_MID}&_dt=${DM5_VIEWSIGN_DT}&_sign=${DM5_VIEWSIGN}` - if (url === curSite.pageUrl) return - curSite.pageUrl = url - //console.log(curSite.pageUrl) - getPageE_(curSite.pageUrl, 'text', 'GET', '', 'Next'); // 访问下一页 URL 获取 - } - } - // [动漫屋] 插入数据 - function dm5_insertE(pageE, type) { - if (pageE) { - if (type === 'Next') { // 下一页 - let imgArr = eval(pageE), - _img = ''; - for (let now of imgArr) {_img += ``;} - if (_img) { - getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中 - DM5_PAGE += imgArr.length; - addHistory(pageE, document.title, location.origin + DM5_CURL.substring(0, DM5_CURL.length - 1) + '-p' + DM5_PAGE + '/'); - } - } else { // 下一话 - // 插入