From 00f892e9244622033cf4838f276c18a4828f6ef5 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 12 Oct 2021 23:43:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E7=AC=94=E8=B6=A3?= =?UTF-8?q?=E9=98=81]=20=E6=94=AF=E6=8C=81;=20=E6=9B=B4=E6=96=B0=20[?= =?UTF-8?q?=E6=8B=B7=E8=B4=9D=E6=BC=AB=E7=94=BB]=20=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 144 +++++++++++++++++++++-------------------------- 1 file changed, 64 insertions(+), 80 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index ac15377..090da1d 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.9.2 +// @version 2.9.3 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX/XIU/D8/Begin(WP主题)」的网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、B 站(Bilibili)、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、FitGirl、片库、茶杯狐、NO视频、低端影视、奈菲影视、91美剧网、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画DB、HiComic、动漫之家、古风漫画网、PubMed、wikiHow、GreasyFork、Github、StackOverflow(以上仅一部分,更多的写不下了... // @match *://*/* @@ -2186,21 +2186,23 @@ scrollDelta: 900 } }, // 宝书网- 手机版 - _23wx: { + bqg: { SiteTypeID: 0, - host: 'www.23wx.cc', - functionStart: function() {if (/\d+\/\d+\.html/.test(location.pathname)) {curSite = DBSite._23wx;}}, + host: ['www.23wx.cc', 'www.ibswtan.com'], + functionStart: function() {if (/\d+\/\d+\.html/.test(location.pathname)) { + curSite = DBSite.bqg; + if (location.host === 'www.23wx.cc') curSite.pager.mimeType = 'text/html; charset=gbk'; + }}, pager: { type: 1, nextLink: '//div[@class="bottem2"]/a[contains(text(), "下一章")]', pageElement: 'css;#content', insertPosition: ['css;#content', 5], - replaceE: 'css;.bottem2, head > title, .bookname > h1', - mimeType: 'text/html; charset=gbk', + replaceE: 'css;.bottem1, .bottem2, .bookname > h1, head > title', history: true, scrollDelta: 1500 } - }, // 顶点小说 + }, // 笔趣阁 + 顶点小说 xineyby: { SiteTypeID: 0, host: 'www.xineyby.com', @@ -2548,14 +2550,13 @@ } else if (location.pathname.indexOf('/comics') > -1) { curSite = DBSite.copymanga_list; }}, - insStyle: '.upMember, .comicContainerAds, .footer {display: none !important;}', + iframe: true, + insStyle: '.upMember, .comicContainerAds, .footer, #Autopage_number {display: none !important;}', pager: { type: 4, nextLink: copymanga_functionNext, - insertPosition: ['css;ul.comicContent-image-list > li:first-child', 1], - insertElement: copymanga_insertElement, - replaceE: 'css;.disposableData, .disposablePass, .disposableUrlPrefix, .disposableUrlSuffix, .footer, h4.header, title', - intervals: 5000, + pageElement: 'css;ul.comicContent-list > li', + insertPosition: ['css;ul.comicContent-list', 2], scrollDelta: 3000 } }, // 拷贝漫画 @@ -2590,8 +2591,8 @@ nextLink: mhxqiu_functionNext, insertPosition: ['css;#comicContain', 3], insertElement: mhxqiu_insertElement, - replaceE: 'css;#mainControlNext, h1.chaptername_title, title', - intervals: 5000, + replaceE: 'css;.main_control, h1.chaptername_title, head > title', + intervals: 4000, scrollDelta: 3000 } }, // 漫画星球 @@ -4764,9 +4765,7 @@ function dmzj_insertElement(pageElems, type) { if (!pageElems) return // 插入并运行