From 0e00ee2b1ca4716726c52fad8030f6b5b7da4086 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 9 Nov 2021 15:16:35 +0800 Subject: [PATCH 0001/1678] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20[=E7=99=BE?= =?UTF-8?q?=E5=BA=A6=E8=B4=B4=E5=90=A7=20-=20=E5=B8=96=E5=AD=90=E5=86=85]?= =?UTF-8?q?=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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index ff97101af..228fec161 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 3.3.3 +// @version 3.3.4 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、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、动漫之家、古风漫画网、PubMed、wikiHow、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了... // @match *://*/* @@ -549,7 +549,7 @@ functionStart: function() {if (location.pathname === '/f') { baidu_tieba_1(); // 右侧悬浮发帖按钮点击事件(解决自动翻页导致无法发帖的问题) curSite = DBSite.baidu_tieba; - } else if (location.pathname.indexOf('/p/') > -1) { + } else if (location.pathname.indexOf('/p/') > -1 && GM_getValue('menu_discuz_thread_page')) { curSite = DBSite.baidu_tieba_post; } else if (location.pathname === '/f/search/res') { curSite = DBSite.baidu_tieba_search; @@ -571,7 +571,7 @@ } }, // 百度贴吧 - 帖子列表 baidu_tieba_post: { - insStyle: '.d_sign_split, img.j_user_sign, .d_author .d_pb_icons, .save_face_bg, .save_face_bg_2, li.d_name a.icon_tbworld, .lzl_cnt a.icon_tbworld, .core_reply div.hideLzl[style*="min-height:50px"] {display: none !important;} a.p_author_face.j_frame_guide {background: none repeat scroll 0 0 #FFF !important;border: 1px solid #CCC !important;padding: inherit !important;} .red_text, .red-text, .vip_red, .vip-red, .vip_red:hover, .vip-red:hover, .vip_red:visited, .vip-red:visited {color: #2d64b3 !important;}', // 签名、印记、头像边框、VIP 元素 + insStyle: '.d_sign_split, img.j_user_sign, .d_author .d_pb_icons, .save_face_bg, .save_face_bg_2, li.d_name a.icon_tbworld, .lzl_cnt a.icon_tbworld {display: none !important;} a.p_author_face.j_frame_guide {background: none repeat scroll 0 0 #FFF !important;border: 1px solid #CCC !important;padding: inherit !important;} .red_text, .red-text, .vip_red, .vip-red, .vip_red:hover, .vip-red:hover, .vip_red:visited, .vip-red:visited {color: #2d64b3 !important;}', // 签名、印记、头像边框、VIP 元素 pager: { type: 4, nextL: baidu_tieba_post_nextL, From 35adbfcc5e2e25f62bf8c790cbdeb07feafee6b5 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 9 Nov 2021 16:30:19 +0800 Subject: [PATCH 0002/1678] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E7=99=BE?= =?UTF-8?q?=E5=BA=A6=E8=B4=B4=E5=90=A7=20-=20=E5=B8=96=E5=AD=90=E5=86=85]?= =?UTF-8?q?=E3=80=81[=E6=8B=B7=E8=B4=9D=E6=BC=AB=E7=94=BB]=20=E8=A7=84?= =?UTF-8?q?=E5=88=99=EF=BC=88=E6=BB=9A=E5=8A=A8=E6=9D=A1=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=95=88=E6=9E=9C=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 228fec161..17f1c80c1 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 3.3.4 +// @version 3.3.5 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、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、动漫之家、古风漫画网、PubMed、wikiHow、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了... // @match *://*/* @@ -571,7 +571,7 @@ } }, // 百度贴吧 - 帖子列表 baidu_tieba_post: { - insStyle: '.d_sign_split, img.j_user_sign, .d_author .d_pb_icons, .save_face_bg, .save_face_bg_2, li.d_name a.icon_tbworld, .lzl_cnt a.icon_tbworld {display: none !important;} a.p_author_face.j_frame_guide {background: none repeat scroll 0 0 #FFF !important;border: 1px solid #CCC !important;padding: inherit !important;} .red_text, .red-text, .vip_red, .vip-red, .vip_red:hover, .vip-red:hover, .vip_red:visited, .vip-red:visited {color: #2d64b3 !important;}', // 签名、印记、头像边框、VIP 元素 + insStyle: '#Autopage_number, .d_sign_split, img.j_user_sign, .d_author .d_pb_icons, .save_face_bg, .save_face_bg_2, li.d_name a.icon_tbworld, .lzl_cnt a.icon_tbworld {display: none !important;} a.p_author_face.j_frame_guide {background: none repeat scroll 0 0 #FFF !important;border: 1px solid #CCC !important;padding: inherit !important;} .red_text, .red-text, .vip_red, .vip-red, .vip_red:hover, .vip-red:hover, .vip_red:visited, .vip-red:visited {color: #2d64b3 !important;}', // 签名、印记、头像边框、VIP 元素 pager: { type: 4, nextL: baidu_tieba_post_nextL, @@ -2499,7 +2499,7 @@ curSite = DBSite.copymanga_list; }}, iframe: true, - insStyle: '.upMember, .comicContainerAds, .footer, #Autopage_number {display: none !important;}', + insStyle: '.upMember, .comicContainerAds, .footer, #Autopage_number {display: none !important;} body, html {height: auto !important;}', pager: { type: 4, nextL: copymanga_nextL, @@ -5257,8 +5257,24 @@ function insIframe(src) { // 停用当前页面翻页 curSite.SiteTypeID = 0; - // 隐藏当前页面的滚动条 + 页码 - insStyle('body::-webkit-scrollbar {width: 0 !important;height: 0 !important;} #Autopage_number {display: none !important;}'); + // 当滚动条到底部时(即完全显示 iframe 框架),隐藏当前页面的滚动条 + window.addEventListener('scroll', function (e) { + let scrollTop = document.documentElement.scrollTop || document.body.scrollTop, + scrollHeight = document.documentElement.scrollHeight || document.body.scrollHeight, + clientHeight = document.documentElement.clientHeight || document.body.clientHeight + if (scrollTop + clientHeight + 10 >= scrollHeight) { + if (!document.getElementById('xiu-scroll')) { + let newStyle = document.createElement('style'); newStyle.id = 'xiu-scroll'; + document.lastElementChild.appendChild(newStyle).textContent = 'body::-webkit-scrollbar {width: 0 !important;height: 0 !important;}'; + } + } else { + if (document.getElementById('xiu-scroll')) { + document.getElementById('xiu-scroll').remove(); + } + } + //console.log(`${scrollTop} + ${clientHeight} >= ${scrollTop + clientHeight} / ${scrollHeight}`) + }, false); + // 创建 iframe let iframe = document.createElement('iframe'); document.lastElementChild.appendChild(iframe); From 943800baaaee30f122be4e2f1fe86711d8abc9ad Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 9 Nov 2021 17:05:13 +0800 Subject: [PATCH 0003/1678] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E6=B2=A1?= =?UTF-8?q?=E5=BE=97=E6=AF=94]=20=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 17f1c80c1..a9046dd18 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 3.3.5 +// @version 3.3.6 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、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、动漫之家、古风漫画网、PubMed、wikiHow、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了... // @match *://*/* @@ -3855,7 +3855,7 @@ history: true, scrollD: 2000 } - }, // 学术 + }, // 学术 google_scholar: { pager: { type: 1, @@ -4096,6 +4096,20 @@ scrollD: 1500 } }, // 什么值得买 - 分类/搜索页 + meidebi: { + host: 'www.meidebi.com', + functionStart: function() {if (location.pathname.indexOf('/fenlei/') > -1 || location.pathname === '/Search') { + curSite = DBSite.meidebi; + }}, + pager: { + type: 1, + nextL: 'css;a.next', + pageE: 'css;.share-list > ul > li', + insertP: ['css;.share-list > ul', 3], + replaceE: 'css;.h-pages', + scrollD: 1500 + } + }, // 没得比 - 分类/搜索页 ruyile_xuexiao: { host: 'www.ruyile.com', functionStart: function() { From b169ab7bf2d0480ac528886bbd4cc80b3101576c Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Wed, 10 Nov 2021 18:42:45 +0800 Subject: [PATCH 0004/1678] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E5=8C=85?= =?UTF-8?q?=E5=AD=90=E6=BC=AB=E7=94=BB]=20=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index a9046dd18..8d37ae661 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 3.3.6 +// @version 3.3.7 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、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、动漫之家、古风漫画网、PubMed、wikiHow、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了... // @match *://*/* @@ -77,7 +77,9 @@ /* 自动翻页规则 locationChange: 对于使用 pjax 技术的网站,需要监听 URL 变化来重新判断翻页规则 + insStyle: 要插入网页的 CSS Style 样式 + hiddenPN: 不显示脚本左下角的页码 type: 1 = 由脚本实现自动无缝翻页 2 = 网站自带了自动无缝翻页功能,只需要点击下一页按钮即可 @@ -91,6 +93,7 @@ scrollD: 基准元素 减去 可视区域底部 4 = 部分简单的动态加载类网站 insertE: 插入元素的函数 + insertP: 1 = 插入该元素本身的前面; 2 = 插入该元素当中,第一个子元素前面; @@ -104,8 +107,8 @@ 4 = 下一页主体元素子元素