From eebb19f0f0ddcf3961f887ea032f8d7ed93e72d1 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Fri, 29 Oct 2021 17:10:33 +0800 Subject: [PATCH 0001/1706] =?UTF-8?q?=E8=A7=A3=E5=86=B3=20=E5=B1=8F?= =?UTF-8?q?=E8=94=BD=E8=A7=86=E9=A2=91=E5=90=8E=EF=BC=8C=E5=9B=A0=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E4=BF=A1=E6=81=AF=E6=B5=81=E5=A4=AA=E5=B0=91=E8=80=8C?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=BB=9A=E5=8A=A8=E6=9D=A1=EF=BC=8C=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E6=97=A0=E6=B3=95=E5=8A=A0=E8=BD=BD=E6=9B=B4=E5=A4=9A?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zhihu-Enhanced.user.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Zhihu-Enhanced.user.js b/Zhihu-Enhanced.user.js index 4b5815380..4c1066db6 100644 --- a/Zhihu-Enhanced.user.js +++ b/Zhihu-Enhanced.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 知乎增强 -// @version 1.7.6 +// @version 1.7.7 // @author X.I.U // @description 移除登录弹窗、默认收起回答、一键收起回答、收起当前回答/评论(点击两侧空白处)、快捷回到顶部(右键两侧空白处)、屏蔽用户 (发布的内容)、屏蔽关键词(标题/评论)、屏蔽首页视频(视频/文章等类别)、屏蔽盐选内容、净化标题消息、展开问题描述、置顶显示时间、完整问题时间、区分问题文章、直达问题按钮、默认高清原图、默认站外直链 // @match *://www.zhihu.com/* @@ -1576,6 +1576,8 @@ function questionInvitation(){ blockUsers('index'); // 屏蔽指定用户 blockKeywords('index'); // 屏蔽指定关键词 blockType(); // 屏蔽指定类别(视频/文章等) + // 解决屏蔽视频后,因为首页信息流太少而没有滚动条导致无法加载更多内容的问题 + document.lastElementChild.appendChild(document.createElement('style')).textContent = '.Topstory-container{min-height: 1500px;}'; } } })(); \ No newline at end of file From c79b87c109906a5996ae79fb00a8e224bb263689 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Fri, 29 Oct 2021 17:23:50 +0800 Subject: [PATCH 0002/1706] =?UTF-8?q?=E8=A7=A3=E5=86=B3=20=E5=B1=8F?= =?UTF-8?q?=E8=94=BD=E8=A7=86=E9=A2=91=E5=90=8E=EF=BC=8C=E5=9B=A0=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E4=BF=A1=E6=81=AF=E6=B5=81=E5=A4=AA=E5=B0=91=E8=80=8C?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=BB=9A=E5=8A=A8=E6=9D=A1=EF=BC=8C=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E6=97=A0=E6=B3=95=E5=8A=A0=E8=BD=BD=E6=9B=B4=E5=A4=9A?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zhihu-Enhanced.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zhihu-Enhanced.user.js b/Zhihu-Enhanced.user.js index 4c1066db6..0d70144ce 100644 --- a/Zhihu-Enhanced.user.js +++ b/Zhihu-Enhanced.user.js @@ -1577,7 +1577,7 @@ function questionInvitation(){ blockKeywords('index'); // 屏蔽指定关键词 blockType(); // 屏蔽指定类别(视频/文章等) // 解决屏蔽视频后,因为首页信息流太少而没有滚动条导致无法加载更多内容的问题 - document.lastElementChild.appendChild(document.createElement('style')).textContent = '.Topstory-container{min-height: 1500px;}'; + if (menu_value('menu_blockTypeVideo')) document.lastElementChild.appendChild(document.createElement('style')).textContent = '.Topstory-container{min-height: 1500px;}'; } } })(); \ No newline at end of file From 891d2416e5cde587cd610c5bb1e98228348fa180 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Fri, 29 Oct 2021 19:57:13 +0800 Subject: [PATCH 0003/1706] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[ACS]=E3=80=81[W?= =?UTF-8?q?iley=20Online=20Library]=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 | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 5c93805ae..a987ea5a5 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 3.1.8 +// @version 3.1.9 // @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 *://*/* @@ -3744,6 +3744,19 @@ scrollD: 1500 } }, // 学术 + acs: { + host: ['pubs.acs.org','onlinelibrary.wiley.com'], + functionStart: function() {if (location.pathname.indexOf('/doSearch') > -1) {curSite = DBSite.acs;}}, + pager: { + type: 1, + nextL: 'css;a.pagination__btn--next', + pageE: 'css;ul.items-results > *', + insertP: ['css;ul.items-results', 3], + replaceE: 'css;.pagination', + history: true, + scrollD: 3000 + } + }, // 学术 google_scholar: { pager: { type: 1, @@ -5649,7 +5662,7 @@ } // 添加历史记录 - if (curSite.pager.history) { + if (curSite.pager.history && newBody.querySelector('title')) { window.history.pushState(`{title: ${document.title}, url: ${location.href}}`, newBody.querySelector('title').textContent, curSite.pageUrl); } From 66943c6cbf55c6669914d764191cc433955277b8 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sat, 30 Oct 2021 10:14:53 +0800 Subject: [PATCH 0004/1706] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[CADTutor]?= =?UTF-8?q?=E3=80=81[TheSwamp]=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 | 69 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 68 insertions(+), 1 deletion(-) diff --git a/Autopage.user.js b/Autopage.user.js index a987ea5a5..b7dd6872b 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 3.1.9 +// @version 3.2.0 // @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 *://*/* @@ -3829,6 +3829,73 @@ scrollD: 1000 } }, // 360 学术 + cadtutor: { + host: 'www.cadtutor.net', + functionStart: function() { + if (location.pathname.indexOf('/forum/forum/') > -1) { + curSite = DBSite.cadtutor; + } else if (location.pathname.indexOf('/forum/topic/') > -1) { + curSite = DBSite.cadtutor_post; + } else if (location.pathname.indexOf('/forum/search/') > -1) { + curSite = DBSite.cadtutor_search; + }}, + pager: { + type: 1, + nextL: 'css;a[rel="next"]', + pageE: 'css;ol.ipsDataList > li:not([data-rowid])~li', + insertP: ['css;ol.ipsDataList', 3], + replaceE: 'css;ul.ipsPagination', + scrollD: 2000 + } + }, // CADTutor - 列表页 + cadtutor_post: { + pager: { + type: 1, + nextL: 'css;a[rel="next"]', + pageE: 'css;#elPostFeed > form > *:not(input):not(.after-first-post)', + insertP: ['css;#elPostFeed > form', 3], + replaceE: 'css;ul.ipsPagination', + scrollD: 2000 + } + }, // CADTutor - 帖子内 + cadtutor_search: { + pager: { + type: 1, + nextL: 'css;a[rel="next"]', + pageE: 'css;ol.ipsStream > li', + insertP: ['css;ol.ipsStream', 3], + replaceE: 'css;ul.ipsPagination', + scrollD: 2000 + } + }, // CADTutor - 搜索页 + theswamp: { + host: 'www.theswamp.org', + functionStart: function() { + if (!location.search) return + if (location.search.indexOf('board=') > -1) { + curSite = DBSite.theswamp; + } else if (location.search.indexOf('topic=') > -1) { + curSite = DBSite.theswamp_post; + }}, + pager: { + type: 1, + nextL: 'css;.pagelinks > strong+a', + pageE: 'css;#messageindex tbody > tr:not([class])', + insertP: ['css;#messageindex tbody', 3], + replaceE: 'css;.pagelinks', + scrollD: 2000 + } + }, // TheSwamp - 列表页 + theswamp_post: { + pager: { + type: 1, + nextL: 'css;.pagelinks > strong+a', + pageE: 'css;#forumposts form > *', + insertP: ['css;#forumposts form', 3], + replaceE: 'css;.pagelinks', + scrollD: 2000 + } + }, // TheSwamp - 帖子内 wikihow: { host: ['www.wikihow.com', 'zh.wikihow.com'], functionStart: function() {if (location.pathname.indexOf('/Category:') > -1) { From d45099de67c88b0f2f988276882de23f9c4ede1d Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sat, 30 Oct 2021 19:01:06 +0800 Subject: [PATCH 0005/1706] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[B=E7=AB=99=20-?= =?UTF-8?q?=20=E6=90=9C=E7=B4=A2=E9=A1=B5]=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 | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index b7dd6872b..7968bf0b3 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 3.2.0 +// @version 3.2.1 // @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 *://*/* @@ -1588,11 +1588,8 @@ insertP: ['css;ul.video-list', 3], replaceE: 'css;ul.pages', scriptT: 2, - history: function() { - if (/page=\d+/.test(location.search)) return false; - return true; - }, - scrollD: 800 + history: function() {if (/page=\d+/.test(location.search)) {return false;} else {return true;}},// 解决 locationChange 与 history 冲突的问题,只有返回 true 才会重置规则+页码 + scrollD: 1000 }, function: { aF: bilibili_search_aF @@ -4304,7 +4301,8 @@ setSiteTypeID(); // 用于脚本判断(针对部分特殊的网站) SiteType = { - BAIDU_TIEBA: DBSite.baidu_tieba.SiteTypeID + BAIDU_TIEBA: DBSite.baidu_tieba.SiteTypeID, + BILIBILI_SEARCH: DBSite.bilibili_search.SiteTypeID }; } @@ -5663,6 +5661,7 @@ timeout: 10000, onload: function (response) { try { + //console.log('最终 URL:' + response.finalUrl, '返回内容:' + response.responseText) processResult(ShowPager.createDocumentByString(response.responseText)); } catch (e) { console.log(e); @@ -5674,13 +5673,12 @@ }; // XHR 后处理结果 function processResult(response) { - //console.log('最终 URL:' + response.finalUrl, '返回内容:' + response.responseText) var newBody = response; let pageElems = getAll(curSite.pager.pageE, newBody, newBody), toElement = getAll(curSite.pager.insertP[0])[0]; //console.log(curSite.pager.pageE, pageElems, curSite.pager.insertP, toElement) - if (pageElems.length >= 0) { + if (pageElems.length > 0) { // 如果有插入前函数就执行函数 if (curSite.function && curSite.function.bF) { if (curSite.function.pF) { // 如果指定了参数 @@ -5729,8 +5727,10 @@ } // 添加历史记录 - if (curSite.pager.history && newBody.querySelector('title')) { - window.history.pushState(`{title: ${document.title}, url: ${location.href}}`, newBody.querySelector('title').textContent, curSite.pageUrl); + if (curSite.pager.history) { + let title_ = newBody.querySelector('title'); + if (title_) {title_ = title_.textContent;} else {title_ = document.title;}; + window.history.pushState(`{title: ${document.title}, url: ${location.href}}`, title_, curSite.pageUrl); } // 替换待替换元素 @@ -5757,6 +5757,8 @@ curSite.function.aF(); } } + } else { // 获取主体元素失败后,尝试重新获取 + if (curSite.SiteTypeID === SiteType.BILIBILI_SEARCH) {curSite.pageUrl = '';} } } // 插入所有 Script From b8ed04399a711d10a6e4e174c7e7b5d4d1a62bb1 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sun, 31 Oct 2021 10:20:38 +0800 Subject: [PATCH 0006/1706] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[OI=20Wiki]?= =?UTF-8?q?=E3=80=81[=E7=95=AA=E7=BB=84=E8=AE=A1=E5=88=92=20(Bangumi)]=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 --- Autopage.user.js | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/Autopage.user.js b/Autopage.user.js index 7968bf0b3..4f5b5f2ec 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 3.2.1 +// @version 3.2.2 // @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 *://*/* @@ -959,6 +959,33 @@ scrollD: 1500 } }, // 看雪论坛 - 帖子内 + bangumitv: { + host: 'bangumi.tv', + functionStart: function() { + if (location.pathname.indexOf('/browser') > -1 || location.pathname.indexOf('/subject_search') > -1) { + curSite = DBSite.bangumitv; + } else if (location.pathname.indexOf('/forum') > -1) { + curSite = DBSite.bangumitv_forum; + }}, + pager: { + type: 1, + nextL: '//div[@class="page_inner"]/a[contains(text(), "››")]', + pageE: 'css;ul#browserItemList > li', + insertP: ['css;ul#browserItemList', 3], + replaceE: 'css;.page_inner', + scrollD: 1500 + } + }, // 番组计划 + bangumitv_forum: { + pager: { + type: 1, + nextL: '//div[@class="page_inner"]/a[contains(text(), "››")]', + pageE: 'css;.topic_list > tbody:last-of-type > tr.topic', + insertP: ['css;.topic_list > tbody:last-of-type', 3], + replaceE: 'css;.page_inner', + scrollD: 1500 + } + }, // 番组计划 - 小组帖子列表 kdslife: { host: 'club.kdslife.com', functionStart: function() { @@ -3920,6 +3947,19 @@ scrollD: 3000 } }, // 指南 - 搜索页 + oi_wiki: { + host: 'oi-wiki.org', + insStyle: 'blockquote.page-copyright, h2#__comments, form#gitalk-form {display: none !important;} article.md-content__inner{min-height: 700px;}', + pager: { + type: 1, + nextL: 'css;li.md-nav__item.md-nav__item--active.md-nav__item--nested li.md-nav__item--active+li a', + pageE: 'css;article.md-content__inner', + insertP: ['css;article.md-content__inner', 5], + replaceE: 'css;.md-sidebar.md-sidebar--primary', + history: true, + scrollD: 1300 + } + }, // 编程竞赛 afreecatv: { host: 'www.afreecatv.com', pager: { From 6da7c749c158d4d52dff5fb97fdac26ce96a1fef Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sun, 31 Oct 2021 14:27:05 +0800 Subject: [PATCH 0007/1706] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[X-MOL]=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 --- Autopage.user.js | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/Autopage.user.js b/Autopage.user.js index 4f5b5f2ec..a6c204732 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 3.2.2 +// @version 3.2.3 // @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 *://*/* @@ -3781,6 +3781,19 @@ scrollD: 3000 } }, // 学术 + x_mol: { + host: 'www.x-mol.com', + functionStart: function() {if (location.pathname.indexOf('/search/q') > -1) {curSite = DBSite.x_mol;}}, + pager: { + type: 1, + nextL: x_mol_mod_nextL, + pageE: 'css;.magazine-senior-search-results-list > ul > li', + insertP: ['css;.magazine-senior-search-results-list > ul', 3], + replaceE: 'css;.pagination', + history: true, + scrollD: 2000 + } + }, // 学术 google_scholar: { pager: { type: 1, @@ -4661,6 +4674,26 @@ } + // [X-MOL] 获取下一页地址 + function x_mol_mod_nextL() { + let nextNum = getCSS('.pagination li.active+li > a'); + var url; + if (nextNum && nextNum.textContent) { + if (location.search) { + let search; + if (location.search.indexOf('pageIndex=') > -1) { + search = location.search.replace(/pageIndex=\d+/, 'pageIndex=' + nextNum.textContent); + } else { + search = location.search + '&pageIndex=' + nextNum.textContent; + } + url = location.origin + location.pathname + search; + } + } + //console.log(url) + return url + } + + // [游民星空-攻略] 的插入前函数(移除下一页底部的 "更多相关内容请关注:xxx" 文字) function gamersky_gl_bF(pageElems) { pageElems.forEach(function (one) { From 9c72f4a9203e8757ccb7cc766e77708f83f14f4c Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sun, 31 Oct 2021 18:31:29 +0800 Subject: [PATCH 0008/1706] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[CADTutor]?= =?UTF-8?q?=E3=80=81[TheSwamp]=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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index a6c204732..5fd99d992 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 3.2.3 +// @version 3.2.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 *://*/* @@ -27,7 +27,7 @@ ['menu_discuz_thread_page', '帖子内自动翻页', '帖子内自动翻页', true], ['menu_page_number', '显示当前页码及点击暂停翻页', '显示当前页码及点击暂停翻页', true], ['menu_pause_page', '左键双击网页空白处暂停翻页', '左键双击网页空白处暂停翻页', false] - ], menuId = [], webType = 0, curSite = {SiteTypeID: 0}, DBSite, SiteType, pausePage = true, pageNum = {now: 1, _now: 1}, locationChange = false, nowLocation = '', forumWebsite = ['cs.rin.ru', 'www.flyert.com', 'bbs.pediy.com', 'www.libaclub.com', 'tieba.baidu.com']; + ], menuId = [], webType = 0, curSite = {SiteTypeID: 0}, DBSite, SiteType, pausePage = true, pageNum = {now: 1, _now: 1}, locationChange = false, nowLocation = '', forumWebsite = ['cs.rin.ru', 'www.flyert.com', 'bbs.pediy.com', 'www.libaclub.com', 'tieba.baidu.com', 'www.cadtutor.net', 'www.theswamp.org']; for (let i=0;i -1) { curSite = DBSite.cadtutor; - } else if (location.pathname.indexOf('/forum/topic/') > -1) { + } else if (location.pathname.indexOf('/forum/topic/') > -1 && GM_getValue('menu_discuz_thread_page')) { curSite = DBSite.cadtutor_post; } else if (location.pathname.indexOf('/forum/search/') > -1) { curSite = DBSite.cadtutor_search; @@ -3911,7 +3911,7 @@ if (!location.search) return if (location.search.indexOf('board=') > -1) { curSite = DBSite.theswamp; - } else if (location.search.indexOf('topic=') > -1) { + } else if (location.search.indexOf('topic=') > -1 && GM_getValue('menu_discuz_thread_page')) { curSite = DBSite.theswamp_post; }}, pager: { From a586182b6d344873edef95455f90ba15a1af631d Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Wed, 3 Nov 2021 15:19:10 +0800 Subject: [PATCH 0009/1706] Update --- .github/ISSUE_TEMPLATE/------bug-report-.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/ISSUE_TEMPLATE/------bug-report-.md b/.github/ISSUE_TEMPLATE/------bug-report-.md index 6dafc5a50..e186e54da 100644 --- a/.github/ISSUE_TEMPLATE/------bug-report-.md +++ b/.github/ISSUE_TEMPLATE/------bug-report-.md @@ -8,3 +8,4 @@ assignees: '' --- + From 39df87139fcac867ca27438531c8aa8fa74059c3 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Wed, 3 Nov 2021 15:21:48 +0800 Subject: [PATCH 0010/1706] Update --- .github/ISSUE_TEMPLATE/------bug-report-.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/------bug-report-.md b/.github/ISSUE_TEMPLATE/------bug-report-.md index e186e54da..71ae4f2a9 100644 --- a/.github/ISSUE_TEMPLATE/------bug-report-.md +++ b/.github/ISSUE_TEMPLATE/------bug-report-.md @@ -8,4 +8,4 @@ assignees: '' --- - + From e555290e1f78bf1e32e0a37adbd0e29f70394e55 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Wed, 3 Nov 2021 20:46:54 +0800 Subject: [PATCH 0011/1706] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[Steam=20?= =?UTF-8?q?=E5=88=9B=E6=84=8F=E5=B7=A5=E5=9D=8A]=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 | 1 + 1 file changed, 1 insertion(+) diff --git a/Autopage.user.js b/Autopage.user.js index 5fd99d992..4b0896bd3 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1520,6 +1520,7 @@ }, // NexusMods steamcommunity: { host: 'steamcommunity.com', + functionStart: function() {if (location.pathname.indexOf('/workshop/browse') > -1) {curSite = DBSite.steamcommunity;}}, pager: { type: 1, nextL: '//a[@class="pagebtn"][last()]', From 167b24639f0423e804e490d0dea696056bd26cfa Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Fri, 5 Nov 2021 14:56:19 +0800 Subject: [PATCH 0012/1706] =?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=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 56 +++++++++++++++++++++--------------------------- 1 file changed, 24 insertions(+), 32 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 4b0896bd3..638291192 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 3.2.4 +// @version 3.2.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 *://*/* @@ -4586,37 +4586,29 @@ // [百度贴吧] 插入数据 function baidu_tieba_insertE(newBody, type) { if (!newBody) return - let pageElems = getAll(curSite.pager.pageE, newBody, newBody), - toElement = getAll(curSite.pager.insertP[0])[0]; - if (pageElems.length >= 0) { - // 执行插入前函数 - pageElems = curSite.function.bF(pageElems); - // 插入位置 - let addTo = getAddTo(curSite.pager.insertP[1]); - // 获取