From 774fdee97f33f077cef1802f90e79439bf2f6504 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Fri, 18 Feb 2022 11:05:03 +0800 Subject: [PATCH 0001/1426] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[DlAndroid]=20?= =?UTF-8?q?=E6=94=AF=E6=8C=81;=20=E4=BC=98=E5=8C=96=20[=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95]=20=E5=8A=9F=E8=83=BD=20(?= =?UTF-8?q?=E9=92=88=E5=AF=B9=E5=B7=B2=E7=BB=8F=E8=87=AA=E5=B8=A6=E8=AF=A5?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=9A=84=E7=BD=91=E7=AB=99)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 1192a0c74..36dfaeff3 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3,7 +3,7 @@ // @name:en AutoPager // @name:zh-CN 自动无缝翻页 // @name:zh-TW 自動無縫翻頁 -// @version 4.7.2 +// @version 4.7.3 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流,追求小而精),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、NexusPHP、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、煎蛋网、糗事百科、龙的天空、起点中文、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了... // @description:en Seamlessly stitch next page content (waterfall) @@ -4294,6 +4294,21 @@ function: { bF: lrepacks_bF } }, + dlandroid: { + host: 'dlandroid.com', + functionS: function() {if (indexOF('/cat/') || (lp === '/' && indexOF('?s=', 's'))) curSite = DBSite.dlandroid;}, + pager: { + type: 1, + nextL: 'css;a.next.page-numbers', + pageE: 'css;div.post', + replaceE: 'css;.navigation', + scrollD: 1500 + }, + function: { + bF: src_bF, + pF: [0, 'img[data-src]', 'data-src'] + } + }, // DlAndroid winhelponline: { host: 'www.winhelponline.com', functionS: function() {if (lp == '/blog/') {curSite = DBSite.winhelponline;}}, @@ -7609,7 +7624,8 @@ function: { url = url || curSite.pageUrl; window.top.document.title = title; window.top.document.xiu_nowUrl = curSite.pageUrl; - window.top.history.pushState('xiu_history', title, url); + // 对于自带类似功能 或者覆盖了 history 原生函数的,则跳过 + if (window.top.history.toString() === '[object History]') window.top.history.pushState('xiu_history', title, url); } // 插入