From b1904b3c0640139ab9b0bd8c00e9898cff11d923 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 5 Oct 2021 12:18:14 +0800 Subject: [PATCH 0001/1773] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[MioBT=E3=80=81?= =?UTF-8?q?=E7=AE=80=E5=8D=95=E5=8A=A8=E6=BC=AB]=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 | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index ff97f5ecb..342ac17c8 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.6.8 +// @version 2.6.9 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、龙的天空、起点小说、煎蛋网、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 *://*/* @@ -1776,9 +1776,25 @@ scrollDelta: 1500 } }, // 萌番组 + miobt: { + SiteTypeID: 0, + host: ['miobt.com', 'www.36dm.club'], + functionStart: function() {curSite = DBSite.miobt; + if (location.host === 'www.36dm.club') { + curSite.pager.scrollDelta = 1000; + }}, + pager: { + type: 1, + nextLink: 'css;a.nextprev[href]', + pageElement: 'css;#data_list > tr', + insertPosition: ['css;#data_list', 3], + replaceE: 'css;.pages', + scrollDelta: 2000 + } + }, // MioBT + 简单动漫 nyaa: { SiteTypeID: 0, - host: 'nyaa.si', + host: /nyaa\.si/, pager: { type: 1, nextLink: '//a[@rel="next"][@href] | //li[@class="next"]/a[@href]', @@ -4550,7 +4566,6 @@ // 显示页码 function pageNumber(type) { - console.log(curSite) if (curSite.SiteTypeID === 0) {let status = document.getElementById('Autopage_number');if (status) {status.style.display = 'none';}; return} let status = document.getElementById('Autopage_number'); switch (type) { From aaaac48506f751afcedbb0c05fb0ad31c1611d0f Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 5 Oct 2021 16:49:07 +0800 Subject: [PATCH 0002/1773] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E5=93=94?= =?UTF-8?q?=E5=93=A9=E8=BD=BB=E5=B0=8F=E8=AF=B4=20(=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E7=89=88)]=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 | 58 ++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 46 insertions(+), 12 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 342ac17c8..9f4dd16e5 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.6.9 +// @version 2.7.0 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、龙的天空、起点小说、煎蛋网、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 *://*/* @@ -1957,7 +1957,7 @@ replaceE: 'css;#page-container', scrollDelta: 900 } - }, // 起点小说 + }, // 起点小说 qidian_read: { SiteTypeID: 0, host: 'read.qidian.com', @@ -1971,7 +1971,7 @@ history: true, scrollDelta: 900 } - }, // 起点小说 - 阅读页 + }, // 起点小说 - 阅读页 baoshuu: { SiteTypeID: 0, host: 'www.baoshuu.com', @@ -1985,7 +1985,7 @@ mimeType: 'text/html; charset=gb2312', scrollDelta: 900 } - }, // 宝书网 + }, // 宝书网 baoshuu_m: { SiteTypeID: 0, host: 'm.baoshuu.com', @@ -1999,7 +1999,7 @@ mimeType: 'text/html; charset=gb2312', scrollDelta: 900 } - }, // 宝书网- 手机版 + }, // 宝书网- 手机版 _23wx: { SiteTypeID: 0, host: 'www.23wx.cc', @@ -2014,7 +2014,7 @@ history: true, scrollDelta: 1500 } - }, // 顶点小说 + }, // 顶点小说 xineyby: { SiteTypeID: 0, host: 'www.xineyby.com', @@ -2033,7 +2033,7 @@ history: true, scrollDelta: 900 } - }, // 无错小说网 + }, // 无错小说网 xineyby_list: { SiteTypeID: 0, pager: { @@ -2045,7 +2045,7 @@ mimeType: 'text/html; charset=gbk', scrollDelta: 900 } - }, // 无错小说网 - 分类/搜索页 + }, // 无错小说网 - 分类/搜索页 linovel: { SiteTypeID: 0, host: 'www.linovel.net', @@ -2062,7 +2062,7 @@ replaceE: 'css;ul.pagination', scrollDelta: 1000 } - }, // 轻之文库 + }, // 轻之文库 linovelib: { SiteTypeID: 0, host: 'www.linovelib.com', @@ -2082,7 +2082,7 @@ history: true, scrollDelta: 1000 } - }, // 哔哩轻小说 + }, // 哔哩轻小说 linovelib_wenku: { SiteTypeID: 0, pager: { @@ -2097,7 +2097,7 @@ before: src_functionBefore, parameter: [0, 'img[data-original]', 'data-original'] } - }, // 哔哩轻小说 - 文库 + }, // 哔哩轻小说 - 文库 linovelib_top: { SiteTypeID: 0, pager: { @@ -2112,7 +2112,41 @@ before: src_functionBefore, parameter: [0, 'img[data-original]', 'data-original'] } - }, // 哔哩轻小说 - 全本 + }, // 哔哩轻小说 - 全本 + linovelib_w: { + SiteTypeID: 0, + host: 'w.linovelib.com', + functionStart: function() {if (/\/novel\/\d+\/.+\.html/.test(location.pathname)) { + curSite = DBSite.linovelib_w; + } else if (location.pathname.indexOf('/wenku/') > -1 || location.pathname.indexOf('/sa/') > -1) { + curSite = DBSite.linovelib_w_wenku; + }}, + pager: { + type: 1, + nextLink: function() {if (ReadParams) {return ReadParams.url_next}; return ''}, + pageElement: '//body/script[contains(text(), "var ReadParams")] | id("apage")/div', + insertPosition: ['css;#apage', 3], + replaceE: 'css;head > title', + history: true, + scriptType: 2, + scrollDelta: 1000 + } + }, // 哔哩轻小说 (手机版) + linovelib_w_wenku: { + SiteTypeID: 0, + pager: { + type: 1, + nextLink: 'css;#pagelink > strong+a[href] ,#pagelink a.next[href]', + pageElement: 'css;ol.book-ol > li', + insertPosition: ['css;ol.book-ol', 3], + replaceE: 'css;#pagelink', + scrollDelta: 1000 + }, + function: { + before: src_functionBefore, + parameter: [0, 'img[data-original]', 'data-original'] + } + }, // 哔哩轻小说 (手机版) - 文库 cartoonmad: { SiteTypeID: 0, host: ['www.cartoonmad.com','www.cartoonmad.cc'], From c65c8e8e2e8da8cdbac91efffb1ae8593ad67676 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 5 Oct 2021 17:35:15 +0800 Subject: [PATCH 0003/1773] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E4=BD=8E?= =?UTF-8?q?=E7=AB=AF=E5=BD=B1=E8=A7=86]=20=E5=85=B6=E4=BB=96=E5=9F=9F?= =?UTF-8?q?=E5=90=8D;=20=E4=BC=98=E5=8C=96=20[Discuz!]=20=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 9f4dd16e5..426460e33 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.7.0 +// @version 2.7.1 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、龙的天空、起点小说、煎蛋网、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 *://*/* @@ -120,7 +120,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[@class="nxt"][@href][not(contains(@href, "javascript"))] | //a[@class="next"][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(text(), "下一页")][@href][not(contains(@href, "javascript"))]', pageElement: 'css;#threadlist table > tbody[id^="normalthread_"]', insertPosition: ['id("threadlist")//table/tbody[starts-with(@id, "normalthread_")]/parent::table', 3], replaceE: 'css;.pg, .pages', @@ -131,7 +131,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[@class="nxt"][@href][not(contains(@href, "javascript"))] | //a[@class="next"][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(text(), "下一页")][@href][not(contains(@href, "javascript"))]', pageElement: 'css;#waterfall > li', insertPosition: ['css;#waterfall', 3], replaceE: 'css;.pg, .pages', @@ -142,7 +142,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[@class="nxt"][@href][not(contains(@href, "javascript"))] | //a[@class="next"][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(text(), "下一页")][@href][not(contains(@href, "javascript"))]', pageElement: 'css;#postlist > div[id^="post_"]', insertPosition: ['css;#postlist', 3], replaceE: 'css;.pg, .pages', @@ -157,7 +157,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[@class="nxt"][@href][not(contains(@href, "javascript"))] | //a[@class="next"][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(text(), "下一页")][@href][not(contains(@href, "javascript"))]', pageElement: 'css;#threadlist > ul', insertPosition: ['css;#threadlist', 3], replaceE: 'css;.pg, .pages', @@ -168,7 +168,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[@class="nxt"][@href][not(contains(@href, "javascript"))] | //a[@class="next"][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(text(), "下一页")][@href][not(contains(@href, "javascript"))]', pageElement: 'css;tbody > tr:not(.th)', insertPosition: ['css;tbody', 3], replaceE: 'css;.pg, .pages', @@ -179,7 +179,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[@class="nxt"][@href][not(contains(@href, "javascript"))] | //a[@class="next"][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(text(), "下一页")][@href][not(contains(@href, "javascript"))]', pageElement: 'css;#ct .bm_c table > tbody', insertPosition: ['css;#ct .bm_c table', 3], replaceE: 'css;.pg, .pages', @@ -1435,7 +1435,7 @@ }, // NO视频 ddrk: { SiteTypeID: 0, - host: 'ddrk.me', + host: ['ddrk.me', 'ddys.tv'], functionStart: function() {if (location.pathname === '/' || location.pathname.indexOf('/category/') > -1 || location.pathname.indexOf('/tag/') > -1) {curSite = DBSite.ddrk;}}, pager: { type: 1, From bbc0811ae716b1304e0d2f24bd611df3dd926db8 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 5 Oct 2021 20:03:52 +0800 Subject: [PATCH 0004/1773] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[Discuz!]=20?= =?UTF-8?q?=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 426460e33..b26821b62 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.7.1 +// @version 2.7.2 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、龙的天空、起点小说、煎蛋网、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 *://*/* @@ -120,7 +120,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(text(), "下一页")][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(string(), "下一页")][@href][not(contains(@href, "javascript"))]', pageElement: 'css;#threadlist table > tbody[id^="normalthread_"]', insertPosition: ['id("threadlist")//table/tbody[starts-with(@id, "normalthread_")]/parent::table', 3], replaceE: 'css;.pg, .pages', @@ -131,7 +131,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(text(), "下一页")][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(string(), "下一页")][@href][not(contains(@href, "javascript"))]', pageElement: 'css;#waterfall > li', insertPosition: ['css;#waterfall', 3], replaceE: 'css;.pg, .pages', @@ -142,7 +142,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(text(), "下一页")][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(string(), "下一页")][@href][not(contains(@href, "javascript"))]', pageElement: 'css;#postlist > div[id^="post_"]', insertPosition: ['css;#postlist', 3], replaceE: 'css;.pg, .pages', @@ -157,7 +157,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(text(), "下一页")][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(string(), "下一页")][@href][not(contains(@href, "javascript"))]', pageElement: 'css;#threadlist > ul', insertPosition: ['css;#threadlist', 3], replaceE: 'css;.pg, .pages', @@ -168,7 +168,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(text(), "下一页")][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(string(), "下一页")][@href][not(contains(@href, "javascript"))]', pageElement: 'css;tbody > tr:not(.th)', insertPosition: ['css;tbody', 3], replaceE: 'css;.pg, .pages', @@ -179,7 +179,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(text(), "下一页")][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(string(), "下一页")][@href][not(contains(@href, "javascript"))]', pageElement: 'css;#ct .bm_c table > tbody', insertPosition: ['css;#ct .bm_c table', 3], replaceE: 'css;.pg, .pages', From 3fa9aa8952a5086cbe94db9ced6e09c81697e333 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 5 Oct 2021 22:00:26 +0800 Subject: [PATCH 0005/1773] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E7=B3=97?= =?UTF-8?q?=E4=BA=8B=E7=99=BE=E7=A7=91=E3=80=81W3school]=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 140 +++++++++++++++++++++++++++++++---------------- 1 file changed, 94 insertions(+), 46 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index b26821b62..f4db7521d 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,8 +1,8 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.7.2 +// @version 2.7.3 // @author X.I.U -// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、龙的天空、起点小说、煎蛋网、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(以上仅一部分,更多的写不下了... +// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、煎蛋网、糗事百科、龙的天空、起点小说、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 *://*/* // @icon https://i.loli.net/2021/03/07/rdijeYm83pznxWq.png // @grant GM_xmlhttpRequest @@ -721,6 +721,79 @@ scrollDelta: 1000 } }, // V2EX - 账户余额页 + jandan: { + SiteTypeID: 0, + host: 'jandan.net', + functionStart: function() {if (location.pathname === '/' || location.pathname.indexOf('/page/') > -1) { + curSite = DBSite.jandan; + } else if (location.pathname === '/dzh') { + curSite = DBSite.jandan_dzh; + } else { + curSite = DBSite.jandan_comment; + }}, + pager: { + type: 1, + nextLink: '//div[@class="wp-pagenavi"]/a[contains(text(), "下一页") or contains(text(), "更多文章")]', + pageElement: 'css;#content > .list-post', + insertPosition: ['css;.wp-pagenavi', 1], + replaceE: 'css;.wp-pagenavi, #nav_prev', + scrollDelta: 1500 + }, + function: { + before: src_functionBefore, + parameter: [0, 'img[data-original]', 'data-original'] + } + }, // 煎蛋网 + jandan_comment: { + SiteTypeID: 0, + pager: { + type: 1, + nextLink: 'css;a.previous-comment-page', + pageElement: 'css;ol.commentlist > li[id^="comment-"], script[src^="//cdn.jandan.net/static/min/"]', + insertPosition: ['css;ol.commentlist', 3], + replaceE: 'css;.cp-pagenavi, #nav_prev', + scriptType: 3, + scrollDelta: 1500 + } + }, // 煎蛋网 + jandan_dzh: { + SiteTypeID: 0, + pager: { + type: 2, + nextLink: '.show_more', + intervals: 1500, + scrollDelta: 1500 + } + }, // 煎蛋网 - 大杂烩 + qiushibaike: { + SiteTypeID: 0, + host: 'www.qiushibaike.com', + functionStart: function() {document.lastElementChild.appendChild(document.createElement('style')).textContent = '.qrcode-wrap, .qrcode-wrap-img, .index-side-left-AD1 {display: none !important;}'; + if (location.pathname === '/') { + curSite = DBSite.qiushibaike; + } else if (location.pathname.indexOf('/article/') === -1) { + curSite = DBSite.qiushibaike_; + }}, + pager: { + type: 1, + nextLink: '//ul[@class="pagination"]//a[./span[@class="next"]]', + pageElement: 'css;.recommend-article > ul > li', + insertPosition: ['css;.recommend-article > ul', 3], + replaceE: 'css;ul.pagination', + scrollDelta: 1500 + } + }, // 糗事百科 + qiushibaike_: { + SiteTypeID: 0, + pager: { + type: 1, + nextLink: '//ul[@class="pagination"]//a[./span[@class="next"]]', + pageElement: 'css;[id^="qiushi_tag_"]', + insertPosition: ['css;ul.pagination', 1], + replaceE: 'css;ul.pagination', + scrollDelta: 1500 + } + }, // 糗事百科 - 分类页 lkong: { SiteTypeID: 0, host: 'www.lkong.com', @@ -995,50 +1068,6 @@ scrollDelta: 1500 } }, // A 岛 - 帖子内(手机版) - jandan: { - SiteTypeID: 0, - host: 'jandan.net', - functionStart: function() {if (location.pathname === '/' || location.pathname.indexOf('/page/') > -1) { - curSite = DBSite.jandan; - } else if (location.pathname === '/dzh') { - curSite = DBSite.jandan_dzh; - } else { - curSite = DBSite.jandan_comment; - }}, - pager: { - type: 1, - nextLink: '//div[@class="wp-pagenavi"]/a[contains(text(), "下一页") or contains(text(), "更多文章")]', - pageElement: 'css;#content > .list-post', - insertPosition: ['css;.wp-pagenavi', 1], - replaceE: 'css;.wp-pagenavi, #nav_prev', - scrollDelta: 1500 - }, - function: { - before: src_functionBefore, - parameter: [0, 'img[data-original]', 'data-original'] - } - }, // 煎蛋网 - jandan_comment: { - SiteTypeID: 0, - pager: { - type: 1, - nextLink: 'css;a.previous-comment-page', - pageElement: 'css;ol.commentlist > li[id^="comment-"], script[src^="//cdn.jandan.net/static/min/"]', - insertPosition: ['css;ol.commentlist', 3], - replaceE: 'css;.cp-pagenavi, #nav_prev', - scriptType: 3, - scrollDelta: 1500 - } - }, // 煎蛋网 - jandan_dzh: { - SiteTypeID: 0, - pager: { - type: 2, - nextLink: '.show_more', - intervals: 1500, - scrollDelta: 1500 - } - }, // 煎蛋网 - 大杂烩 guokr: { SiteTypeID: 0, host: 'www.guokr.com', @@ -3438,6 +3467,25 @@ scrollDelta: 1000 } }, // 如意了教育 - 试卷 + w3school_cn: { + SiteTypeID: 0, + host: 'www.w3school.com.cn', + functionStart: function() {if (location.pathname.split('/').length > 2) {curSite = DBSite.w3school_cn;}}, + pager: { + type: 1, + nextLink: function() { // 过滤部分非本页的参考手册 + let next = document.querySelector('li.next > a') + if (next.href.indexOf('/index.') === -1) return next.href; + curSite = {SiteTypeID: 0}; return '' + }, + pageElement: 'css;#maincontent > h1, #maincontent > div:not(#tpn):not(#bpn)', + insertPosition: ['css;#bpn', 1], + replaceE: 'css;ul.prenext, #navsecond, head > title', + history: true, + forceHTTPS: true, + scrollDelta: 2000 + } + }, // W3school runoob: { SiteTypeID: 0, host: 'www.runoob.com', From 7f4dd3e1a4411912900a7d7949b77c01e4c419c8 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Wed, 6 Oct 2021 19:40:09 +0800 Subject: [PATCH 0006/1773] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E5=AE=85?= =?UTF-8?q?=E7=94=B7=E5=A5=B3=E7=A5=9E]=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 | 61 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/Autopage.user.js b/Autopage.user.js index f4db7521d..48b22db40 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.7.3 +// @version 2.7.4 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、煎蛋网、糗事百科、龙的天空、起点小说、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 *://*/* @@ -3564,6 +3564,65 @@ scrollDelta: 1000 } }, // 壁纸 + fnvshen: { + SiteTypeID: 0, + host: 'www.fnvshen.com', + functionStart: function() { + if (location.pathname.indexOf('/gallery/') > -1 || location.pathname.indexOf('/tag/') > -1) { + curSite = DBSite.fnvshen; + } else if (location.pathname.indexOf('/g/') > -1) { + curSite = DBSite.fnvshen_g; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.yalayi_box {display: none !important; margin: -4px 0 !important;}'; + } else if (/\/article\/\d+\//.test(location.pathname)) { + curSite = DBSite.fnvshen_article; + } else if (location.pathname.indexOf('/article/') > -1) { + curSite = DBSite.fnvshen_article_list; + }}, + pager: { + type: 1, + nextLink: '//div[@class="pagesYY"]//a[@href][contains(text(), "下一页")]', + pageElement: 'css;#listdiv > ul > li', + insertPosition: ['css;#listdiv > ul', 3], + replaceE: 'css;.pagesYY', + scrollDelta: 1000 + }, + function: { + before: src_functionBefore, + parameter: [0, 'img[data-original]', 'data-original'] + } + }, // 宅男女神 + fnvshen_g: { + SiteTypeID: 0, + pager: { + type: 1, + nextLink: 'id("pages")/a[@href][contains(text(), "下一页")]', + pageElement: 'css;#hgallery > img', + insertPosition: ['css;#hgallery', 3], + replaceE: 'css;#pages', + scrollDelta: 1000 + } + }, // 宅男女神 - 图片内 + fnvshen_article_list: { + SiteTypeID: 0, + pager: { + type: 1, + nextLink: '//div[@class="pagesYY"]//a[@href][contains(text(), "下一页")]', + pageElement: 'css;li.other_girlli', + insertPosition: ['//ul[./li[@class="other_girlli"]]', 3], + replaceE: 'css;.pagesYY', + scrollDelta: 1000 + } + }, //宅男女神 - 文章列表 + fnvshen_article: { + SiteTypeID: 0, + pager: { + type: 1, + nextLink: 'css;.pagesYY a.cur+a', + pageElement: 'css;#articleDiv', + insertPosition: ['css;#articleDiv', 5], + replaceE: 'css;.pagesYY', + scrollDelta: 1000 + } + }, // 宅男女神 - 文章内 zhutix: { SiteTypeID: 0, host: 'zhutix.com', From e9d2de25467eaabde053b9f8d68e397391e6162e Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Wed, 6 Oct 2021 22:37:09 +0800 Subject: [PATCH 0007/1773] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[LowEndTalk]=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 | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Autopage.user.js b/Autopage.user.js index 48b22db40..6e9745844 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.7.4 +// @version 2.7.5 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、煎蛋网、糗事百科、龙的天空、起点小说、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 *://*/* @@ -951,6 +951,18 @@ scrollDelta: 1200 } }, // 篱笆网论坛 - 搜索页 + lowendtalk: { + SiteTypeID: 0, + host: 'lowendtalk.com', + pager: { + type: 1, + nextLink: 'css;a.Next[href]', + pageElement: 'css;ul.DataList > li', + insertPosition: ['css;ul.DataList', 3], + replaceE: 'css;.Pager', + scrollDelta: 1500 + } + }, // LowEndTalk lieyou: { SiteTypeID: 0, host: 'bbs.lieyou888.com', From 3c2448af8ce83f4813db7bf456e78f239ad45017 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Thu, 7 Oct 2021 10:27:56 +0800 Subject: [PATCH 0008/1773] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E5=BE=AE?= =?UTF-8?q?=E5=BD=93=E4=B8=8B=E8=BD=BD=20-=20=E4=B8=93=E9=A2=98=E9=A1=B5?= =?UTF-8?q?=E5=86=85=E3=80=81WINOS=E3=80=81Puresys=E3=80=81=E5=B0=8F?= =?UTF-8?q?=E9=B1=BC=E5=84=BF=20yr=20=E7=B3=BB=E7=BB=9F]=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81;=20=E4=BF=AE=E5=A4=8D=20[Discuz!=E3=80=81=E5=BE=AE?= =?UTF-8?q?=E5=BD=93=E4=B8=8B=E8=BD=BD=20-=20=E4=B8=93=E9=A2=98=E9=A1=B5?= =?UTF-8?q?=E3=80=81MioBT=E3=80=81=E7=AE=80=E5=8D=95=E5=8A=A8=E6=BC=AB]=20?= =?UTF-8?q?=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 149 +++++++++++++++++++++++++++++++---------------- 1 file changed, 100 insertions(+), 49 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 6e9745844..b9fc53a89 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.7.5 +// @version 2.7.6 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、煎蛋网、糗事百科、龙的天空、起点小说、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 *://*/* @@ -1826,7 +1826,7 @@ }}, pager: { type: 1, - nextLink: 'css;a.nextprev[href]', + nextLink: '//a[@class="nextprev"][contains(text(), "〉") or contains(text(), "下一页") or contains(text(), "»")]', pageElement: 'css;#data_list > tr', insertPosition: ['css;#data_list', 3], replaceE: 'css;.pages', @@ -2672,15 +2672,15 @@ }, // 乐软博客 pc521: { SiteTypeID: 0, - host: 'www.pc521.net', - functionStart: function() {if (location.search.slice(0,3) === '?s=') {curSite = DBSite.pc521_search;} else {curSite = DBSite.pc521;}}, + host: ['www.pc521.net', 'www.winos.me'], + functionStart: function() {if (location.search.slice(0,3) === '?s=') {curSite = DBSite.pc521_search;} else if (location.pathname.indexOf('.html') === -1) {curSite = DBSite.pc521;}}, pager: { type: 2, nextLink: 'div[id^="ias_trigger_"]', intervals: 1000, scrollDelta: 1000 } - }, // 不忘初心 + }, // 不忘初心 + WINOS pc521_search: { SiteTypeID: 0, pager: { @@ -2748,14 +2748,14 @@ host: 'www.weidown.com', functionStart: function() {if (location.pathname.indexOf('/search/') > -1) { //搜索页 curSite = DBSite.weidown_search; - } else if (location.pathname.indexOf('/special/') > -1) { // 专题页 + } else if (location.pathname.indexOf('/special') > -1) { // 专题页 curSite = DBSite.weidown_special; } else { curSite = DBSite.weidown; }}, pager: { type: 1, - nextLink: '//a[@class="nextpage"][@href]', + nextLink: 'css;a.nextpage', pageElement: 'css;.articleWrapper > .itemArticle, .articleWrapper > .richTextItem.search', insertPosition: ['css;.articleWrapper', 3], replaceE: 'css;#pageGroup', @@ -2766,7 +2766,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[@class="nextpage"][@href]', + nextLink: 'css;a.nextpage', pageElement: 'css;.articleListWrapper > .richTextItem.search', insertPosition: ['css;#pageGroup', 1], replaceE: 'css;#pageGroup', @@ -2777,16 +2777,16 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[@class="nextpage"][@href]', - pageElement: 'css;.special > .item', - insertPosition: ['css;.special', 3], + nextLink: 'css;a.nextpage', + pageElement: 'css;.special > .item, .articleWrapper > div', + insertPosition: ['css;.special, .articleWrapper', 3], replaceE: 'css;#pageGroup', scrollDelta: 700 } }, // 微当下载 - 专题页 th_sjy: { SiteTypeID: 0, - host: 'www.th-sjy.com', + host: ['www.th-sjy.com', 'www.puresys.net'], pager: { type: 1, nextLink: 'css;li.next-page > a', @@ -2794,8 +2794,12 @@ insertPosition: ['css;.pagination', 1], replaceE: 'css;.pagination', scrollDelta: 2000 + }, + function: { + before: src_functionBefore, + parameter: [0, 'img[data-src]', 'data-src'] } - }, // th-sjy 汉化 + }, // th-sjy 汉化 + Puresys fsylr: { SiteTypeID: 0, host: 'fsylr.com', @@ -2879,6 +2883,40 @@ scrollDelta: 1000 } }, // 异星软件空间 + yrxitong: { + SiteTypeID: 0, + host: 'www.yrxitong.com', + functionStart: function() { + if (location.pathname === '/sr.jsp') { + curSite = DBSite.yrxitong_search; + } else if (location.pathname.indexOf('/h-nd-') === -1) { + curSite = DBSite.yrxitong; + } + }, + pager: { + type: 1, + nextLink: 'css;span.pageNext > a', + pageElement: 'css;#containerFormsCenter .m_news_list > div', + insertPosition: ['css;#containerFormsCenter .m_news_list', 3], + replaceE: 'css;.pagenation', + scrollDelta: 1200 + }, + function: { + before: src_functionBefore, + parameter: [1, 'a[data-original]', 'data-original'] + } + }, // 小鱼儿 yr 系统 + yrxitong_search: { + SiteTypeID: 0, + pager: { + type: 1, + nextLink: 'css;span.pageNext > a', + pageElement: 'css;#containerFormsCenter .newsList > div', + insertPosition: ['css;#containerFormsCenter .newsList', 3], + replaceE: 'css;.pagenation', + scrollDelta: 2000 + } + }, // 小鱼儿 yr 系统 - 搜索页 sordum: { SiteTypeID: 0, host: 'www.sordum.org', @@ -3677,54 +3715,50 @@ if (webType != 1) { // < 所有 Discuz!论坛 > if (webType === 2) { - if (location.pathname.indexOf('.html') > -1) { // 判断是不是静态网页(.html 结尾) - if (location.pathname.indexOf('/forum-') > -1) { // < 各版块帖子列表 > - if (document.getElementById('autopbn')) { // 判断是否有 [下一页] 按钮 - curSite = DBSite.discuz_forum; - } else if (document.getElementById('waterfall')) { // 判断是否为图片模式 - curSite = DBSite.discuz_waterfall; waterfallStyle(); // 图片模式列表样式预处理 - } else { - curSite = DBSite.discuz_guide; - } - } else if (location.pathname.indexOf('/thread-') > -1) { // < 帖子内 > - if (GM_getValue('menu_discuz_thread_page')) { - curSite = DBSite.discuz_thread; - hidePgbtn(); // 隐藏帖子内的 [下一页] 按钮 - } - } else if(location.pathname.indexOf('search') > -1) { // < 搜索结果 > + if (document.querySelector('body[id="nv_forum"][class^="pg_"][onkeydown*="27"]')) { + switch (document.querySelector('body[id="nv_forum"][class^="pg_"][onkeydown*="27"]').className) { + case 'pg_forumdisplay': // < 各版块帖子列表 > + discuzForum(); break; + case 'pg_viewthread': // < 帖子内 > + discuzThread(); break; + case 'pg_guide': // < 导读帖子列表等 > + curSite = DBSite.discuz_guide; break; + case 'pg_collection': // < 淘贴列表 > + curSite = DBSite.discuz_collection; break; + } + } + // 如果上面没有匹配的则继续 < 搜索结果 > + if (curSite.SiteTypeID === 0) { + if (location.pathname.indexOf('search') > -1 || document.querySelector('body[id="nv_search"][onkeydown*="27"]')) { curSite = DBSite.discuz_search; } } - // 如果没有匹配的则继续 + // 如果上面没有匹配的则继续 if (curSite.SiteTypeID === 0) { - if (location.search.indexOf('mod=forumdisplay') > -1 || location.pathname.indexOf('forumdisplay.php') > -1) { // < 各版块帖子列表 > - if (document.getElementById('autopbn')) { // 判断是否有 [下一页] 按钮 - curSite = DBSite.discuz_forum; - } else if (document.getElementById('waterfall')) { // 判断是否为图片模式 - curSite = DBSite.discuz_waterfall; waterfallStyle(); // 图片模式列表样式预处理 - } else { - curSite = DBSite.discuz_guide; + if (location.pathname.indexOf('.html') > -1) { // 判断是不是静态网页(.html 结尾) + if (location.pathname.indexOf('/forum-') > -1) { // < 各版块帖子列表 > + discuzForum(); + } else if (location.pathname.indexOf('/thread-') > -1) { // < 帖子内 > + discuzThread(); } + } + } + // 如果上面没有匹配的则继续 + if (curSite.SiteTypeID === 0) { + if (location.search.indexOf('mod=forumdisplay') > -1 || location.pathname.indexOf('forumdisplay.php') > -1) { // < 各版块帖子列表 > + discuzForum(); } else if (location.search.indexOf('mod=viewthread') > -1 || location.pathname.indexOf('viewthread.php') > -1) { // < 帖子内 > - if (GM_getValue('menu_discuz_thread_page')) { - curSite = DBSite.discuz_thread; - hidePgbtn(); // 隐藏帖子内的 [下一页] 按钮 - } + discuzThread(); } else if (location.search.indexOf('mod=guide') > -1) { // < 导读帖子列表 > curSite = DBSite.discuz_guide; - } else if(location.search.indexOf('mod=space') > -1 && location.search.indexOf('&view=me') > -1) { // 别人的主题/回复 + } else if(location.search.indexOf('mod=space') > -1 && location.search.indexOf('do=thread') > -1) { // 别人的主题/回复 curSite = DBSite.discuz_youspace; } else if (location.search.indexOf('mod=collection') > -1) { // < 淘贴列表 > curSite = DBSite.discuz_collection; - } else if (location.pathname.indexOf('search') > -1) { // < 搜索结果 > - curSite = DBSite.discuz_search; } else if (document.getElementById('threadlist')) { // < 部分论坛的各板块 URL 是自定义的 > - curSite = DBSite.discuz_forum; + discuzForum(); } else if (document.getElementById('postlist')) { // < 部分论坛的帖子内 URL 是自定义的 > - if (GM_getValue('menu_discuz_thread_page')) { - curSite = DBSite.discuz_thread; - hidePgbtn(); // 隐藏帖子内的 [下一页] 按钮 - } + discuzThread(); } } // < 所有 Flarum 论坛 > @@ -3774,6 +3808,23 @@ pageLoading(); // 自动无缝翻页 + // [Discuz! 论坛] 判断各版块帖子列表类型 + function discuzForum() { + if (document.getElementById('autopbn')) { // 判断是否有 [下一页] 按钮 + curSite = DBSite.discuz_forum; + } else if (document.getElementById('waterfall')) { // 判断是否为图片模式 + curSite = DBSite.discuz_waterfall; waterfallStyle(); // 图片模式列表样式预处理 + } else { + curSite = DBSite.discuz_guide; + } + } + // [Discuz! 论坛] 判断帖子内 + function discuzThread() { + if (GM_getValue('menu_discuz_thread_page')) { + curSite = DBSite.discuz_thread; + hidePgbtn(); // 隐藏帖子内的 [下一页] 按钮 + } + } // [Discuz! 论坛] 隐藏帖子内的 [下一页] 按钮 function hidePgbtn() { document.lastElementChild.appendChild(document.createElement('style')).textContent = '.pgbtn {display: none;}'; @@ -4832,7 +4883,7 @@ if (support) { console.info('[自动无缝翻页] - 其他网站(独立规则)'); return 1; - } else if (document.querySelector('meta[name="author"][content*="Discuz!"], meta[name="generator"][content*="Discuz!"]') || (document.querySelector('a[href*="www.discuz.net"]') && document.querySelector('a[href*="www.discuz.net"]').textContent.indexOf('Discuz!') > -1) || (document.getElementById('ft') && document.getElementById('ft').textContent.indexOf('Discuz!') > -1)) { + } else if (document.querySelector('meta[name="author"][content*="Discuz!"], meta[name="generator"][content*="Discuz!"]') || document.querySelector('body[id="nv_forum"][class^="pg_"][onkeydown*="27"]') || document.querySelector('body[id="nv_search"][onkeydown*="27"]') || (document.querySelector('a[href*="www.discuz.net"]') && document.querySelector('a[href*="www.discuz.net"]').textContent.indexOf('Discuz!') > -1) || (document.getElementById('ft') && document.getElementById('ft').textContent.indexOf('Discuz!') > -1)) { console.info('[自动无缝翻页] - Discuz! 论坛'); return 2; } else if (document.getElementById('flarum-loading')) { console.info('[自动无缝翻页] - Flarum 论坛'); return 3; From 00b04d38cb024b409a809a11e807ac2e1d0fa511 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Thu, 7 Oct 2021 12:43:45 +0800 Subject: [PATCH 0009/1773] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E4=BB=A3?= =?UTF-8?q?=E7=A0=81(=E6=8F=92=E5=85=A5=20CSS=20Style=20=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E7=9B=B8=E5=85=B3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 162 ++++++++++++++++++++--------------------------- 1 file changed, 70 insertions(+), 92 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index b9fc53a89..1b81bcdc7 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.7.6 +// @version 2.7.7 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、煎蛋网、糗事百科、龙的天空、起点小说、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 *://*/* @@ -140,6 +140,7 @@ }, // Discuz! - 图片模式的各版块帖子列表(不带无缝加载下一页按钮的) discuz_thread: { SiteTypeID: 0, + insStyle: '.pgbtn {display: none;}', pager: { type: 1, nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(string(), "下一页")][@href][not(contains(@href, "javascript"))]', @@ -214,7 +215,7 @@ baidu: { SiteTypeID: 0, host: 'www.baidu.com', - functionStart: function() {curSite = DBSite.baidu; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.new-pmd .c-img-border {position: initial !important;} .op-bk-polysemy-video__wrap.c-gap-bottom {display: none !important;}';}, + insStyle: '.new-pmd .c-img-border {position: initial !important;} .op-bk-polysemy-video__wrap.c-gap-bottom {display: none !important;}', pager: { type: 1, nextLink: 'id("page")//a[contains(text(),"下一页")][@href]', @@ -246,10 +247,11 @@ SiteTypeID: 0, host: ['www.bing.com','cn.bing.com'], functionStart: function() {if (location.pathname === '/search') { - curSite = DBSite.bing; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.b_imagePair.square_mp > .inner {display: none;}'; + curSite = DBSite.bing; } else if (location.pathname === '/academic/search') { - curSite = DBSite.bing_academic; document.lastElementChild.appendChild(document.createElement('style')).textContent = 'li.aca_algo_count {display: none !important;}'; + curSite = DBSite.bing_academic; }}, + insStyle: '.b_imagePair.square_mp > .inner {display: none !important;}', pager: { type: 1, nextLink: '//a[contains(@class,"sb_pagN")][@href]', @@ -318,7 +320,7 @@ so: { SiteTypeID: 0, host: 'www.so.com', - functionStart: function() {if (location.pathname != '/') {curSite = DBSite.so; document.lastElementChild.appendChild(document.createElement('style')).textContent = 'img {opacity: 1 !important;}'}}, + functionStart: function() {if (location.pathname != '/') {curSite = DBSite.so; insStyle('img {opacity: 1 !important;}')}}, pager: { type: 1, nextLink: 'css;#snext[href]', @@ -434,12 +436,13 @@ host: 'tieba.baidu.com', functionStart: function() {if (location.pathname === '/f') { baidu_tieba_1(); // 右侧悬浮发帖按钮点击事件(解决自动翻页导致无法发帖的问题) - curSite = DBSite.baidu_tieba; document.lastElementChild.appendChild(document.createElement('style')).textContent = 'img.j_retract {margin-top: 0 !important;margin-bottom: 0 !important;}'; // 修复帖子列表中预览图片,在切换下一个/上一个图片时,多出来的图片上下边距 + curSite = DBSite.baidu_tieba; //} else if (location.pathname.indexOf('/p/') > -1) { //curSite = DBSite.baidu_tieba_post; } else if (location.pathname === '/f/search/res') { curSite = DBSite.baidu_tieba_search; }}, + insStyle: 'img.j_retract {margin-top: 0 !important;margin-bottom: 0 !important;}', // 修复帖子列表中预览图片,在切换下一个/上一个图片时,多出来的图片上下边距 pager: { type: 4, nextLink: baidu_tieba_functionNext, @@ -768,7 +771,7 @@ qiushibaike: { SiteTypeID: 0, host: 'www.qiushibaike.com', - functionStart: function() {document.lastElementChild.appendChild(document.createElement('style')).textContent = '.qrcode-wrap, .qrcode-wrap-img, .index-side-left-AD1 {display: none !important;}'; + functionStart: function() {insStyle('.qrcode-wrap, .qrcode-wrap-img, .index-side-left-AD1 {display: none !important;}'); if (location.pathname === '/') { curSite = DBSite.qiushibaike; } else if (location.pathname.indexOf('/article/') === -1) { @@ -896,8 +899,8 @@ curSite = DBSite.libaclub_prt; } else if (location.pathname === '/facade.php') { curSite = DBSite.libaclub_search; - } - document.lastElementChild.appendChild(document.createElement('style')).textContent = 'li.ui-list-merchant-ad, .ui-nav-appImage {display: none !important;}';}, + }}, + insStyle: 'li.ui-list-merchant-ad, .ui-nav-appImage {display: none !important;}', pager: { type: 1, nextLink: '//div[@class="ui-crumbs-more"]/a[@class="fn-link"][1]', @@ -909,6 +912,7 @@ }, // 篱笆网论坛 libaclub_f: { SiteTypeID: 0, + insStyle: 'li.ui-list-merchant-ad, .ui-nav-appImage {display: none !important;}', pager: { type: 1, nextLink: '//div[@class="ui-paging"]/a[@class="ui-paging-next"]', @@ -920,6 +924,7 @@ }, // 篱笆网论坛 - 各版块帖子列表 libaclub_t: { SiteTypeID: 0, + insStyle: 'li.ui-list-merchant-ad, .ui-nav-appImage {display: none !important;}', pager: { type: 1, nextLink: 'css;a.ui-paging-next', @@ -931,6 +936,7 @@ }, // 篱笆网论坛 - 帖子内 libaclub_prt: { SiteTypeID: 0, + insStyle: 'li.ui-list-merchant-ad, .ui-nav-appImage {display: none !important;}', pager: { type: 1, nextLink: 'css;a.ui-paging-next', @@ -942,6 +948,7 @@ }, // 篱笆网论坛 - 帖子内 - 打印版 libaclub_search: { SiteTypeID: 0, + insStyle: 'li.ui-list-merchant-ad, .ui-nav-appImage {display: none !important;}', pager: { type: 1, nextLink: '//div[@class="ui-page"]/a[contains(text(), "下一页")]', @@ -1123,12 +1130,13 @@ _58pic: { SiteTypeID: 0, host: 'www.58pic.com', - functionStart: function() {document.lastElementChild.appendChild(document.createElement('style')).textContent = '.qt-model-t, .qtw-card.place-box.is-one, .search-v3-row .search-v3-back {display: none !important;}'; // 隐藏登录弹窗等 + functionStart: function() {insStyle('.qt-model-t, .qtw-card.place-box.is-one, .search-v3-row .search-v3-back {display: none !important;}'); // 隐藏登录弹窗 if (location.pathname.indexOf('/tupian/') > -1) { - curSite = DBSite._58pic; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.qtw-card.place-box.is-two {display: none !important;}'; // 隐藏末尾很大的 [下一页] 按钮 + curSite = DBSite._58pic; } else if (location.pathname.indexOf('/c/') > -1) { curSite = DBSite._58pic_c; }}, + insStyle: '.qtw-card.place-box.is-two {display: none !important;}', // 隐藏登录弹窗、隐藏末尾很大的 [下一页] 按钮 pager: { type: 1, nextLink: '//div[contains(@class,"page-box")]//a[text()="下一页"][@href]', @@ -1269,7 +1277,7 @@ ali213_gl: { SiteTypeID: 0, host: 'gl.ali213.net', - functionStart: function() {curSite = DBSite.ali213_gl; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.n_show_b {display: none !important;}';}, + insStyle: '.n_show_b {display: none !important;}', pager: { type: 3, nextLink: '//a[@class="next n"][@href]', @@ -1283,7 +1291,7 @@ ali213_pic: { SiteTypeID: 0, host: 'pic.ali213.net', - functionStart: function() {curSite = DBSite.ali213_pic; document.lastElementChild.appendChild(document.createElement('style')).textContent = 'a.prev, a.next {display: none !important;}';}, + insStyle: 'a.prev, a.next {display: none !important;}', pager: { type: 1, nextLink: 'css;a.next[href]', @@ -1408,7 +1416,7 @@ crackhub: { SiteTypeID: 0, host: 'crackhub.site', - functionStart: function() {curSite = DBSite.crackhub; document.lastElementChild.appendChild(document.createElement('style')).textContent = 'html.wp-dark-mode-active .inside-article {background-color: var(--wp-dark-mode-bg);}';}, + insStyle: 'html.wp-dark-mode-active .inside-article {background-color: var(--wp-dark-mode-bg);}', pager: { type: 1, nextLink: '//a[@class="next page-numbers"][@href]', @@ -1507,9 +1515,8 @@ zxzj: { SiteTypeID: 0, host: 'www.zxzj.me', - functionStart: function() {if (location.pathname != '/' && location.pathname.indexOf('/detail/') === -1) { - curSite = DBSite.zxzj; document.lastElementChild.appendChild(document.createElement('style')).textContent = 'div.stui-page__all {display: none !important;}'; - }}, + functionStart: function() {if (location.pathname != '/' && location.pathname.indexOf('/detail/') === -1) {curSite = DBSite.zxzj;}}, + insStyle: 'div.stui-page__all {display: none !important;}', pager: { type: 1, nextLink: '//ul[contains(@class, "stui-page__item")]//a[contains(text(), "下一页")]', @@ -1709,7 +1716,7 @@ yinfans: { SiteTypeID: 0, host: 'www.yinfans.net', - functionStart: function() {curSite = DBSite.yinfans; document.lastElementChild.appendChild(document.createElement('style')).textContent = '#post_container {height: auto !important;} #post_container > li {position: static !important; float: left !important; height: 620px !important;}';}, + insStyle: '#post_container {height: auto !important;} #post_container > li {position: static !important; float: left !important; height: 620px !important;}', pager: { type: 1, nextLink: 'css;a.next[href]', @@ -1917,9 +1924,9 @@ host: /bthaha/, functionStart: function() {if (location.pathname.indexOf('/search/') > -1) { curSite = DBSite.bthaha; - document.lastElementChild.appendChild(document.createElement('style')).textContent = '[id^="list_top"], [id^="list_bottom"] {display: none !important;}'; document.querySelectorAll('[id^="list_top"], [id^="list_bottom"]').forEach(function (one) {one.parentElement.parentElement.hidden = true;}); }}, + insStyle: '[id^="list_top"], [id^="list_bottom"] {display: none !important;}', pager: { type: 1, nextLink: '//ul[@class="pagination"]/li/a[contains(text(), "下一页")]', @@ -2002,7 +2009,7 @@ qidian_read: { SiteTypeID: 0, host: 'read.qidian.com', - functionStart: function() {if (location.pathname.indexOf('/chapter/') > -1) {curSite = DBSite.qidian_read; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.admire-wrap {display: none !important;}';}}, + insStyle: '.admire-wrap {display: none !important;}', pager: { type: 1, nextLink: 'css;a[id$="chapterNext"][href]', @@ -2091,7 +2098,7 @@ SiteTypeID: 0, host: 'www.linovel.net', functionStart: function() {if (/\/book\/\d+\/.+\.html/.test(location.pathname)) { - document.lastElementChild.appendChild(document.createElement('style')).textContent = '.reward-section {display: none !important;}'; + insStyle('.reward-section {display: none !important;}'); } else if (location.pathname.indexOf('/cat/') > -1) { curSite = DBSite.linovel; }}, @@ -2192,12 +2199,12 @@ SiteTypeID: 0, host: ['www.cartoonmad.com','www.cartoonmad.cc'], functionStart: function() {if (location.pathname.indexOf('/comic/') > -1) { - document.lastElementChild.appendChild(document.createElement('style')).textContent = 'body > table > tbody > tr:nth-child(4) > td > table > tbody > tr:first-child > td:not(:first-child) {display: none !important;} body > table > tbody > tr:nth-child(4) > td > table > tbody > tr:first-child > td:first-child img {max-width: 100%;height: auto;display: block !important;margin: 0 auto !important;}'; document.querySelector('body > table > tbody > tr:nth-child(4) > td > table > tbody > tr:first-child > td:first-child > a').href = 'javascript:void(0);'; // 清理图片上的链接 curSite = DBSite.cartoonmad; } else if (location.pathname != '/') { curSite = DBSite.cartoonmad_list; }}, + insStyle: 'body > table > tbody > tr:nth-child(4) > td > table > tbody > tr:first-child > td:not(:first-child) {display: none !important;} body > table > tbody > tr:nth-child(4) > td > table > tbody > tr:first-child > td:first-child img {max-width: 100%;height: auto;display: block !important;margin: 0 auto !important;}', pager: { type: 1, nextLink: cartoonmad_functionNext, @@ -2229,12 +2236,13 @@ location.reload(); // 刷新网页 } setTimeout(manhuacat_init, 100); - curSite = DBSite.manhuacat; document.lastElementChild.appendChild(document.createElement('style')).textContent = '#left, #right, #pull-load, .loading, .pagination, footer {display: none !important;} .img-content > img {display: block !important;margin: 0 auto !important; border: none !important; padding: 0 !important; max-width: 99% !important; height: auto !important;}'; // 隐藏不需要的元素,调整图片 + curSite = DBSite.manhuacat; } else if (location.pathname.indexOf('/list') > -1) { curSite = DBSite.manhuacat_list; } else if (location.pathname.indexOf('/search') > -1 || location.pathname.indexOf('/update') > -1) { curSite = DBSite.manhuacat_search; }}, + insStyle: '#left, #right, #pull-load, .loading, .pagination, footer {display: none !important;} .img-content > img {display: block !important;margin: 0 auto !important; border: none !important; padding: 0 !important; max-width: 99% !important; height: auto !important;}', // 隐藏不需要的元素,调整图片 pager: { type: 4, nextLink: manhuacat_functionNext, @@ -2275,7 +2283,6 @@ SiteTypeID: 0, host: 'www.manhuadb.com', functionStart: function() {if (/\/manhua\/\d+\/.+\.html/.test(location.pathname)) { - document.lastElementChild.appendChild(document.createElement('style')).textContent = '.row.m-0.pt-3.ad_2_wrap, .row.m-0.ad_1_wrap, .pagination.justify-content-center, #left, #right {display: none !important;}'; if (document.querySelector('img.img-fluid.show-pic')) document.querySelector('img.img-fluid.show-pic').style.display = 'none'; // 隐藏第一个图片(避免重复) setTimeout(manhuadb_init, 100); curSite = DBSite.manhuadb; @@ -2284,6 +2291,7 @@ } else if (location.pathname.indexOf('/search') > -1 || location.pathname.indexOf('/update') > -1) { curSite = DBSite.manhuacat_search; }}, + insStyle: '.row.m-0.pt-3.ad_2_wrap, .row.m-0.ad_1_wrap, .pagination.justify-content-center, #left, #right {display: none !important;}', pager: { type: 4, nextLink: manhuadb_functionNext, @@ -2298,10 +2306,10 @@ SiteTypeID: 0, host: 'www.hicomic.net', functionStart: function() {if (location.pathname.indexOf('/chapters/') > -1) { - document.lastElementChild.appendChild(document.createElement('style')).textContent = '.content {height: auto !important;} .footer, .left_cursor, .right_cursor, .finish {display: none !important;} .content > img {display: block !important;margin: 0 auto !important;}'; setTimeout(hicomic_init, 100); curSite = DBSite.hicomic; }}, + insStyle: '.content {height: auto !important;} .footer, .left_cursor, .right_cursor, .finish {display: none !important;} .content > img {display: block !important;margin: 0 auto !important;}', pager: { type: 4, nextLink: hicomic_functionNext, @@ -2320,12 +2328,13 @@ location.reload(); // 刷新网页 } setTimeout(dmzj_init, 100); - curSite = DBSite.dmzj; document.lastElementChild.appendChild(document.createElement('style')).textContent = 'p.mh_curr_page, .btmBtnBox, .float_code, #floatCode {display: none !important;} .comic_wraCon > img {display: block !important;margin: 0 auto !important; border: none !important; padding: 0 !important; max-width: 99% !important; height: auto !important;}'; // 隐藏中间的页数信息 + curSite = DBSite.dmzj; } else if (location.pathname.indexOf('/category') > -1 || location.pathname.indexOf('/update') > -1) { - curSite = DBSite.dmzj_list; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.wrap_mhlist_l.con_left, .wrap_list {height: auto!important;}'; + curSite = DBSite.dmzj_list; } else if (location.pathname.indexOf('/rank') > -1) { - curSite = DBSite.dmzj_rank; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.wrap_mhlist_l.con_left {height: auto!important;}'; + curSite = DBSite.dmzj_rank; }}, + insStyle: 'p.mh_curr_page, .btmBtnBox, .float_code, #floatCode {display: none !important;} .comic_wraCon > img {display: block !important;margin: 0 auto !important; border: none !important; padding: 0 !important; max-width: 99% !important; height: auto !important;}', // 隐藏中间的页数信息 pager: { type: 4, nextLink: dmzj_functionNext, @@ -2338,6 +2347,7 @@ }, // 动漫之家 - 原创 dmzj_list: { SiteTypeID: 0, + insStyle: '.wrap_mhlist_l.con_left, .wrap_list {height: auto!important;}', pager: { type: 1, nextLink: 'css;a.pg_next[href]', @@ -2349,6 +2359,7 @@ }, // 动漫之家 - 原创 - 分类页 dmzj_rank: { SiteTypeID: 0, + insStyle: '.wrap_mhlist_l.con_left {height: auto!important;}', pager: { type: 1, nextLink: 'css;a.pg_next[href]', @@ -2365,14 +2376,11 @@ let chapterScroll = document.getElementById('qiehuan_txt') // 强制为 [上下滚动阅读] 模式 if (chapterScroll && chapterScroll.textContent === '切换到上下滚动阅读') {chapterScroll.click();} setTimeout(dmzj_manhua_init, 100); - curSite = DBSite.dmzj_manhua; document.lastElementChild.appendChild(document.createElement('style')).textContent = 'p.curr_page, .btmBtnBox, .float_code, #floatCode {display: none !important;} #center_box > img {display: block !important;margin: 0 auto !important; border: none !important; padding: 0 !important; max-width: 99% !important; height: auto !important;}'; // 隐藏中间的页数信息 - /*} else if (location.pathname.indexOf('/tags/search') > -1) { - curSite = DBSite.dmzj_manhua_search; - } else if (location.pathname.indexOf('/tags/') > -1) { - curSite = DBSite.dmzj_manhua_list;*/ + curSite = DBSite.dmzj_manhua; } else if (location.pathname.indexOf('/update') > -1) { curSite = DBSite.dmzj_manhua_update; }}, + insStyle: 'p.curr_page, .btmBtnBox, .float_code, #floatCode {display: none !important;} #center_box > img {display: block !important;margin: 0 auto !important; border: none !important; padding: 0 !important; max-width: 99% !important; height: auto !important;}', // 隐藏中间的页数信息 pager: { type: 4, nextLink: dmzj_manhua_functionNext, @@ -2383,40 +2391,6 @@ scrollDelta: 3000 } }, // 动漫之家 - 日漫 - dmzj_manhua_search: { - SiteTypeID: 0, - pager: { - type: 1, - nextLink: '//div[@class="pages"]/a[contains(text(), "下一页")]', - forceHTTPS: true, - pageElement: 'css;.tcaricature_block ul', - insertPosition: ['css;.tcaricature_block', 3], - replaceE: 'css;.pages', - scrollDelta: 1000 - }, - function: { - after: function() { - document.body.appendChild(document.createElement('script')).src = document.querySelector('head > script[src*="/js/ps.js"]').src; - } - } - }, //动漫之家 - 日漫 - 搜索页 - dmzj_manhua_list: { - SiteTypeID: 0, - pager: { - type: 1, - nextLink: '//div[@class="pages"]/a[contains(text(), "下一页")]', - forceHTTPS: true, - pageElement: 'css;.tcaricature_block ul', - insertPosition: ['css;.pages', 1], - replaceE: 'css;.pages', - scrollDelta: 1000 - }, - function: { - after: function() { - document.body.appendChild(document.createElement('script')).src = document.querySelector('head > script[src*="/js/csearch.js"]').src; - } - } - }, // 动漫之家 - 日漫 - 分类页 dmzj_manhua_update: { SiteTypeID: 0, pager: { @@ -2432,10 +2406,11 @@ SiteTypeID: 0, host: 'www.copymanga.com', functionStart: function() {if (location.pathname.indexOf('/chapter/') > -1) { - curSite = DBSite.copymanga; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.upMember, .comicContainerAds, .footer {display: none !important;}'; + curSite = DBSite.copymanga; } else if (location.pathname.indexOf('/comics') > -1) { curSite = DBSite.copymanga_list; }}, + insStyle: '.upMember, .comicContainerAds, .footer {display: none !important;}', pager: { type: 4, nextLink: copymanga_functionNext, @@ -2465,12 +2440,13 @@ SiteTypeID: 0, host: 'www.mhxqiu.com', functionStart: function() {if (/\/\d+\.html/.test(location.pathname)) { // 阅读页 - curSite = DBSite.mhxqiu; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.imgFloat_1, .imgFloat_2, .main_control {display: none !important;} body {height: auto !important;}'; + curSite = DBSite.mhxqiu; } else if (/\/\d+\/$/.test(location.pathname)) { // 目录页 setTimeout(function(){if (document.getElementById('zhankai')) document.getElementById('zhankai').click();}, 500) } else if (/\/(sort|rank)\//.test(location.pathname)) { // 分类页 curSite = DBSite.mhxqiu_list; }}, + insStyle: '.imgFloat_1, .imgFloat_2, .main_control {display: none !important;} body {height: auto !important;}', pager: { type: 4, nextLink: mhxqiu_functionNext, @@ -2498,10 +2474,11 @@ functionStart: function() {if (/\/\d+.+\.html/.test(location.pathname)) { let chapterScroll = document.getElementById('chapter-scroll') // 强制为 [下拉阅读] 模式 if (chapterScroll && chapterScroll.className === '') {chapterScroll.click();} - curSite = DBSite.gufengmh; document.lastElementChild.appendChild(document.createElement('style')).textContent = 'p.img_info {display: none !important;}'; // 隐藏中间的页数信息 + curSite = DBSite.gufengmh; } else if (location.pathname.indexOf('/update') > -1 || location.pathname.indexOf('/list') > -1 || location.pathname.indexOf('/search') > -1) { curSite = DBSite.gufengmh_list; }}, + insStyle: 'p.img_info {display: none !important;}', // 隐藏中间的页数信息 pager: { type: 4, nextLink: gufengmh_functionNext, @@ -2526,7 +2503,8 @@ szcdmj: { SiteTypeID: 0, host: 'www.szcdmj.com', - functionStart: function() {if (location.pathname.indexOf('/szcchapter/') > -1) {curSite = DBSite.szcdmj; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.header {opacity: 0.3 !important;}';}}, + functionStart: function() {if (location.pathname.indexOf('/szcchapter/') > -1) {curSite = DBSite.szcdmj;}}, + insStyle: '.header {opacity: 0.3 !important;}', pager: { type: 1, nextLink: '//div[@class="fanye"][1]/a[@href][text()="下一页" or text()="下一话"]', @@ -2545,12 +2523,12 @@ functionStart: function() {if (/\/m\d+/.test(location.pathname)) { setTimeout(mangabz_init, 500); curSite = DBSite.mangabz; - document.lastElementChild.appendChild(document.createElement('style')).textContent = 'body > .container > div:not([id]) {display: none !important;} .top-bar {opacity: 0.3 !important;} #cp_img > img{display: block !important;margin: 0 auto !important;width: auto !important; height: auto !important;}'; } else if (/\/\d+bz\//.test(location.pathname)) { if (document.querySelector('.detail-list-form-more')) document.querySelector('.detail-list-form-more').click(); } else if (location.pathname.indexOf('/manga-list') > -1 || location.pathname === '/search') { curSite = DBSite.mangabz_list; }}, + insStyle: 'body > .container > div:not([id]) {display: none !important;} .top-bar {opacity: 0.3 !important;} #cp_img > img{display: block !important;margin: 0 auto !important;width: auto !important; height: auto !important;}', pager: { type: 4, nextLink: mangabz_functionNext, @@ -3332,6 +3310,7 @@ }, // 谷歌学术 bing_academic: { SiteTypeID: 0, + insStyle: 'li.aca_algo_count {display: none !important;}', pager: { type: 1, nextLink: 'css;a.sb_pagN[href]', @@ -3540,8 +3519,9 @@ SiteTypeID: 0, host: 'www.runoob.com', functionStart: function() {if (location.pathname.split('/').length > 2) { - curSite = DBSite.runoob; document.body.appendChild(document.createElement('style')).textContent = '#comments, #postcomments, #respond, #footer {display: none !important;} .article-intro h1:not(:nth-of-type(1)) {margin: 30px 0 10px 0;}'; + curSite = DBSite.runoob; }}, + insStyle: '#comments, #postcomments, #respond, #footer {display: none !important;} .article-intro h1:not(:nth-of-type(1)) {margin: 30px 0 10px 0;}', pager: { type: 1, nextLink: function() { // 过滤部分非本页的参考手册 @@ -3565,7 +3545,7 @@ netbian: { SiteTypeID: 0, host: 'pic.netbian.com', - functionStart: function() {curSite = DBSite.netbian; document.lastElementChild.appendChild(document.createElement('style')).textContent = 'li.nextpage {display: none !important;}';}, + insStyle: 'li.nextpage {display: none !important;}', pager: { type: 1, nextLink: '//div[@class="page"]/a[contains(text(),"下一页")]', @@ -3579,7 +3559,8 @@ ioliu: { SiteTypeID: 0, host: 'bing.ioliu.cn', - functionStart: function() {if (location.pathname.indexOf('/photo/') === -1 && location.pathname.indexOf('.html') === -1) {curSite = DBSite.ioliu; document.head.appendChild(document.createElement('base')).target = '_blank'; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.progressive--not-loaded {filter: none !important;}';}}, + functionStart: function() {if (location.pathname.indexOf('/photo/') === -1 && location.pathname.indexOf('.html') === -1) {curSite = DBSite.ioliu; document.head.appendChild(document.createElement('base')).target = '_blank';}}, + insStyle: '.progressive--not-loaded {filter: none !important;}', pager: { type: 1, nextLink: '//div[@class="page"]/a[@href][contains(text(), "下一页")]', @@ -3621,7 +3602,7 @@ if (location.pathname.indexOf('/gallery/') > -1 || location.pathname.indexOf('/tag/') > -1) { curSite = DBSite.fnvshen; } else if (location.pathname.indexOf('/g/') > -1) { - curSite = DBSite.fnvshen_g; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.yalayi_box {display: none !important; margin: -4px 0 !important;}'; + curSite = DBSite.fnvshen_g; } else if (/\/article\/\d+\//.test(location.pathname)) { curSite = DBSite.fnvshen_article; } else if (location.pathname.indexOf('/article/') > -1) { @@ -3642,6 +3623,7 @@ }, // 宅男女神 fnvshen_g: { SiteTypeID: 0, + insStyle: '.yalayi_box {display: none !important; margin: -4px 0 !important;}', pager: { type: 1, nextLink: 'id("pages")/a[@href][contains(text(), "下一页")]', @@ -3720,7 +3702,7 @@ case 'pg_forumdisplay': // < 各版块帖子列表 > discuzForum(); break; case 'pg_viewthread': // < 帖子内 > - discuzThread(); break; + if (GM_getValue('menu_discuz_thread_page')) curSite = DBSite.discuz_thread; break; case 'pg_guide': // < 导读帖子列表等 > curSite = DBSite.discuz_guide; break; case 'pg_collection': // < 淘贴列表 > @@ -3739,7 +3721,7 @@ if (location.pathname.indexOf('/forum-') > -1) { // < 各版块帖子列表 > discuzForum(); } else if (location.pathname.indexOf('/thread-') > -1) { // < 帖子内 > - discuzThread(); + if (GM_getValue('menu_discuz_thread_page')) curSite = DBSite.discuz_thread; } } } @@ -3748,7 +3730,7 @@ if (location.search.indexOf('mod=forumdisplay') > -1 || location.pathname.indexOf('forumdisplay.php') > -1) { // < 各版块帖子列表 > discuzForum(); } else if (location.search.indexOf('mod=viewthread') > -1 || location.pathname.indexOf('viewthread.php') > -1) { // < 帖子内 > - discuzThread(); + if (GM_getValue('menu_discuz_thread_page')) curSite = DBSite.discuz_thread; } else if (location.search.indexOf('mod=guide') > -1) { // < 导读帖子列表 > curSite = DBSite.discuz_guide; } else if(location.search.indexOf('mod=space') > -1 && location.search.indexOf('do=thread') > -1) { // 别人的主题/回复 @@ -3758,7 +3740,7 @@ } else if (document.getElementById('threadlist')) { // < 部分论坛的各板块 URL 是自定义的 > discuzForum(); } else if (document.getElementById('postlist')) { // < 部分论坛的帖子内 URL 是自定义的 > - discuzThread(); + if (GM_getValue('menu_discuz_thread_page')) curSite = DBSite.discuz_thread; } } // < 所有 Flarum 论坛 > @@ -3802,6 +3784,7 @@ }) } } + if (curSite.insStyle) insStyle(curSite.insStyle) curSite.pageUrl = ''; // 下一页URL //console.log(curSite); @@ -3818,21 +3801,16 @@ curSite = DBSite.discuz_guide; } } - // [Discuz! 论坛] 判断帖子内 - function discuzThread() { - if (GM_getValue('menu_discuz_thread_page')) { - curSite = DBSite.discuz_thread; - hidePgbtn(); // 隐藏帖子内的 [下一页] 按钮 - } - } - // [Discuz! 论坛] 隐藏帖子内的 [下一页] 按钮 - function hidePgbtn() { - document.lastElementChild.appendChild(document.createElement('style')).textContent = '.pgbtn {display: none;}'; - } // [Discuz! 论坛] 图片模式列表样式预处理 function waterfallStyle() { let width = document.querySelector('#waterfall > li:first-child').style.width; - document.lastElementChild.appendChild(document.createElement('style')).textContent = `#waterfall {height: auto !important; width: 100% !important;} #waterfall > li {width: ${width} !important; float: left !important; position: inherit !important; left: auto !important; top: auto !important;}`; + insStyle(`#waterfall {height: auto !important; width: 100% !important;} #waterfall > li {width: ${width} !important; float: left !important; position: inherit !important; left: auto !important; top: auto !important;}`); + } + + + // 插入 Style 样式 + function insStyle(style) { + document.lastElementChild.appendChild(document.createElement('style')).textContent = style; } From 6753b19bcf66df22c509f9ae40510f25b713e7f0 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Thu, 7 Oct 2021 12:53:34 +0800 Subject: [PATCH 0010/1773] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[Discuz!]=20?= =?UTF-8?q?=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 1b81bcdc7..f1198f344 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.7.7 +// @version 2.7.8 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、煎蛋网、糗事百科、龙的天空、起点小说、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 *://*/* @@ -77,6 +77,7 @@ /* 自动翻页规则 locationchange: 对于使用 pjax 技术的网站,需要监听 URL 变化来重新判断翻页规则 + insStyle: 要插入网页的 CSS Style 样式 type: 1 = 由脚本实现自动无缝翻页 2 = 网站自带了自动无缝翻页功能,只需要点击下一页按钮即可 @@ -120,7 +121,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(string(), "下一页")][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next")][@href][not(contains(@href, "javascript"))]', pageElement: 'css;#threadlist table > tbody[id^="normalthread_"]', insertPosition: ['id("threadlist")//table/tbody[starts-with(@id, "normalthread_")]/parent::table', 3], replaceE: 'css;.pg, .pages', @@ -131,7 +132,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(string(), "下一页")][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next")][@href][not(contains(@href, "javascript"))]', pageElement: 'css;#waterfall > li', insertPosition: ['css;#waterfall', 3], replaceE: 'css;.pg, .pages', @@ -143,7 +144,7 @@ insStyle: '.pgbtn {display: none;}', pager: { type: 1, - nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(string(), "下一页")][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next")][@href][not(contains(@href, "javascript"))]', pageElement: 'css;#postlist > div[id^="post_"]', insertPosition: ['css;#postlist', 3], replaceE: 'css;.pg, .pages', @@ -158,7 +159,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(string(), "下一页")][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next")][@href][not(contains(@href, "javascript"))]', pageElement: 'css;#threadlist > ul', insertPosition: ['css;#threadlist', 3], replaceE: 'css;.pg, .pages', @@ -169,7 +170,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(string(), "下一页")][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next")][@href][not(contains(@href, "javascript"))]', pageElement: 'css;tbody > tr:not(.th)', insertPosition: ['css;tbody', 3], replaceE: 'css;.pg, .pages', @@ -180,7 +181,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[contains(@class, "nxt") or contains(@class, "next") or contains(string(), "下一页")][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next")][@href][not(contains(@href, "javascript"))]', pageElement: 'css;#ct .bm_c table > tbody', insertPosition: ['css;#ct .bm_c table', 3], replaceE: 'css;.pg, .pages', From cf772ae1a3f319415ecb88fdf64e8c7274b371cc Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Thu, 7 Oct 2021 14:17:15 +0800 Subject: [PATCH 0011/1773] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E7=BE=8E?= =?UTF-8?q?=E5=9B=BD=206]=20=E5=8A=A0=E9=80=9F=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GithubEnhanced-High-Speed-Download.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GithubEnhanced-High-Speed-Download.user.js b/GithubEnhanced-High-Speed-Download.user.js index ec205fa8d..d45de5119 100644 --- a/GithubEnhanced-High-Speed-Download.user.js +++ b/GithubEnhanced-High-Speed-Download.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name Github 增强 - 高速下载 -// @version 1.6.2 +// @version 1.6.3 // @author X.I.U // @description 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件、项目列表单文件快捷下载 (☁) // @match *://github.com/* @@ -41,13 +41,13 @@ fontColor = '#97a0aa'; } } - //['https://git.yumenaka.net', '美国'], const download_url = [ ['https://gh.api.99988866.xyz', '美国 1'], ['https://github.91chifun.workers.dev', '美国 2'], ['https://gh.xiu2.xyz', '美国 3'], ['https://gh.argv.cc', '美国 4'], ['https://pd.zwc365.com/seturl', '美国 5'], + ['https://git.yumenaka.net', '美国 6'], ['https://download.fastgit.org', '日本'], ['https://ghproxy.com', '韩国'] ], From 17c4040b52213944e7b5a7cfe51dba3b25cb7686 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Thu, 7 Oct 2021 16:06:57 +0800 Subject: [PATCH 0012/1773] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E5=9B=BE=E6=A0=87(=E6=94=B9=E4=B8=BA=20base64=20?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=A0=BC=E5=BC=8F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 2 +- DarkMode.user.js | 2 +- TargetBlank.user.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index f1198f344..1706d9164 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -4,7 +4,7 @@ // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、煎蛋网、糗事百科、龙的天空、起点小说、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 *://*/* -// @icon https://i.loli.net/2021/03/07/rdijeYm83pznxWq.png +// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAALfElEQVRYhX2Xe3Bd1XXGf3vvc859X+nq6nUlW5Yly7JlI2xsYzAwtnk4ATpAxkNTHm0mnaTT/gHTTvrIBDLTpp1JUoZpp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HmQfKGAHW3CS6fR+QClmYuYMyPY265DtPVgtfctiw4V/GcfYfGNQzj3/u4DqlormUoZEQwuc0I//eSnY4G0wPJjmdGhw+mh0fWxNZ0037cXccPd1MXgk+GjNE/tR3+Le+YEyg5TnT6LXlwgcu1u7C99HZlsv3K2+vjvkTs2RvDe3747tm7Dy1SKvzSYPP/MLwxFAkIKEzEye2zswOXX395lJyK0fOFzRHfuglQfqPin59Nn0RNDuJk09vprkd0brmx5H7xCbfgQbrZ83OkfvN1pj0+ZmkBYNhjzCwCeffr/AsBDJyU6kqBwbPzRuTcP/GXV82lYlaJpfQ+BjVdhXX0tNKTAjvzKqKXPTeC++1NKY0c9kVz1SGzb9X8tjIdfzSFCDfUw/noA0scPuxBrwcvmmH3rQIvMm3/y0XdJS4JfIpiIUG9g+wcg6KDnZpGZNDQ0Ii5cSAtlPRHYct13axWvJNwadiiAli4iEP8VAJ89HQtR129TLiG1nos0Nt8dSOi12qi9lRq3utVqT/lirql24hW3vLBQi3d3XUqu73+PZOonBNR/WnbYSMeGTO5/Xf6ZtwDwPwtFRezQVs+sAAAAAElFTkSuQmCC // @grant GM_xmlhttpRequest // @grant GM_registerMenuCommand // @grant GM_unregisterMenuCommand diff --git a/DarkMode.user.js b/DarkMode.user.js index e59dc6b7d..82a1c7a2e 100644 --- a/DarkMode.user.js +++ b/DarkMode.user.js @@ -6,7 +6,7 @@ // @match *://*/* // @exclude *://*.iqiyi.com/* // @exclude *://*.youku.com/* -// @icon https://i.loli.net/2021/03/07/rdijeYm83pznxWq.png +// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAALfElEQVRYhX2Xe3Bd1XXGf3vvc859X+nq6nUlW5Yly7JlI2xsYzAwtnk4ATpAxkNTHm0mnaTT/gHTTvrIBDLTpp1JUoZppqHQls5AKTR2INOWJJQSXF4x2BhsJCRZ8kuWZckPSVf3/Trn7N3RVTFpQrNn1l97n7O/vda31reWMKMPcmUJA9U8vrwHG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mh0fWxNZ0037cXccPd1MXgk+GjNE/tR3+Le+YEyg5TnT6LXlwgcu1u7C99HZlsv3K2+vjvkTs2RvDe3747tm7Dy1SKvzSYPP/MLwxFAkIKEzEye2zswOXX395lJyK0fOFzRHfuglQfqPin59Nn0RNDuJk09vprkd0brmx5H7xCbfgQbrZ83OkfvN1pj0+ZmkBYNhjzCwCeffr/AsBDJyU6kqBwbPzRuTcP/GXV82lYlaJpfQ+BjVdhXX0tNKTAjvzKqKXPTeC++1NKY0c9kVz1SGzb9X8tjIdfzSFCDfUw/noA0scPuxBrwcvmmH3rQIvMm3/y0XdJS4JfIpiIUG9g+wcg6KDnZpGZNDQ0Ii5cSAtlPRHYct13axWvJNwadiiAli4iEP8VAJ89HQtR129TLiG1nos0Nt8dSOi12qi9lRq3utVqT/lirql24hW3vLBQi3d3XUqu73+PZOonBNR/WnbYSMeGTO5/Xf6ZtwDwPwtFRezQVs+sAAAAAElFTkSuQmCC // @grant GM_registerMenuCommand // @grant GM_unregisterMenuCommand // @grant GM_openInTab diff --git a/TargetBlank.user.js b/TargetBlank.user.js index 92c350806..386ace884 100644 --- a/TargetBlank.user.js +++ b/TargetBlank.user.js @@ -4,7 +4,7 @@ // @author X.I.U // @description 将网页中所有链接改为新标签页打开~ // @match *://*/* -// @icon https://i.loli.net/2021/03/07/rdijeYm83pznxWq.png +// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAALfElEQVRYhX2Xe3Bd1XXGf3vvc859X+nq6nUlW5Yly7JlI2xsYzAwtnk4ATpAxkNTHm0mnaTT/gHTTvrIBDLTpp1JUoZppqHQls5AKTR2INOWJJQSXF4x2BhsJCRZ8kuWZckPSVf3/Trn7N3RVTFpQrNn1l97n7O/vda31reWMKMPcmUJA9U8vrwHGdqCHn4HPzePaIxhVSoYbYRXrn7BeMVbCUduF6kVUXHwvQP+6amDaqDnoIompmQytaBnTmB8H5lowrjgFss48SBeI/hUEEZeudLi1ywhJEIJ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FAkIKEzEye2zswOXX395lJyK0fOFzRHfuglQfqPin59Nn0RNDuJk09vprkd0brmx5H7xCbfgQbrZ83OkfvN1pj0+ZmkBYNhjzCwCeffr/AsBDJyU6kqBwbPzRuTcP/GXV82lYlaJpfQ+BjVdhXX0tNKTAjvzKqKXPTeC++1NKY0c9kVz1SGzb9X8tjIdfzSFCDfUw/noA0scPuxBrwcvmmH3rQIvMm3/y0XdJS4JfIpiIUG9g+wcg6KDnZpGZNDQ0Ii5cSAtlPRHYct13axWvJNwadiiAli4iEP8VAJ89HQtR129TLiG1nos0Nt8dSOi12qi9lRq3utVqT/lirql24hW3vLBQi3d3XUqu73+PZOonBNR/WnbYSMeGTO5/Xf6ZtwDwPwtFRezQVs+sAAAAAElFTkSuQmCC // @grant none // @license GPL-3.0 License // @run-at document-end From 716d51e0a5ca027589236b982c6990803fcd028c Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Fri, 8 Oct 2021 09:35:25 +0800 Subject: [PATCH 0013/1773] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E9=92=88?= =?UTF-8?q?=E5=AF=B9=E5=8A=A8=E6=80=81=E5=8A=A0=E8=BD=BD=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E7=9A=84=E9=93=BE=E6=8E=A5=E4=BF=AE=E6=94=B9;=E4=BC=98?= =?UTF-8?q?=E5=8C=96=20=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TargetBlank.user.js | 57 ++++++++++++++++++++++++++++++++++----------- 1 file changed, 44 insertions(+), 13 deletions(-) diff --git a/TargetBlank.user.js b/TargetBlank.user.js index 386ace884..562eb1e4b 100644 --- a/TargetBlank.user.js +++ b/TargetBlank.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 新标签页打开链接 -// @version 1.0.3 +// @version 1.0.4 // @author X.I.U // @description 将网页中所有链接改为新标签页打开~ // @match *://*/* @@ -15,23 +15,54 @@ (function() { 'use strict'; - targetBlank(); // 修改为新标签页打开 + targetBlank(); // 修改为新标签页打开 + targetDiscuz(); // 针对 Discuz! 论坛的帖子 + aObserver(); // 针对动态加载内容中的 a 标签 - // 针对 Discuz! 论坛的帖子 - if (document.querySelector('meta[name="author"][content*="Discuz!"], meta[name="generator"][content*="Discuz!"]') || document.getElementById('ft') && document.getElementById('ft').textContent.indexOf('Discuz!') > -1) { - let atarget = document.getElementById('atarget'); - if (atarget && atarget.className.indexOf('atarget_1') === -1) { // 强制勾选 [新窗] - atarget.click(); - } - } - // 修改为新标签页打开 + // 修改为新标签页打开 function targetBlank() { - document.head.appendChild(document.createElement('base')).target = '_blank'; + document.head.appendChild(document.createElement('base')).target = '_blank'; // 让所有链接默认以新标签页打开 Array.from(document.links).forEach(function (_this) { - if (_this.href && _this.href.slice(0,4) === 'http') { - _this.target = '_blank' + if (_this.href && _this.href.slice(0,4) != 'http') { + _this.target = '_self' } }) } + + + // 针对 Discuz! 论坛的帖子 + function targetDiscuz() { + if (document.querySelector('meta[name="author"][content*="Discuz!"], meta[name="generator"][content*="Discuz!"]') || document.querySelector('body[id="nv_forum"][class^="pg_"][onkeydown*="27"]') || document.querySelector('body[id="nv_search"][onkeydown*="27"]') || (document.querySelector('a[href*="www.discuz.net"]') && document.querySelector('a[href*="www.discuz.net"]').textContent.indexOf('Discuz!') > -1) || (document.getElementById('ft') && document.getElementById('ft').textContent.indexOf('Discuz!') > -1)) { + let atarget = document.getElementById('atarget'); + if (atarget && atarget.className.indexOf('atarget_1') === -1) { // 强制勾选 [新窗] + atarget.click(); + } + } + } + + + // 针对动态加载内容中的 a 标签 + function aObserver() { + const callback = (mutationsList, observer) => { + for (const mutation of mutationsList) { + for (const target of mutation.addedNodes) { + if (target.nodeType != 1) return + if (target.tagName === 'A') { + if (target.href && target.href.slice(0,4) != 'http') { + target.target = '_self' + } + } else { + document.querySelectorAll('a').forEach(function (_this) { + if (_this.href && _this.href.slice(0,4) != 'http') { + _this.target = '_self' + } + }); + } + } + } + }; + const observer = new MutationObserver(callback); + observer.observe(document, { childList: true, subtree: true }); + } })(); \ No newline at end of file From 9619f1ac79ae8e53c1fbbd1be8f451eda00957a1 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Fri, 8 Oct 2021 16:10:17 +0800 Subject: [PATCH 0014/1773] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E6=96=B0?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E9=A1=B5=E6=89=93=E5=BC=80=E9=93=BE=E6=8E=A5?= =?UTF-8?q?]=20=E5=8A=9F=E8=83=BD=EF=BC=88=E9=80=82=E9=85=8D=E5=85=A8?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- V2ex-Enhanced.user.js | 83 +++++++++++++++++++------------------------ 1 file changed, 36 insertions(+), 47 deletions(-) diff --git a/V2ex-Enhanced.user.js b/V2ex-Enhanced.user.js index 4c80c759c..a43d38f97 100644 --- a/V2ex-Enhanced.user.js +++ b/V2ex-Enhanced.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name V2EX 增强 -// @version 1.1.2 +// @version 1.1.3 // @author X.I.U // @description 自动签到、链接转图片、自动无缝翻页、回到顶部(右键点击两侧空白处)、快速回复(左键双击两侧空白处)、新标签页打开链接、标签页伪装为 Github(摸鱼) // @match *://v2ex.com/* @@ -77,9 +77,6 @@ var curSite = {SiteTypeID: 0}; // 自动翻页规则 - // HT_insert:1 = 插入该元素本身的前面;2 = 插入该元素当中,第一个子元素前面;3 = 插入该元素当中,最后一个子元素后面;4 = 插入该元素本身的后面; - // scrollDelta:数值越大,滚动条触发点越靠上(越早开始翻页),一般是访问网页速度越慢,该值就需要越大 - // function:before = 插入前执行函数;after = 插入后执行函数;parameter = 参数 let DBSite = { recent: { // 最近主题页 SiteTypeID: 1, @@ -90,10 +87,6 @@ HT_insert: ['//div[@id="Main"]//div[@class="box"]//div[@class="cell"][last()]', 1], replaceE: 'css;#Main > .box > .cell[style]:not(.item) > table', scrollDelta: 1500 - }, - function: { - after: linksBlank, - parameter: '#Main a.topic-link:not([target])' } }, notifications: { // 提醒消息页 @@ -105,10 +98,6 @@ HT_insert: ['css;#notifications', 3], replaceE: 'css;#Main > .box > .cell[style] > table', scrollDelta: 1500 - }, - function: { - after: linksBlank, - parameter: '#Main a[href^="/t/"]:not([target])' } }, replies: { // 用户回复页 @@ -120,10 +109,6 @@ HT_insert: ['//div[@id="Main"]//div[@class="box"]//div[@class="cell"][last()]', 1], replaceE: 'css;#Main > .box > .cell[style] > table', scrollDelta: 1500 - }, - function: { - after: linksBlank, - parameter: '#Main a[href^="/t/"]:not([target])' } }, go: { // 分类主题页 @@ -135,10 +120,6 @@ HT_insert: ['css;#TopicsNode', 3], replaceE: 'css;#Main > .box > .cell[style] > table', scrollDelta: 1500 - }, - function: { - after: linksBlank, - parameter: '#Main a.topic-link:not([target])' } }, reply: { // 帖子内容页 @@ -179,16 +160,13 @@ switch (location.pathname) { case "/": // 首页 - linksBlank('#Main a.topic-link:not([target])'); addChangesLink(); break; case "/recent": // 最近主题页 curSite = DBSite.recent; - linksBlank('#Main a.topic-link:not([target])'); break; case "/notifications": // 提醒消息页 curSite = DBSite.notifications; - linksBlank('#Main a[href^="/t/"]:not([target])'); break; case "/balance": // 账户余额页 curSite = DBSite.balance; @@ -196,23 +174,21 @@ default: if (location.pathname.indexOf('/go/') > -1) { // 分类主题页 curSite = DBSite.go; - linksBlank('#Main a.topic-link:not([target])'); } else if (location.pathname.indexOf('/t/') > -1) { // 帖子内容页 if(menu_value('menu_pageLoading_reply'))curSite = DBSite.reply_positive; // 帖子内自动无缝翻页 if(menu_value('menu_quickReply'))quickReply(); // 快速回复(双击左右两侧空白处) - linksBlank('#Main .box .topic_content a:not([href^="/member"]):not([target])'); } else if (location.pathname.indexOf('/replies') > -1) { // 用户回复页 curSite = DBSite.replies; - linksBlank('#Main a[href^="/t/"]:not([target])'); } } curSite.pageUrl = ''; // 下一页URL - if(menu_value('menu_fish'))fish(); // 标签页伪装为 Github(摸鱼) - if(menu_value('menu_autoClockIn'))setTimeout(qianDao, 1000); // 自动签到(后台),延迟 1 秒执行是为了兼容 [V2ex Plus] 扩展 - if(menu_value('menu_pageLoading'))pageLoading(); // 自动翻页(无缝) - if(menu_value('menu_backToTop'))backToTop(); // 回到顶部(右键点击左右两侧空白处) - if(menu_value('menu_linksToImgs'))linksToImgs(); // 链接转图片 + if(menu_value('menu_linksBlank')) linksBlank(); // 新标签页打开链接 + if(menu_value('menu_fish')) fish(); // 标签页伪装为 Github(摸鱼) + if(menu_value('menu_autoClockIn')) setTimeout(qianDao, 1000); // 自动签到(后台),延迟 1 秒执行是为了兼容 [V2ex Plus] 扩展 + if(menu_value('menu_pageLoading')) pageLoading(); // 自动翻页(无缝) + if(menu_value('menu_backToTop')) backToTop(); // 回到顶部(右键点击左右两侧空白处) + if(menu_value('menu_linksToImgs')) linksToImgs(); // 链接转图片 // 自动签到(后台) @@ -332,26 +308,39 @@ } } } - //document.querySelector('div.topic_buttons').insertAdjacentHTML('beforeend', '快速回复'); - /*document.getElementById('reply_233').onclick = function () { - if (document.querySelector('.box.reply-box-sticky')) { - document.getElementById('undock-button').click(); - } else { - let _top = document.body.scrollTop + document.documentElement.scrollTop; - document.getElementById('reply_content').focus(); - window.scrollTo(0,_top);console.log(_top); - } - }*/ } // 新标签页打开链接 - function linksBlank(css) { - if (!menu_value('menu_linksBlank')) return - let links = document.querySelectorAll(css);if (!links) return - links.forEach(function (_this) { - _this.target = '_blank' - }); + function linksBlank() { + if (location.pathname.indexOf('/settings') > -1) return + document.head.appendChild(document.createElement('base')).target = '_blank'; // 让所有链接默认以新标签页打开 + Array.from(document.links).forEach(function (_this) { + if (_this.onclick || _this.href.slice(0,4) != 'http' || _this.href.indexOf('#;') > -1 || _this.href.indexOf('night/toggle') > -1 || _this.href.indexOf('/favorite') > -1) { + _this.target = '_self' + } + }) + + const callback = (mutationsList, observer) => { + for (const mutation of mutationsList) { + for (const target of mutation.addedNodes) { + if (target.nodeType != 1) return + if (target.tagName === 'A') { + if (target.href.slice(0,4) != 'http' || target.href.indexOf('#;') > -1 || target.onclick) { + target.target = '_self' + } + } else { + document.querySelectorAll('a').forEach(function (_this) { + if (_this.href.slice(0,4) != 'http' || _this.href.indexOf('#;') > -1 || _this.onclick) { + _this.target = '_self' + } + }); + } + } + } + }; + const observer = new MutationObserver(callback); + observer.observe(document, { childList: true, subtree: true }); } From 3e8cdb5573f185a97a0ebba19ee0855497127d21 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Fri, 8 Oct 2021 16:14:09 +0800 Subject: [PATCH 0015/1773] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E6=96=B0?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E9=A1=B5=E6=89=93=E5=BC=80=E9=93=BE=E6=8E=A5?= =?UTF-8?q?]=20=E5=8A=9F=E8=83=BD=EF=BC=88=E9=80=82=E9=85=8D=E5=85=A8?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- V2ex-Enhanced.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/V2ex-Enhanced.user.js b/V2ex-Enhanced.user.js index a43d38f97..0a55a2937 100644 --- a/V2ex-Enhanced.user.js +++ b/V2ex-Enhanced.user.js @@ -326,12 +326,12 @@ for (const target of mutation.addedNodes) { if (target.nodeType != 1) return if (target.tagName === 'A') { - if (target.href.slice(0,4) != 'http' || target.href.indexOf('#;') > -1 || target.onclick) { + if (target.onclick || target.href.slice(0,4) != 'http' || target.href.indexOf('#;') > -1 || target.href.indexOf('night/toggle') > -1 || target.href.indexOf('/favorite') > -1) { target.target = '_self' } } else { document.querySelectorAll('a').forEach(function (_this) { - if (_this.href.slice(0,4) != 'http' || _this.href.indexOf('#;') > -1 || _this.onclick) { + if (_this.onclick || _this.href.slice(0,4) != 'http' || _this.href.indexOf('#;') > -1 || _this.href.indexOf('night/toggle') > -1 || _this.href.indexOf('/favorite') > -1) { _this.target = '_self' } }); From 85ca805c1baec1b35b65b2dc909113d35b248014 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Fri, 8 Oct 2021 16:18:26 +0800 Subject: [PATCH 0016/1773] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=EF=BC=88=E6=8E=92=E9=99=A4=20#=20=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TargetBlank.user.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TargetBlank.user.js b/TargetBlank.user.js index 562eb1e4b..e5eb77921 100644 --- a/TargetBlank.user.js +++ b/TargetBlank.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 新标签页打开链接 -// @version 1.0.4 +// @version 1.0.5 // @author X.I.U // @description 将网页中所有链接改为新标签页打开~ // @match *://*/* @@ -24,7 +24,7 @@ function targetBlank() { document.head.appendChild(document.createElement('base')).target = '_blank'; // 让所有链接默认以新标签页打开 Array.from(document.links).forEach(function (_this) { - if (_this.href && _this.href.slice(0,4) != 'http') { + if (_this.onclick || _this.href.slice(0,4) != 'http' || _this.getAttribute('href').slice(0,1) === '#') { _this.target = '_self' } }) @@ -49,12 +49,12 @@ for (const target of mutation.addedNodes) { if (target.nodeType != 1) return if (target.tagName === 'A') { - if (target.href && target.href.slice(0,4) != 'http') { + if (target.onclick || target.href.slice(0,4) != 'http' || target.getAttribute('href').slice(0,1) === '#') { target.target = '_self' } } else { document.querySelectorAll('a').forEach(function (_this) { - if (_this.href && _this.href.slice(0,4) != 'http') { + if (_this.onclick || _this.href.slice(0,4) != 'http' || _this.getAttribute('href').slice(0,1) === '#') { _this.target = '_self' } }); From c2635aca0d5c0b44b2271863435d4d8c4569f7a4 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Fri, 8 Oct 2021 16:54:00 +0800 Subject: [PATCH 0017/1773] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E5=8D=9A?= =?UTF-8?q?=E5=AE=A2=E5=9B=AD]=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 | 49 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/Autopage.user.js b/Autopage.user.js index 1706d9164..04e6bd39a 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.7.8 +// @version 2.7.9 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、煎蛋网、糗事百科、龙的天空、起点小说、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 *://*/* @@ -3272,6 +3272,53 @@ scrollDelta: 1000 } }, // SegmentFault - Search + cnblogs: { + SiteTypeID: 0, + host: ['www.cnblogs.com', 'zzk.cnblogs.com'], + functionStart: function() { + if (location.host === 'zzk.cnblogs.com') { + curSite = DBSite.cnblogs_search; + } else if (document.getElementById('post_list')) { + curSite = DBSite.cnblogs_postlist; + } else if (location.pathname.split('/').length === 3 && document.querySelector('.topicListFooter')) { + curSite = DBSite.cnblogs; + if (!document.getElementById('homepage_top_pager')) { + document.querySelector('.forFlow').insertAdjacentHTML(addTo(2), '
'); + document.querySelector('.forFlow').insertAdjacentHTML(addTo(3), '
'); + } + } + }, + pager: { + type: 1, + nextLink: '//div[@class="topicListFooter"]//a[contains(text(), "下一页")]', + pageElement: 'css;div.day', + insertPosition: ['css;.topicListFooter:not([id])', 1], + replaceE: 'css;.topicListFooter', + scrollDelta: 1000 + } + }, // 博客园 - 文章列表(个人) + cnblogs_postlist: { + SiteTypeID: 0, + pager: { + type: 1, + nextLink: '//div[@class="pager"]//a[contains(text(), ">")]', + pageElement: 'css;#post_list > article', + insertPosition: ['css;#post_list', 3], + replaceE: 'css;.pager', + scrollDelta: 1000 + } + }, // 博客园 - 文章列表 + cnblogs_search: { + SiteTypeID: 0, + pager: { + type: 1, + nextLink: '//div[@class="pager"]//a[contains(text(), ">")]', + pageElement: 'css;div.searchItem', + insertPosition: ['css;#paging_block', 1], + replaceE: 'css;.pager', + scrollDelta: 1000 + } + }, // 博客园 - 搜索页 libgen: { SiteTypeID: 0, host: /libgen/, From 8c0f069149bc946a82dd762c3beafa5763548f43 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Fri, 8 Oct 2021 22:00:59 +0800 Subject: [PATCH 0018/1773] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E6=BC=AB?= =?UTF-8?q?=E5=B2=9B=E5=8A=A8=E6=BC=AB=E3=80=81=E5=90=90=E6=A7=BD=E5=BC=B9?= =?UTF-8?q?=E5=B9=95=E7=BD=91]=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 | 49 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/Autopage.user.js b/Autopage.user.js index 04e6bd39a..530097773 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.7.9 +// @version 2.8.0 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、煎蛋网、糗事百科、龙的天空、起点小说、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 *://*/* @@ -1677,6 +1677,25 @@ scrollDelta: 1000 } }, // 樱花动漫 - 搜索页等 + mandao: { + SiteTypeID: 0, + host: 'www.mandao.tv', + functionStart: function() {if (location.pathname != '/' && location.pathname.indexOf('/man') === -1) { + curSite = DBSite.mandao; + }}, + pager: { + type: 1, + nextLink: '//div[contains(@class, "page")]/a[contains(text(), ">")]', + pageElement: 'css;.index-tj > ul > li', + insertPosition: ['css;.index-tj > ul', 3], + replaceE: 'css;.page', + scrollDelta: 1000 + }, + function: { + before: src_functionBefore, + parameter: [0, 'img[data-original]', 'data-original'] + } + }, // 漫岛动漫 zzzfun: { SiteTypeID: 0, host: 'www.zzzfun.com', @@ -1714,6 +1733,34 @@ parameter: [0, 'img[data-original]', 'data-original'] } }, // ZzzFun 动漫 - 搜索页 + tucao: { + SiteTypeID: 0, + host: 'www.tucao.one', + functionStart: function() {if (location.pathname.indexOf('/list/') > -1) { + curSite = DBSite.tucao; + } else if (location.search.indexOf('search') > -1) { + curSite = DBSite.tucao_search; + }}, + pager: { + type: 1, + nextLink: 'css;.pagego a', + pageElement: 'css;.list > ul > li', + insertPosition: ['css;.list > ul', 3], + replaceE: 'css;.newpages, .pagego, #float_show', + scrollDelta: 1000 + } + }, // 吐槽弹幕网 + tucao_search: { + SiteTypeID: 0, + pager: { + type: 1, + nextLink: '//a[@class="a1"][contains(text(), "下一页")]', + pageElement: 'css;.search_list > *', + insertPosition: ['css;.search_list', 3], + replaceE: 'css;.pages', + scrollDelta: 1000 + } + }, // 吐槽弹幕网 - 搜索页 yinfans: { SiteTypeID: 0, host: 'www.yinfans.net', From f1006f5d54da921a948a25a66fb5cf4bbb95f171 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Fri, 8 Oct 2021 22:42:46 +0800 Subject: [PATCH 0019/1773] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[Anime1]=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 | 280 ++++++++++++++++++++++++++++------------------- 1 file changed, 165 insertions(+), 115 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 530097773..742daad33 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.8.0 +// @version 2.8.1 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、煎蛋网、糗事百科、龙的天空、起点小说、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 *://*/* @@ -1565,88 +1565,90 @@ parameter: [1, 'a[data-original]', 'data-original'] } }, // 真不卡影院 - dm233: { - SiteTypeID: 0, - host: 'www.dm233.cc', - functionStart: function() {if (location.pathname.indexOf('/catalog/') > -1 || location.pathname === '/recommend/' || location.pathname === '/search') { - curSite = DBSite.dm233; - } else if (location.pathname === '/article/') { - curSite = DBSite.dm233_article; - } else if (location.pathname === '/rank/') { - curSite = DBSite.dm233_rank; - }}, - pager: { - type: 1, - nextLink: '//div[@class="pagelist"]//a[contains(text(), "下一页") or contains(text(), "下一頁")]', - pageElement: 'css;.dhnew ul > li', - insertPosition: ['css;.dhnew ul', 3], - replaceE: 'css;.pagelist', - scrollDelta: 1000 - } - }, // 233 动漫 - dm233_article: { + zzzfun: { SiteTypeID: 0, + host: 'www.zzzfun.com', + functionStart: function() { + if (location.pathname.indexOf('/vod_type') > -1 || location.pathname.indexOf('/vod_show') > -1) { + curSite = DBSite.zzzfun; + } else if (location.pathname.indexOf('/vod_search') > -1) { + curSite = DBSite.zzzfun_search; + }}, pager: { type: 1, - nextLink: '//div[@class="pagelist"]//a[contains(text(), "下一页") or contains(text(), "下一頁")]', - pageElement: 'css;.xgyd ul > li', - insertPosition: ['css;.xgyd ul', 3], - replaceE: 'css;.pagelist', + nextLink: 'css;#page a[title="下一页"]', + pageElement: 'css;ul.search-result > a', + insertPosition: ['css;ul.search-result', 3], + replaceE: 'css;#page', scrollDelta: 1000 + }, + function: { + before: src_functionBefore, + parameter: [0, 'img[data-original]', 'data-original'] } - }, // 233 动漫 - 动漫情报/资讯 - dm233_rank: { + }, // ZzzFun 动漫 + zzzfun_search: { SiteTypeID: 0, pager: { type: 1, - nextLink: '//div[@class="pagelist"]//a[contains(text(), "下一页") or contains(text(), "下一頁")]', - pageElement: 'css;.side-update.normal-wai > .normal-nei', - insertPosition: ['css;.side-update.normal-wai', 3], - replaceE: 'css;.pagelist', + nextLink: 'css;#page a[title="下一页"]', + pageElement: 'css;ul.show-list > li', + insertPosition: ['css;ul.show-list', 3], + replaceE: 'css;#page', scrollDelta: 1000 + }, + function: { + before: src_functionBefore, + parameter: [0, 'img[data-original]', 'data-original'] } - }, // 233 动漫 - 排行榜 - agefans: { + }, // ZzzFun 动漫 - 搜索页 + tucao: { SiteTypeID: 0, - host: 'www.agefans.cc', - functionStart: function() {if (location.pathname.indexOf('/catalog/') > -1 || location.pathname === '/search') { - curSite = DBSite.agefans; - } else if (location.pathname === '/recommend' || location.pathname === '/update') { - curSite = DBSite.agefans_; - } else if (location.pathname === '/rank') { - curSite = DBSite.agefans_rank; + host: 'www.tucao.one', + functionStart: function() {if (location.pathname.indexOf('/list/') > -1) { + curSite = DBSite.tucao; + } else if (location.search.indexOf('search') > -1) { + curSite = DBSite.tucao_search; }}, pager: { type: 1, - nextLink: 'id("container")//div[@class="blockcontent"]/div[@style][not(@class)]/li/a[@href][contains(text(), "下一页")]', - pageElement: 'css;#container .blockcontent1 > div', - insertPosition: ['css;#container .blockcontent1', 3], - replaceE: 'css;#container .blockcontent > div[style]:not([class])', + nextLink: 'css;.pagego a', + pageElement: 'css;.list > ul > li', + insertPosition: ['css;.list > ul', 3], + replaceE: 'css;.newpages, .pagego, #float_show', scrollDelta: 1000 } - }, // AGE 动漫 - 全部/搜索 - agefans_: { + }, // 吐槽弹幕网 + tucao_search: { SiteTypeID: 0, pager: { type: 1, - nextLink: 'id("container")//div[@class="blockcontent"]/div[@style][not(@class)]/li/a[@href][contains(text(), "下一页")]', - pageElement: 'css;#container .blockcontent > ul > li', - insertPosition: ['css;#container .blockcontent > ul', 3], - replaceE: 'css;#container .blockcontent > div[style]:not([class])', + nextLink: '//a[@class="a1"][contains(text(), "下一页")]', + pageElement: 'css;.search_list > *', + insertPosition: ['css;.search_list', 3], + replaceE: 'css;.pages', scrollDelta: 1000 } - }, // AGE 动漫 - 其他页 - agefans_rank: { + }, // 吐槽弹幕网 - 搜索页 + mandao: { SiteTypeID: 0, + host: 'www.mandao.tv', + functionStart: function() {if (location.pathname != '/' && location.pathname.indexOf('/man') === -1) { + curSite = DBSite.mandao; + }}, pager: { type: 1, - nextLink: 'id("container")/ul[@style][not(@class)]/li/a[@href][contains(text(), "下一页")]', - pageElement: 'css;#container > .div_right .blockcontent.div_right_r_3 > ul', - insertPosition: ['css;#container > .div_right .blockcontent.div_right_r_3', 3], - replaceE: 'css;#container > ul[style]:not([class])', + nextLink: '//div[contains(@class, "page")]/a[contains(text(), ">")]', + pageElement: 'css;.index-tj > ul > li', + insertPosition: ['css;.index-tj > ul', 3], + replaceE: 'css;.page', scrollDelta: 1000 + }, + function: { + before: src_functionBefore, + parameter: [0, 'img[data-original]', 'data-original'] } - }, // AGE 动漫 - 排行榜 + }, // 漫岛动漫 yhdm: { SiteTypeID: 0, host: 'www.imomoe.la', @@ -1677,90 +1679,114 @@ scrollDelta: 1000 } }, // 樱花动漫 - 搜索页等 - mandao: { + agefans: { SiteTypeID: 0, - host: 'www.mandao.tv', - functionStart: function() {if (location.pathname != '/' && location.pathname.indexOf('/man') === -1) { - curSite = DBSite.mandao; + host: 'www.agefans.cc', + functionStart: function() {if (location.pathname.indexOf('/catalog/') > -1 || location.pathname === '/search') { + curSite = DBSite.agefans; + } else if (location.pathname === '/recommend' || location.pathname === '/update') { + curSite = DBSite.agefans_; + } else if (location.pathname === '/rank') { + curSite = DBSite.agefans_rank; }}, pager: { type: 1, - nextLink: '//div[contains(@class, "page")]/a[contains(text(), ">")]', - pageElement: 'css;.index-tj > ul > li', - insertPosition: ['css;.index-tj > ul', 3], - replaceE: 'css;.page', + nextLink: 'id("container")//div[@class="blockcontent"]/div[@style][not(@class)]/li/a[@href][contains(text(), "下一页")]', + pageElement: 'css;#container .blockcontent1 > div', + insertPosition: ['css;#container .blockcontent1', 3], + replaceE: 'css;#container .blockcontent > div[style]:not([class])', scrollDelta: 1000 - }, - function: { - before: src_functionBefore, - parameter: [0, 'img[data-original]', 'data-original'] } - }, // 漫岛动漫 - zzzfun: { + }, // AGE 动漫 - 全部/搜索 + agefans_: { SiteTypeID: 0, - host: 'www.zzzfun.com', - functionStart: function() { - if (location.pathname.indexOf('/vod_type') > -1 || location.pathname.indexOf('/vod_show') > -1) { - curSite = DBSite.zzzfun; - } else if (location.pathname.indexOf('/vod_search') > -1) { - curSite = DBSite.zzzfun_search; - }}, pager: { type: 1, - nextLink: 'css;#page a[title="下一页"]', - pageElement: 'css;ul.search-result > a', - insertPosition: ['css;ul.search-result', 3], - replaceE: 'css;#page', + nextLink: 'id("container")//div[@class="blockcontent"]/div[@style][not(@class)]/li/a[@href][contains(text(), "下一页")]', + pageElement: 'css;#container .blockcontent > ul > li', + insertPosition: ['css;#container .blockcontent > ul', 3], + replaceE: 'css;#container .blockcontent > div[style]:not([class])', scrollDelta: 1000 - }, - function: { - before: src_functionBefore, - parameter: [0, 'img[data-original]', 'data-original'] } - }, // ZzzFun 动漫 - zzzfun_search: { + }, // AGE 动漫 - 其他页 + agefans_rank: { SiteTypeID: 0, pager: { type: 1, - nextLink: 'css;#page a[title="下一页"]', - pageElement: 'css;ul.show-list > li', - insertPosition: ['css;ul.show-list', 3], - replaceE: 'css;#page', + nextLink: 'id("container")/ul[@style][not(@class)]/li/a[@href][contains(text(), "下一页")]', + pageElement: 'css;#container > .div_right .blockcontent.div_right_r_3 > ul', + insertPosition: ['css;#container > .div_right .blockcontent.div_right_r_3', 3], + replaceE: 'css;#container > ul[style]:not([class])', scrollDelta: 1000 - }, - function: { - before: src_functionBefore, - parameter: [0, 'img[data-original]', 'data-original'] } - }, // ZzzFun 动漫 - 搜索页 - tucao: { + }, // AGE 动漫 - 排行榜 + dm233: { SiteTypeID: 0, - host: 'www.tucao.one', - functionStart: function() {if (location.pathname.indexOf('/list/') > -1) { - curSite = DBSite.tucao; - } else if (location.search.indexOf('search') > -1) { - curSite = DBSite.tucao_search; + host: 'www.dm233.cc', + functionStart: function() {if (location.pathname.indexOf('/catalog/') > -1 || location.pathname === '/recommend/' || location.pathname === '/search') { + curSite = DBSite.dm233; + } else if (location.pathname === '/article/') { + curSite = DBSite.dm233_article; + } else if (location.pathname === '/rank/') { + curSite = DBSite.dm233_rank; }}, pager: { type: 1, - nextLink: 'css;.pagego a', - pageElement: 'css;.list > ul > li', - insertPosition: ['css;.list > ul', 3], - replaceE: 'css;.newpages, .pagego, #float_show', + nextLink: '//div[@class="pagelist"]//a[contains(text(), "下一页") or contains(text(), "下一頁")]', + pageElement: 'css;.dhnew ul > li', + insertPosition: ['css;.dhnew ul', 3], + replaceE: 'css;.pagelist', scrollDelta: 1000 } - }, // 吐槽弹幕网 - tucao_search: { + }, // 233 动漫 + dm233_article: { SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[@class="a1"][contains(text(), "下一页")]', - pageElement: 'css;.search_list > *', - insertPosition: ['css;.search_list', 3], - replaceE: 'css;.pages', + nextLink: '//div[@class="pagelist"]//a[contains(text(), "下一页") or contains(text(), "下一頁")]', + pageElement: 'css;.xgyd ul > li', + insertPosition: ['css;.xgyd ul', 3], + replaceE: 'css;.pagelist', scrollDelta: 1000 } - }, // 吐槽弹幕网 - 搜索页 + }, // 233 动漫 - 动漫情报/资讯 + dm233_rank: { + SiteTypeID: 0, + pager: { + type: 1, + nextLink: '//div[@class="pagelist"]//a[contains(text(), "下一页") or contains(text(), "下一頁")]', + pageElement: 'css;.side-update.normal-wai > .normal-nei', + insertPosition: ['css;.side-update.normal-wai', 3], + replaceE: 'css;.pagelist', + scrollDelta: 1000 + } + }, // 233 动漫 - 排行榜 + anime1: { + SiteTypeID: 0, + host: 'anime1.me', + functionStart: function() {if (location.search.indexOf('s=') > -1) { + curSite = DBSite.anime1_search; + } else if (location.pathname === '/') { + curSite = DBSite.anime1; + }}, + pager: { + type: 4, + nextLink: anime1_functionNext, + intervals: 500, + scrollDelta: 800 + } + }, // Anime1 + anime1_search: { + SiteTypeID: 0, + pager: { + type: 1, + nextLink: 'css;.nav-previous > a', + pageElement: 'css;#main > article', + insertPosition: ['css;nav.navigation', 1], + replaceE: 'css;nav.navigation', + scrollDelta: 1200 + } + }, // Anime1 - 搜索页 yinfans: { SiteTypeID: 0, host: 'www.yinfans.net', @@ -4170,6 +4196,30 @@ return pageElems } + + // [Anime1] 获取下一页地址 + function anime1_functionNext() { + let next = document.getElementById('tablepress-1_next'); + if (next && next.className.indexOf('disabled') === -1) { + let oldList = document.querySelector('tbody.row-hover'); + if (oldList) { + // 将当前列表存为变量 + oldList = oldList.innerHTML; + // 暂停一段时间,避免多次重复点击下一页 + /*let _SiteTypeID = curSite.SiteTypeID; + curSite.SiteTypeID = 0; + setTimeout(function(){curSite.SiteTypeID = _SiteTypeID;}, 400)*/ + // 点击下一页 + next.click(); + // 当前页码 + 1 + pageNum.now = pageNum._now + 1 + // 插入到列表头部 + document.querySelector('tbody.row-hover').insertAdjacentHTML('afterbegin', oldList); + } + } + } + + // [SkrBT] 获取下一页地址 function skrbt_functionNext() { let page = document.querySelector('a[onclick][aria-label="Next"]'); @@ -5139,7 +5189,7 @@ let addTo1 = addTo(curSite.pager.insertPosition[1]); // 插入新页面元素 - if (curSite.pager.insertPosition[1] === 4) { // 插入到目标本身后面,需要合并后一起插入 + if (curSite.pager.insertPosition[1] === 2 || curSite.pager.insertPosition[1] === 4) { // 插入到元素内头部、目标本身后面,需要合并后一起插入,否则会顺序相反 let afterend = ''; pageElems.forEach(function (one) {afterend += one.outerHTML;}); toElement.insertAdjacentHTML(addTo1, afterend); From 593cccdebcaf47684f358978cad3ddb34f79c6aa Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sat, 9 Oct 2021 09:34:19 +0800 Subject: [PATCH 0020/1773] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[Github=20-=20No?= =?UTF-8?q?tifications]=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 | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Autopage.user.js b/Autopage.user.js index 742daad33..1d5a6762a 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.8.1 +// @version 2.8.2 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、煎蛋网、糗事百科、龙的天空、起点小说、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 *://*/* @@ -3077,6 +3077,8 @@ curSite = DBSite.github_tags; } else if (location.pathname.indexOf('/commits') > -1) { curSite = DBSite.github_commits; + } else if (location.pathname.indexOf('/notifications') > -1) { + curSite = DBSite.github_notifications; } else if (location.pathname.indexOf('/search') > -1) { if (!location.search) return if (location.search.indexOf('type=Repositories') > -1 || location.search.indexOf('type=') === -1) { @@ -3163,6 +3165,17 @@ scrollDelta: 3000 } }, // Github - Commits 列表 + github_notifications: { + SiteTypeID: 0, + pager: { + type: 1, + nextLink: 'css;nav.paginate-container > a[aria-label="Next"]', + pageElement: 'css;li.notifications-list-item', + insertPosition: ['css;li.notifications-list-item:last-child', 4], + replaceE: 'css;nav.paginate-container, .js-notifications-list-paginator-counts', + scrollDelta: 3000 + } + }, // Github - Notifications 列表 github_search: { SiteTypeID: 0, pager: { From 935ce42e5b0154d3797f0f5ec7776eb898ffc95e Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sat, 9 Oct 2021 11:34:22 +0800 Subject: [PATCH 0021/1773] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E5=93=94?= =?UTF-8?q?=E5=93=A9=E5=93=94=E5=93=A9=20(Bilibili)=20-=20=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E9=A1=B5]=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 | 55 +++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 52 insertions(+), 3 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 1d5a6762a..3435c5d59 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,8 +1,8 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.8.2 +// @version 2.8.3 // @author X.I.U -// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、煎蛋网、糗事百科、龙的天空、起点小说、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(以上仅一部分,更多的写不下了... +// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、哔哩哔哩 (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 *://*/* // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAALfElEQVRYhX2Xe3Bd1XXGf3vvc859X+nq6nUlW5Yly7JlI2xsYzAwtnk4ATpAxkNTHm0mnaTT/gHTTvrIBDLTpp1JUoZppqHQls5AKTR2INOWJJQSXF4x2BhsJCRZ8kuWZckPSVf3/Trn7N3RVTFpQrNn1l97n7O/vda31reWMKMPcmUJA9U8vrwHGdqCHn4HPzePaIxhVSoYbYRXrn7BeMVbCUduF6kVUXHwvQP+6amDaqDnoIompmQytaBnTmB8H5lowrjgFss48SBeI/hUEEZeudLi1ywhJEIJdL6Q8rzal/1a5SGC4XZrYBvWwEZobMdLdH6RH+z/Io1taEeh52fe8tOZbysl/ouWFvANYP7fSz4DgAEBBIL4xiS8ubmnVcTZK68aRK29Dtm8dgnZJydRW+/E2nrnp19nz+7U77+60zt0qMz07J/KxuQTwrIw4rMBCDP6wC+FIIcO34eudDdXf/7jD52Opi772lugY3AZr++hp06gz48j+wa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xBrwcvmmH3rQIvMm3/y0XdJS4JfIpiIUG9g+wcg6KDnZpGZNDQ0Ii5cSAtlPRHYct13axWvJNwadiiAli4iEP8VAJ89HQtR129TLiG1nos0Nt8dSOi12qi9lRq3utVqT/lirql24hW3vLBQi3d3XUqu73+PZOonBNR/WnbYSMeGTO5/Xf6ZtwDwPwtFRezQVs+sAAAAAElFTkSuQmCC // @grant GM_xmlhttpRequest @@ -1439,6 +1439,24 @@ scrollDelta: 2000 } }, // FitGirl Repacks + bilibili_search: { + SiteTypeID: 0, + host: 'search.bilibili.com', + functionStart: function() {locationchange = true; curSite = DBSite.bilibili_search;}, + pager: { + type: 1, + nextLink: bilibili_search_functionNext, + pageElement: '//ul[contains(@class, "video-list")]/li | //script[contains(text(), "window.__INITIAL_STATE__")]', + insertPosition: ['css;ul.video-list', 3], + replaceE: 'css;ul.pages', + scriptType: 2, + history: true, + scrollDelta: 800 + }, + function: { + after: bilibili_search_functionAfter + } + }, // 哔哩哔哩 (Bilibili) - 搜索页 pianku: { SiteTypeID: 0, host: /pianku/, @@ -4210,7 +4228,38 @@ } - // [Anime1] 获取下一页地址 + // [bilibili_search] 获取下一页地址 + function bilibili_search_functionNext() { + if (!location.search) return + let pageActive = 1, pageLast = parseInt(document.querySelector('li.page-item.last').innerText); + if (/page=\d+/.test(location.search)) { + pageActive = parseInt(/page=\d+/.exec(location.search)[0].replace('page=','')) + } + //let pageActive = parseInt(document.querySelector('li.page-item.active').innerText), + // pageLast = parseInt(document.querySelector('li.page-item.last').innerText); + if (pageActive <= pageLast) { + if (/page=\d+/.test(location.search)) { + return (location.origin + location.pathname + location.search.replace(/page=\d+/,`page=${pageActive+1}`)) + } else { + return (location.origin + location.pathname + location.search + `&page=${pageActive+1}`) + } + } + } + // [bilibili_search] 插入后函数(加载图片) + function bilibili_search_functionAfter() { + let result = __INITIAL_STATE__.flow[__INITIAL_STATE__.flow.fields[0]].result; + if (result.length > 0) { + let imgArr = document.querySelectorAll('.img > .lazy-img > img[src=""]'); + if (imgArr.length > 0) { + for (let i = 0; i < imgArr.length; i++) { + imgArr[i].src = result[i].pic; + } + } + } + } + + + // [Anime1] 获取下一页内容(叠加) function anime1_functionNext() { let next = document.getElementById('tablepress-1_next'); if (next && next.className.indexOf('disabled') === -1) { From 9f2129ae7af5fd0b4922f16255c9a6b786150237 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sat, 9 Oct 2021 12:10:41 +0800 Subject: [PATCH 0022/1773] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20[B=20=E7=AB=99(B?= =?UTF-8?q?ilibili)]=20=E8=84=9A=E6=9C=AC=E5=B7=A6=E4=B8=8B=E8=A7=92?= =?UTF-8?q?=E9=A1=B5=E7=A0=81=E4=B8=8D=E5=8F=98=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 3435c5d59..442d16dad 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,8 +1,8 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.8.3 +// @version 2.8.4 // @author X.I.U -// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、哔哩哔哩 (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(以上仅一部分,更多的写不下了... +// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、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 *://*/* // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAALfElEQVRYhX2Xe3Bd1XXGf3vvc859X+nq6nUlW5Yly7JlI2xsYzAwtnk4ATpAxkNTHm0mnaTT/gHTTvrIBDLTpp1JUoZppqHQls5AKTR2INOWJJQSXF4x2BhsJCRZ8kuWZckPSVf3/Trn7N3RVTFpQrNn1l97n7O/vda31reWMKMPcmUJA9U8vrwHGdqCHn4HPzePaIxhVSoYbYRXrn7BeMVbCUduF6kVUXHwvQP+6amDaqDnoIompmQytaBnTmB8H5lowrjgFss48SBeI/hUEEZeudLi1ywhJEIJdL6Q8rzal/1a5SGC4XZrYBvWwEZobMdLdH6RH+z/Io1taEeh52fe8tOZbysl/ouWFvANYP7fSz4DgAEBBIL4xiS8ubmnVcTZK68aRK29Dtm8dgnZJydRW+/E2nrnp19nz+7U77+60zt0qMz07J/KxuQTwrIw4rMBCDP6wC+FIIcO34eudDdXf/7jD52Opi772lugY3AZr++hp06gz48j+waRqTWYmV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mH3rQIvMm3/y0XdJS4JfIpiIUG9g+wcg6KDnZpGZNDQ0Ii5cSAtlPRHYct13axWvJNwadiiAli4iEP8VAJ89HQtR129TLiG1nos0Nt8dSOi12qi9lRq3utVqT/lirql24hW3vLBQi3d3XUqu73+PZOonBNR/WnbYSMeGTO5/Xf6ZtwDwPwtFRezQVs+sAAAAAElFTkSuQmCC // @grant GM_xmlhttpRequest @@ -1450,13 +1450,16 @@ insertPosition: ['css;ul.video-list', 3], replaceE: 'css;ul.pages', scriptType: 2, - history: true, + history: function() { + if (/page=\d+/.test(location.search)) return false; + return true; + }, scrollDelta: 800 }, function: { after: bilibili_search_functionAfter } - }, // 哔哩哔哩 (Bilibili) - 搜索页 + }, // B 站(Bilibili) - 搜索页 pianku: { SiteTypeID: 0, host: /pianku/, @@ -3913,7 +3916,9 @@ addLocationchange(); // 自定义 locationchange 事件 if (webType === 1) { window.addEventListener('locationchange', function(){ - if (nowLocation != location.href) { + let history = true; + if (curSite.SiteTypeID > 0 && curSite.pager.history) history = curSite.pager.history(); // 解决 locationchange 与 history 冲突的问题,只有返回 true 才会重置规则+页码 + if (history && nowLocation != location.href) { nowLocation = location.href; curSite = {SiteTypeID: 0}; pageNum.now = 1; // 重置规则+页码 registerMenuCommand(); // 重新判断规则 curSite.pageUrl = ''; // 下一页URL @@ -5294,7 +5299,7 @@ } // 添加历史记录 - if (curSite.pager.history && curSite.pager.history == true) { + if (curSite.pager.history) { window.history.pushState(`{title: ${document.title}, url: ${location.href}}`, newBody.querySelector('title').textContent, curSite.pageUrl); } From 68517f30204eaed84e45319e0f4636ee9f7cdb69 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sat, 9 Oct 2021 16:48:38 +0800 Subject: [PATCH 0023/1773] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E5=97=AF?= =?UTF-8?q?=E5=93=A9=E5=97=AF=E5=93=A9=E3=80=81=E7=A7=80=E4=BA=BA=E7=BD=91?= =?UTF-8?q?=E3=80=81=E8=85=BE=E9=BE=99=E5=B7=A5=E4=BD=9C=E5=AE=A4]=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 | 91 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 90 insertions(+), 1 deletion(-) diff --git a/Autopage.user.js b/Autopage.user.js index 442d16dad..435394448 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.8.4 +// @version 2.8.5 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、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 *://*/* @@ -1552,6 +1552,23 @@ parameter: [1, 'a[data-original]', 'data-original'] } }, // 在线之家 + enlienli: { + SiteTypeID: 0, + host: 'enlienli.com', + functionStart: function() {if (location.pathname.indexOf('/show/') > -1 || location.pathname.indexOf('/search') > -1) {curSite = DBSite.enlienli;}}, + pager: { + type: 1, + nextLink: 'css;a.page-number.page-next', + pageElement: 'css;.module-items > *', + insertPosition: ['css;.module-items', 3], + replaceE: 'css;#page', + scrollDelta: 1000 + }, + function: { + before: src_functionBefore, + parameter: [0, 'img[data-src]', 'data-src'] + } + }, // 嗯哩嗯哩 _91mjw: { SiteTypeID: 0, host: '91mjw.com', @@ -2944,6 +2961,33 @@ scrollDelta: 1700 } }, // 老殁 | 殁漂遥 - 搜索页/分类页 + tenlonstudio: { + SiteTypeID: 0, + host: 'www.tenlonstudio.com', + functionStart: function() {if (location.pathname === '/' && !location.search) { + curSite = DBSite.tenlonstudio; + } else { + curSite = DBSite.tenlonstudio_list; + }}, + pager: { + type: 2, + nextLink: '.load-more', + nextText: '加载更多', + intervals: 500, + scrollDelta: 1000 + } + }, // 腾龙工作室 + tenlonstudio_list: { + SiteTypeID: 0, + pager: { + type: 1, + nextLink: '//div[@class="btn-pager"]/a[contains(text(), "❯")]', + pageElement: 'css;li.post-list-item', + insertPosition: ['css;li.post-list-item:last-child', 4], + replaceE: 'css;.ajax-pager', + scrollDelta: 1000 + } + }, // 腾龙工作室 - 分类/搜索页 yxssp: { SiteTypeID: 0, host: 'www.yxssp.com', @@ -3810,6 +3854,51 @@ scrollDelta: 1000 } }, // 宅男女神 - 文章内 + xiurenji: { + SiteTypeID: 0, + host: 'www.xiurenji.vip', + functionStart: function() {insStyle('img[src$=".gif"]:not([src*="logo"]) {display: none !important;}'); + if (location.pathname.indexOf('.html') > -1 && location.pathname.indexOf('/index') === -1) { + curSite = DBSite.xiurenji; + } else if (location.pathname.indexOf('search') > -1) { + curSite = DBSite.xiurenji_search; + } else { + curSite = DBSite.xiurenji_list; + }}, + pager: { + type: 1, + nextLink: '//div[@class="page"]/a[contains(text(), "后")]', + pageElement: 'css;div.img > p > *', + insertPosition: ['css;div.img > p', 3], + replaceE: 'css;.page', + mimeType: 'text/html; charset=gb2312', + scrollDelta: 2000 + } + }, // 秀人网 + xiurenji_list: { + SiteTypeID: 0, + pager: { + type: 1, + nextLink: '//div[@class="page"]/a[contains(text(), "下页")]', + pageElement: 'css;td >.tp2 > *', + insertPosition: ['css;td >.tp2', 3], + replaceE: 'css;.page', + mimeType: 'text/html; charset=gb2312', + scrollDelta: 1000 + } + }, // 秀人网 - 分类页 + xiurenji_search: { + SiteTypeID: 0, + pager: { + type: 1, + nextLink: 'css;.page > a.current+a', + pageElement: 'css;.node > *', + insertPosition: ['css;.node', 3], + replaceE: 'css;.page', + mimeType: 'text/html; charset=gb2312', + scrollDelta: 1000 + } + }, // 秀人网 - 搜索页 zhutix: { SiteTypeID: 0, host: 'zhutix.com', From 519a7c4f4631e5f85a2c7be5ed6e915b19e7090d Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sun, 10 Oct 2021 10:25:54 +0800 Subject: [PATCH 0024/1773] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E4=BB=80?= =?UTF-8?q?=E4=B9=88=E5=80=BC=E5=BE=97=E4=B9=B0(=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E9=A1=B5)]=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 | 60 +++++++++++++++++++++++++++++++++--------------- 1 file changed, 41 insertions(+), 19 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 435394448..0650a60db 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.8.5 +// @version 2.8.6 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、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 *://*/* @@ -3695,6 +3695,18 @@ scrollDelta: 1000 } }, // 如意了教育 - 试卷 + smzdm_search: { + SiteTypeID: 0, + host: 'search.smzdm.com', + pager: { + type: 1, + nextLink: '//ul[@class="pagenation-list"]//a[contains(text() ,"下一页")]', + pageElement: 'css;#feed-main-list > li', + insertPosition: ['css;#feed-main-list', 3], + replaceE: 'css;ul.pagenation-list', + scrollDelta: 1500 + } + }, // 什么值得买 - 搜索页 w3school_cn: { SiteTypeID: 0, host: 'www.w3school.com.cn', @@ -4951,33 +4963,43 @@ } else { if (document.documentElement.scrollHeight <= scrollHeight + scrollTop + scrollDelta) { - if (curSite.pager.type === 2) { // <<<<< 翻页类型 2(网站自带了自动无缝翻页功能,只需要点击下一页按钮即可)>>>>> + if (curSite.pager.type === 1) { // <<<<< 翻页类型 1(由脚本实现自动无缝翻页)>>>>> + ShowPager.loadMorePage(); + + } else if (curSite.pager.type === 2) { // <<<<< 翻页类型 2(网站自带了自动无缝翻页功能,只需要点击下一页按钮即可)>>>>> let autopbn = document.querySelector(curSite.pager.nextLink); if (autopbn) { // 寻找下一页链接 - // 避免重复点击翻页按钮 - if (curSite.pager.nextText) { // 按钮文本,当按钮文本 = 该文本时,才会点击按钮加载下一页 - if (autopbn.innerText === curSite.pager.nextText) {autopbn.click(); pageNum.now = pageNum._now + 1;} // 当前页码 + 1 - - } else if (curSite.pager.nextTextOf) { // 按钮文本的一部分,当按钮文本包含该文本时,才会点击按钮加载下一页 - if (autopbn.innerText.indexOf(curSite.pager.nextTextOf) > -1) {autopbn.click(); pageNum.now = pageNum._now + 1;} // 当前页码 + 1 - - } else if (curSite.pager.nextHTML) { // 按钮内元素,当按钮内元素 = 该元素内容时,才会点击按钮加载下一页 - if (autopbn.innerHTML === curSite.pager.nextHTML) {autopbn.click(); pageNum.now = pageNum._now + 1;} // 当前页码 + 1 - - } else { // 如果没有指定按钮文字就直接点击 - autopbn.click(); pageNum.now = pageNum._now + 1; // 当前页码 + 1 + if (curSite.pager.nextText) { + // 按钮文本,当按钮文本 = 该文本时,才会点击按钮加载下一页 + if (autopbn.innerText === curSite.pager.nextText) { + autopbn.click(); + pageNum.now = pageNum._now + 1; // 当前页码 + 1 + } + } else if (curSite.pager.nextTextOf) { + // 按钮文本的一部分,当按钮文本包含该文本时,才会点击按钮加载下一页 + if (autopbn.innerText.indexOf(curSite.pager.nextTextOf) > -1) { + autopbn.click(); + pageNum.now = pageNum._now + 1; // 当前页码 + 1 + } + } else if (curSite.pager.nextHTML) { + // 按钮内元素,当按钮内元素 = 该元素内容时,才会点击按钮加载下一页 + if (autopbn.innerHTML === curSite.pager.nextHTML) { + autopbn.click(); + pageNum.now = pageNum._now + 1; // 当前页码 + 1 + } + } else { + // 如果没有指定按钮文字就直接点击 + autopbn.click(); + pageNum.now = pageNum._now + 1; // 当前页码 + 1 // 对于没有按钮文字变化的按钮,可以指定间隔时间(默认 300ms) - if (!curSite.pager.intervals) {curSite.pager.intervals = 300;} + if (!curSite.pager.intervals) curSite.pager.intervals = 300; let _SiteTypeID = curSite.SiteTypeID; curSite.SiteTypeID = 0; setTimeout(function(){curSite.SiteTypeID = _SiteTypeID;}, curSite.pager.intervals) } } - } else if (curSite.pager.type === 1) { // <<<<< 翻页类型 1(由脚本实现自动无缝翻页)>>>>> - ShowPager.loadMorePage(); - } else if (curSite.pager.type === 4) { // <<<<< 翻页类型 4(部分简单的动态加载类网站)>>>>> - // 为百度贴吧的发帖考虑... + // 为百度贴吧的发帖考虑,预留底部一小部分... if (!(document.documentElement.scrollHeight <= scrollHeight + scrollTop + 200 && curSite.SiteTypeID === SiteType.BAIDU_TIEBA)) { curSite.pager.nextLink(); } From 8cd9587ba71113203abf28a01148a679e49a2538 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sun, 10 Oct 2021 10:32:19 +0800 Subject: [PATCH 0025/1773] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E4=BB=80?= =?UTF-8?q?=E4=B9=88=E5=80=BC=E5=BE=97=E4=B9=B0]=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 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 0650a60db..1620cc746 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3695,18 +3695,21 @@ scrollDelta: 1000 } }, // 如意了教育 - 试卷 - smzdm_search: { + smzdm: { SiteTypeID: 0, - host: 'search.smzdm.com', + host: ['www.smzdm.com', 'search.smzdm.com'], + functionStart: function() {if (location.host === 'search.smzdm.com' || location.pathname.indexOf('/fenlei/') > -1) { + curSite = DBSite.smzdm; + }}, pager: { type: 1, - nextLink: '//ul[@class="pagenation-list"]//a[contains(text() ,"下一页")]', + nextLink: '//ul[@class="pagenation-list"]//a[contains(text() ,"下一页")] | //ul[@class="pagenation-list"]/li[contains(@class, "next-page")]/a', pageElement: 'css;#feed-main-list > li', insertPosition: ['css;#feed-main-list', 3], replaceE: 'css;ul.pagenation-list', scrollDelta: 1500 } - }, // 什么值得买 - 搜索页 + }, // 什么值得买 - 分类/搜索页 w3school_cn: { SiteTypeID: 0, host: 'www.w3school.com.cn', From 567df67322a4151d45f21ffad5138e444ed64b46 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sun, 10 Oct 2021 19:36:54 +0800 Subject: [PATCH 0026/1773] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[Discuz!]=20?= =?UTF-8?q?=E8=A7=84=E5=88=99=20(=E6=8E=92=E9=99=A4=E9=83=A8=E5=88=86?= =?UTF-8?q?=E8=87=AA=E5=B8=A6=E7=BF=BB=E9=A1=B5=E7=9A=84=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E5=B8=96=E5=AD=90=E5=88=97=E8=A1=A8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 1620cc746..66b4bbef7 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.8.6 +// @version 2.8.7 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、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 *://*/* @@ -3653,6 +3653,21 @@ scrollDelta: 1000 } }, // 脚本 - 讨论页 + smzdm: { + SiteTypeID: 0, + host: ['www.smzdm.com', 'search.smzdm.com'], + functionStart: function() {if (location.host === 'search.smzdm.com' || location.pathname.indexOf('/fenlei/') > -1) { + curSite = DBSite.smzdm; + }}, + pager: { + type: 1, + nextLink: '//ul[@class="pagenation-list"]//a[contains(text() ,"下一页")] | //ul[@class="pagenation-list"]/li[contains(@class, "next-page")]/a', + pageElement: 'css;#feed-main-list > li', + insertPosition: ['css;#feed-main-list', 3], + replaceE: 'css;ul.pagenation-list', + scrollDelta: 1500 + } + }, // 什么值得买 - 分类/搜索页 ruyile_xuexiao: { SiteTypeID: 0, host: 'www.ruyile.com', @@ -3695,21 +3710,6 @@ scrollDelta: 1000 } }, // 如意了教育 - 试卷 - smzdm: { - SiteTypeID: 0, - host: ['www.smzdm.com', 'search.smzdm.com'], - functionStart: function() {if (location.host === 'search.smzdm.com' || location.pathname.indexOf('/fenlei/') > -1) { - curSite = DBSite.smzdm; - }}, - pager: { - type: 1, - nextLink: '//ul[@class="pagenation-list"]//a[contains(text() ,"下一页")] | //ul[@class="pagenation-list"]/li[contains(@class, "next-page")]/a', - pageElement: 'css;#feed-main-list > li', - insertPosition: ['css;#feed-main-list', 3], - replaceE: 'css;ul.pagenation-list', - scrollDelta: 1500 - } - }, // 什么值得买 - 分类/搜索页 w3school_cn: { SiteTypeID: 0, host: 'www.w3school.com.cn', @@ -4054,7 +4054,9 @@ // [Discuz! 论坛] 判断各版块帖子列表类型 function discuzForum() { - if (document.getElementById('autopbn')) { // 判断是否有 [下一页] 按钮 + if (document.querySelector('#pgbtn, .pgbtn')) { // 如果各版块帖子列表已存在这个元素,说明自带了无缝翻页 + return + } else if (document.getElementById('autopbn')) { // 判断是否有 [下一页] 按钮 curSite = DBSite.discuz_forum; } else if (document.getElementById('waterfall')) { // 判断是否为图片模式 curSite = DBSite.discuz_waterfall; waterfallStyle(); // 图片模式列表样式预处理 From f642361b80a889c9653ab22975a3d1004c93c1c7 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sun, 10 Oct 2021 23:28:25 +0800 Subject: [PATCH 0027/1773] README.md --- README.md | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 97611294a..b5ead1235 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![GitHub license](https://img.shields.io/github/license/XIU2/UserScript.svg?style=flat-square&color=4285dd&logo=github)](https://github.com/XIU2/UserScript/) [![GitHub Star](https://img.shields.io/github/stars/XIU2/UserScript.svg?style=flat-square&label=Star&color=4285dd&logo=github)](https://github.com/XIU2/UserScript/) [![GitHub Fork](https://img.shields.io/github/forks/XIU2/UserScript.svg?style=flat-square&label=Fork&color=4285dd&logo=github)](https://github.com/XIU2/UserScript/) +[![](https://data.jsdelivr.com/v1/package/gh/XIU2/UserScript/badge)](https://www.jsdelivr.com/package/gh/XIU2/UserScript) [![](https://img.shields.io/static/v1?label=%20&message=GreasyFork&style=flat-square&labelColor=7B0000&color=960000&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3ggEBCQHM3fXsAAAAVdJREFUOMudkz2qwkAUhc/goBaGJBgUtBCZyj0ILkpwAW7Bws4yO3AHLiCtEFD8KVREkoiFxZzX5A2KGfN4F04zMN+ce+5c4LMUgDmANYBnrnV+plBSi+FwyHq9TgA2LQpvCiEiABwMBtzv95RSfoNEHy8DYBzHrNVqVEr9BWKcqNFoxF6vx3a7zc1mYyC73a4MogBg7vs+z+czO50OW60Wt9stK5UKp9Mpj8cjq9WqDTBHnjAdxzGQZrPJw+HA31oulzbAWgLoA0CWZVBKIY5jzGYzdLtdE9DlcrFNrY98zobqOA6TJKHW2jg4nU5sNBpFDp6mhVe5rsvVasUwDHm9Xqm15u12o+/7Hy0gD8KatOd5vN/v1FozTVN6nkchxFuI6hsAAIMg4OPxMJCXdtTbR7JJCMEgCJhlGUlyPB4XfumozInrupxMJpRSRtZlKoNYl+m/6/wDuWAjtPfsQuwAAAAASUVORK5CYII=)](https://greasyfork.org/zh-CN/users/457025-x-i-u) 🔨 自用的一些乱七八糟油猴脚本,**有什么需求、建议、问题直接提 [Issues](https://github.com/XIU2/UserScript/issues/new/choose)**,觉得**好用请点个⭐鼓励一下叭~** @@ -18,23 +19,23 @@ | | 脚本名称 | 脚本功能 | 安装 \| 备用 | | :----: | :---- | :---- | :----: | -| [](https://github.com/XIU2) | **护眼模式** | 简单有效的全网通用护眼模式、夜间模式、暗黑模式~ | **[安装](https://greasyfork.org/zh-CN/scripts/426377)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/DarkMode.user.js)** | -| [](https://www.zhihu.com/people/xiu2) | **知乎 美化** | 宽屏显示、**暗黑模式**、隐藏文章开头大图、调整图片最大高... | **[安装](https://greasyfork.org/zh-CN/scripts/412212)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/Zhihu-Beautification.user.js)** | -| [](https://www.zhihu.com/people/xiu2) | **知乎 增强** | **移除登录弹窗**、默认收起回答、屏蔽用户、屏蔽关键词、快... | **[安装](https://greasyfork.org/zh-CN/scripts/419081)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/Zhihu-Enhanced.user.js)** | -| [](https://www.v2ex.com/) | **V2EX 增强** | **自动签到**、链接转图片、自动无缝翻页、新标签页打开链接... | **[安装](https://greasyfork.org/zh-CN/scripts/424246)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/V2ex-Enhanced.user.js)** | -| [](https://github.com/XIU2) | **Github 增强** | **高速下载** Git Clone/SSH、Release、Raw、Code(ZIP) 文件... | **[安装](https://greasyfork.org/zh-CN/scripts/412245)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/GithubEnhanced-High-Speed-Download.user.js)** | -| [](https://github.com/XIU2) | **自动无缝翻页 \*** | **所有 Discuz! / Flarum 论坛** /百度/谷歌/贴吧/豆瓣/千图网... | **[安装](https://greasyfork.org/zh-CN/scripts/419215)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/Autopage.user.js)** | -| [](https://bbs.3dmgame.com) | **3DM论坛 美化** | 精简多余内容、样式优化 | **[安装](https://greasyfork.org/zh-CN/scripts/413593)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/3dm-Beautification.user.js)** | -| [](https://bbs.3dmgame.com) | **3DM论坛 增强** | **自动回复**、自动无缝翻页、清理置顶帖子、自动滚动至隐藏... | **[安装](https://greasyfork.org/zh-CN/scripts/412890)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/3dm-Enhanced.user.js)** | -| [](https://www.lanzou.com) | **蓝奏云网盘 增强 \*** | 刷新不回根目录、**右键显示菜单**、显示更多文件、自动密码... | **[安装](https://greasyfork.org/zh-CN/scripts/419224)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/Lanzou-Enhanced.user.js)** | -| [](https://github.com/XIU2) | **新标签页打开链接 \*** | 将网页中所有链接改为新标签页打开~ | **[安装](https://greasyfork.org/zh-CN/scripts/429714)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/TargetBlank.user.js)** | -| [](https://www.52pojie.cn) | **吾爱破解论坛 美化** | 精简多余内容、样式优化 | **[安装](https://greasyfork.org/zh-CN/scripts/412681)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/52pojie-Beautification.user.js)** | -| [](https://www.52pojie.cn) | **吾爱破解论坛 增强** | **自动签到**、自动无缝翻页、屏蔽导读悬赏贴 (最新发表页)... | **[安装](https://greasyfork.org/zh-CN/scripts/412680)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/52pojie-Enhanced.user.js)** | -| [](https://hostloc.com) | **全球主机交流论坛 增强 \*** | **自动访问空间(22积分)、屏蔽用户**、屏蔽关键词、自动无缝翻... | **[安装](https://greasyfork.org/zh-CN/scripts/414005)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/Hostloc-Enhanced.user.js)** | -| [](https://store.steampowered.com) | **Steam 创意工坊大图 修复** | 修复 Steam 创意工坊预览大图无法显示的问题 | **[安装](https://github.com/XIU2/UserScript/raw/master/SteamWorkshopImageRepair.user.js)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/SteamWorkshopImageRepair.user.js)** | +| [](https://github.com/XIU2) | **护眼模式** | 简单有效的全网通用护眼模式、夜间模式、暗黑模式~ | **[安装](https://greasyfork.org/zh-CN/scripts/426377)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript/DarkMode.user.js)** | +| [](https://www.zhihu.com/people/xiu2) | **知乎 美化** | 宽屏显示、**暗黑模式**、隐藏文章开头大图、调整图片最大高... | **[安装](https://greasyfork.org/zh-CN/scripts/412212)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript/Zhihu-Beautification.user.js)** | +| [](https://www.zhihu.com/people/xiu2) | **知乎 增强** | **移除登录弹窗**、默认收起回答、屏蔽用户、屏蔽关键词、快... | **[安装](https://greasyfork.org/zh-CN/scripts/419081)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript/Zhihu-Enhanced.user.js)** | +| [](https://www.v2ex.com/) | **V2EX 增强** | **自动签到**、链接转图片、自动无缝翻页、新标签页打开链接... | **[安装](https://greasyfork.org/zh-CN/scripts/424246)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript/V2ex-Enhanced.user.js)** | +| [](https://github.com/XIU2) | **Github 增强** | **高速下载** Git Clone/SSH、Release、Raw、Code(ZIP) 文件... | **[安装](https://greasyfork.org/zh-CN/scripts/412245)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript/GithubEnhanced-High-Speed-Download.user.js)** | +| [](https://github.com/XIU2) | **自动无缝翻页 \*** | **所有 Discuz! / Flarum 论坛** /百度/谷歌/贴吧/豆瓣/千图网... | **[安装](https://greasyfork.org/zh-CN/scripts/419215)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript/Autopage.user.js)** | +| [](https://bbs.3dmgame.com) | **3DM论坛 美化** | 精简多余内容、样式优化 | **[安装](https://greasyfork.org/zh-CN/scripts/413593)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript/3dm-Beautification.user.js)** | +| [](https://bbs.3dmgame.com) | **3DM论坛 增强** | **自动回复**、自动无缝翻页、清理置顶帖子、自动滚动至隐藏... | **[安装](https://greasyfork.org/zh-CN/scripts/412890)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript/3dm-Enhanced.user.js)** | +| [](https://www.lanzou.com) | **蓝奏云网盘 增强 \*** | 刷新不回根目录、**右键显示菜单**、显示更多文件、自动密码... | **[安装](https://greasyfork.org/zh-CN/scripts/419224)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript/Lanzou-Enhanced.user.js)** | +| [](https://github.com/XIU2) | **新标签页打开链接 \*** | 将网页中所有链接改为新标签页打开~ | **[安装](https://greasyfork.org/zh-CN/scripts/429714)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript/TargetBlank.user.js)** | +| [](https://www.52pojie.cn) | **吾爱破解论坛 美化** | 精简多余内容、样式优化 | **[安装](https://greasyfork.org/zh-CN/scripts/412681)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript/52pojie-Beautification.user.js)** | +| [](https://www.52pojie.cn) | **吾爱破解论坛 增强** | **自动签到**、自动无缝翻页、屏蔽导读悬赏贴 (最新发表页)... | **[安装](https://greasyfork.org/zh-CN/scripts/412680)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript/52pojie-Enhanced.user.js)** | +| [](https://hostloc.com) | **全球主机交流论坛 增强 \*** | **自动访问空间(22积分)、屏蔽用户**、屏蔽关键词、自动无缝翻... | **[安装](https://greasyfork.org/zh-CN/scripts/414005)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript/Hostloc-Enhanced.user.js)** | +| [](https://store.steampowered.com) | **Steam 创意工坊大图 修复** | 修复 Steam 创意工坊预览大图无法显示的问题 | **[安装](https://github.com/XIU2/UserScript/raw/master/SteamWorkshopImageRepair.user.js)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript/SteamWorkshopImageRepair.user.js)** | | [](https://translate.google.cn) | ~~_**Google 翻译 美化**_~~ | ~~_精简多余内容、修复翻译结果溢出屏幕问题_~~ | ~~_**[安装](https://zhuanlan.zhihu.com/p/286815739)** \| **[备用](https://zhuanlan.zhihu.com/p/286815739)**_~~ | -| [](http://bbs.zhiyoo.net/forum.php?mod=forumdisplay&fid=42&filter=author&orderby=dateline) | ~~_**智友邦论坛 美化**_~~ | ~~_精简多余内容、样式优化、宽屏显示_~~ | ~~_**[安装](https://greasyfork.org/zh-CN/scripts/412361)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/Zhiyoo-Beautification.user.js)**_~~ | -| [](http://bbs.zhiyoo.net/forum.php?mod=forumdisplay&fid=42&filter=author&orderby=dateline) | ~~_**智友邦论坛 增强**_~~ | ~~_自动签到、**自动回复**、自动无缝翻页、快捷回到顶部、附件..._~~ | ~~_**[安装](https://greasyfork.org/zh-CN/scripts/412362)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/Zhiyoo-Enhanced.user.js)**_~~ | +| [](http://bbs.zhiyoo.net/forum.php?mod=forumdisplay&fid=42&filter=author&orderby=dateline) | ~~_**智友邦论坛 美化**_~~ | ~~_精简多余内容、样式优化、宽屏显示_~~ | ~~_**[安装](https://greasyfork.org/zh-CN/scripts/412361)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript/Zhiyoo-Beautification.user.js)**_~~ | +| [](http://bbs.zhiyoo.net/forum.php?mod=forumdisplay&fid=42&filter=author&orderby=dateline) | ~~_**智友邦论坛 增强**_~~ | ~~_自动签到、**自动回复**、自动无缝翻页、快捷回到顶部、附件..._~~ | ~~_**[安装](https://greasyfork.org/zh-CN/scripts/412362)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript/Zhiyoo-Enhanced.user.js)**_~~ | > _脚本名称末尾 **`*`** 代表该脚本为**网友主动提出需求**而写的。如果你也有需求,可以[告诉我](https://github.com/XIU2/UserScript/issues/new/choose)!_ > _所有脚本均在 **Chrome、Firefox、Edge 浏览器 + Tampermonkey 扩展** 环境下测试通过!_ From cd2835829cbc9a2c687c7a4cb28195e5a479f8f0 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Mon, 11 Oct 2021 13:21:12 +0800 Subject: [PATCH 0028/1773] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[XIU=E3=80=81D8(?= =?UTF-8?q?WP=E4=B8=BB=E9=A2=98)]=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 | 51 +++++++++++++++++++++++------------------------- 1 file changed, 24 insertions(+), 27 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 66b4bbef7..88df6fee9 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,8 +1,8 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.8.7 +// @version 2.8.8 // @author X.I.U -// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、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(以上仅一部分,更多的写不下了... +// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX/XIU/D8(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 *://*/* // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAALfElEQVRYhX2Xe3Bd1XXGf3vvc859X+nq6nUlW5Yly7JlI2xsYzAwtnk4ATpAxkNTHm0mnaTT/gHTTvrIBDLTpp1JUoZppqHQls5AKTR2INOWJJQSXF4x2BhsJCRZ8kuWZckPSVf3/Trn7N3RVTFpQrNn1l97n7O/vda31reWMKMPcmUJA9U8vrwHGdqCHn4HPzePaIxhVSoYbYRXrn7BeMVbCUduF6kVUXHwvQP+6amDaqDnoIompmQytaBnTmB8H5lowrjgFss48SBeI/hUEEZeudLi1ywhJEIJdL6Q8rzal/1a5SGC4XZrYBvWwEZobMdLdH6RH+z/Io1taEeh52fe8tOZbysl/ouWFvANYP7fSz4DgAEBBIL4xiS8ubmnVcTZK68aRK29Dtm8dgnZJydRW+/E2nrnp19nz+7U77+60zt0qMz07J/KxuQTwrIw4rMBCDP6wC+FIIcO34eudDdXf/7jD52Opi772lugY3AZr++hp06gz48j+waRqTWYmVHcS+chEMFeuw1hBzBzY7g/fQE9fmqBYPzBQKrpVa/R4OkCAnXlSvXnX9sIllk220BE4Z8OdHoj54YCK6Od1i2/iUmuRyDRk6NUn3+M0pv/hnf0AE40jEjEqP3oe6Rf/CGOWUTNjFKby2MP7EBtugURFWFxfOhB4+o4yfhrGAdZsxHaqZt6dNce9KXYFSPfGWS68JFq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mCC // @grant GM_xmlhttpRequest @@ -200,9 +200,10 @@ }, // Flarum dux: { SiteTypeID: 0, + host: 'www.puresys.net', pager: { type: 1, - nextLink: '//li[@class="next-page"]/a[@href]', + nextLink: 'css;li.next-page > a', pageElement: 'css;.content > article', insertPosition: ['css;.content > .pagination', 1], replaceE: 'css;.content > .pagination', @@ -212,7 +213,7 @@ before: src_functionBefore, parameter: [0, 'img.thumb[data-src]', 'data-src'] } - }, // WordPress 主题 + }, // WordPress 的 DUX、XIU、D8 主题 baidu: { SiteTypeID: 0, host: 'www.baidu.com', @@ -2874,22 +2875,6 @@ scrollDelta: 700 } }, // 微当下载 - 专题页 - th_sjy: { - SiteTypeID: 0, - host: ['www.th-sjy.com', 'www.puresys.net'], - pager: { - type: 1, - nextLink: 'css;li.next-page > a', - pageElement: 'css;.content > article', - insertPosition: ['css;.pagination', 1], - replaceE: 'css;.pagination', - scrollDelta: 2000 - }, - function: { - before: src_functionBefore, - parameter: [0, 'img[data-src]', 'data-src'] - } - }, // th-sjy 汉化 + Puresys fsylr: { SiteTypeID: 0, host: 'fsylr.com', @@ -4008,7 +3993,15 @@ // < 所有使用 WordPress DUX 主题的网站 > } else if (webType === 4) { if (location.pathname.indexOf('.html') === -1) curSite = DBSite.dux; - if (location.host === 'apphot.cc') curSite.pager.scrollDelta = 2500; // 对于速度慢的网站,需要增加翻页敏感度 + if (location.host === 'apphot.cc') curSite.pager.scrollDelta = 2500; // 对于速度慢的网站,需要增加翻页触发点 + // < 所有使用 WordPress XIU 主题的网站 > + } else if (webType === 5) { + if (location.pathname.indexOf('.html') === -1) curSite = DBSite.dux; + curSite.function = {before: src_functionBefore, parameter: [0, 'img.thumb[data-original]', 'data-original']} // 修改插入前函数 + // < 所有使用 WordPress D8 主题的网站 > + } else if (webType === 6) { + if (location.pathname.indexOf('.html') === -1) curSite = DBSite.dux; + delete curSite.function; // 不需要插入前函数 } } @@ -4048,7 +4041,7 @@ if (curSite.insStyle) insStyle(curSite.insStyle) curSite.pageUrl = ''; // 下一页URL - //console.log(curSite); + console.log(curSite); pageLoading(); // 自动无缝翻页 @@ -5188,13 +5181,17 @@ } if (support) { - console.info('[自动无缝翻页] - 其他网站(独立规则)'); return 1; - } else if (document.querySelector('meta[name="author"][content*="Discuz!"], meta[name="generator"][content*="Discuz!"]') || document.querySelector('body[id="nv_forum"][class^="pg_"][onkeydown*="27"]') || document.querySelector('body[id="nv_search"][onkeydown*="27"]') || (document.querySelector('a[href*="www.discuz.net"]') && document.querySelector('a[href*="www.discuz.net"]').textContent.indexOf('Discuz!') > -1) || (document.getElementById('ft') && document.getElementById('ft').textContent.indexOf('Discuz!') > -1)) { - console.info('[自动无缝翻页] - Discuz! 论坛'); return 2; + console.info('[自动无缝翻页] - 独立规则 网站'); return 1; + } else if (document.querySelector('meta[name="author"][content*="Discuz!"], meta[name="generator"][content*="Discuz!"], body[id="nv_forum"][class^="pg_"][onkeydown*="27"], body[id="nv_search"][onkeydown*="27"]') || (document.querySelector('a[href*="www.discuz.net"]') && document.querySelector('a[href*="www.discuz.net"]').textContent.indexOf('Discuz!') > -1) || (document.getElementById('ft') && document.getElementById('ft').textContent.indexOf('Discuz!') > -1)) { + console.info('[自动无缝翻页] - 论坛'); return 2; } else if (document.getElementById('flarum-loading')) { - console.info('[自动无缝翻页] - Flarum 论坛'); return 3; + console.info('[自动无缝翻页] - 论坛'); return 3; } else if (document.querySelector('link[href*="themes/dux" i], script[src*="themes/dux" i]')) { - console.info('[自动无缝翻页] - 使用 WordPress DUX 主题的网站'); return 4; + console.info('[自动无缝翻页] - 使用 WordPress 主题的网站'); return 4; + } else if (document.querySelector('link[href*="themes/xiu" i], script[src*="themes/xiu" i]')) { + console.info('[自动无缝翻页] - 使用 WordPress 主题的网站'); return 5; + } else if (document.querySelector('link[href*="themes/d8" i], script[src*="themes/d8"]')) { + console.info('[自动无缝翻页] - 使用 WordPress 主题的网站'); return 6; } else if (self != top) { return -1; } From e82bafcaf7eaaaa343ffb6bd9f6196b105f92478 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Mon, 11 Oct 2021 13:27:01 +0800 Subject: [PATCH 0029/1773] =?UTF-8?q?=E6=B3=A8=E9=87=8A=20=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Autopage.user.js b/Autopage.user.js index 88df6fee9..af1d16d92 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -4041,7 +4041,7 @@ if (curSite.insStyle) insStyle(curSite.insStyle) curSite.pageUrl = ''; // 下一页URL - console.log(curSite); + //console.log(curSite); pageLoading(); // 自动无缝翻页 From bde70294eb7bab291520f2c253e217dadd05beeb Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Mon, 11 Oct 2021 13:49:01 +0800 Subject: [PATCH 0030/1773] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[Begin(WP?= =?UTF-8?q?=E4=B8=BB=E9=A2=98)]=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 | 59 +++++++++++++++++++++++++++--------------------- 1 file changed, 33 insertions(+), 26 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index af1d16d92..91ad5a8ff 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,8 +1,8 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.8.8 +// @version 2.8.9 // @author X.I.U -// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX/XIU/D8(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(以上仅一部分,更多的写不下了... +// @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 *://*/* // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAALfElEQVRYhX2Xe3Bd1XXGf3vvc859X+nq6nUlW5Yly7JlI2xsYzAwtnk4ATpAxkNTHm0mnaTT/gHTTvrIBDLTpp1JUoZppqHQls5AKTR2INOWJJQSXF4x2BhsJCRZ8kuWZckPSVf3/Trn7N3RVTFpQrNn1l97n7O/vda31reWMKMPcmUJA9U8vrwHGdqCHn4HPzePaIxhVSoYbYRXrn7BeMVbCUduF6kVUXHwvQP+6amDaqDnoIompmQytaBnTmB8H5lowrjgFss48SBeI/hUEEZeudLi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YPP/MLwxFAkIKEzEye2zswOXX395lJyK0fOFzRHfuglQfqPin59Nn0RNDuJk09vprkd0brmx5H7xCbfgQbrZ83OkfvN1pj0+ZmkBYNhjzCwCeffr/AsBDJyU6kqBwbPzRuTcP/GXV82lYlaJpfQ+BjVdhXX0tNKTAjvzKqKXPTeC++1NKY0c9kVz1SGzb9X8tjIdfzSFCDfUw/noA0scPuxBrwcvmmH3rQIvMm3/y0XdJS4JfIpiIUG9g+wcg6KDnZpGZNDQ0Ii5cSAtlPRHYct13axWvJNwadiiAli4iEP8VAJ89HQtR129TLiG1nos0Nt8dSOi12qi9lRq3utVqT/lirql24hW3vLBQi3d3XUqu73+PZOonBNR/WnbYSMeGTO5/Xf6ZtwDwPwtFRezQVs+sAAAAAElFTkSuQmCC // @grant GM_xmlhttpRequest @@ -214,6 +214,26 @@ parameter: [0, 'img.thumb[data-src]', 'data-src'] } }, // WordPress 的 DUX、XIU、D8 主题 + begin: { + SiteTypeID: 0, + pager: { + type: 2, + nextLink: 'div[id^="ias_trigger_"]', + intervals: 500, + scrollDelta: 1500 + } + }, // WordPress 的 Begin 主题 + begin_search: { + SiteTypeID: 0, + pager: { + type: 1, + nextLink: 'css;a.next[href]', + pageElement: 'css;#main > ul > li', + insertPosition: ['css;#main > ul', 3], + replaceE: 'css;nav.pagination', + scrollDelta: 1500 + } + }, // WordPress 的 Begin 主题 - 搜索页 baidu: { SiteTypeID: 0, host: 'www.baidu.com', @@ -2761,28 +2781,6 @@ scrollDelta: 1000 } }, // 乐软博客 - pc521: { - SiteTypeID: 0, - host: ['www.pc521.net', 'www.winos.me'], - functionStart: function() {if (location.search.slice(0,3) === '?s=') {curSite = DBSite.pc521_search;} else if (location.pathname.indexOf('.html') === -1) {curSite = DBSite.pc521;}}, - pager: { - type: 2, - nextLink: 'div[id^="ias_trigger_"]', - intervals: 1000, - scrollDelta: 1000 - } - }, // 不忘初心 + WINOS - pc521_search: { - SiteTypeID: 0, - pager: { - type: 1, - nextLink: 'css;a.next[href]', - pageElement: 'css;#main > ul > li', - insertPosition: ['css;#main > ul', 3], - replaceE: 'css;nav.pagination', - scrollDelta: 1500 - } - }, // 不忘初心 - 搜索页 ghxi: { SiteTypeID: 0, host: 'www.ghxi.com', @@ -4002,6 +4000,13 @@ } else if (webType === 6) { if (location.pathname.indexOf('.html') === -1) curSite = DBSite.dux; delete curSite.function; // 不需要插入前函数 + // < 所有使用 WordPress Begin 主题的网站 > + } else if (webType === 7) { + if (location.search.slice(0,3) === '?s=') { + curSite = DBSite.begin_search; + } else if (location.pathname.indexOf('.html') === -1) { + curSite = DBSite.begin; + } } } @@ -5182,7 +5187,7 @@ if (support) { console.info('[自动无缝翻页] - 独立规则 网站'); return 1; - } else if (document.querySelector('meta[name="author"][content*="Discuz!"], meta[name="generator"][content*="Discuz!"], body[id="nv_forum"][class^="pg_"][onkeydown*="27"], body[id="nv_search"][onkeydown*="27"]') || (document.querySelector('a[href*="www.discuz.net"]') && document.querySelector('a[href*="www.discuz.net"]').textContent.indexOf('Discuz!') > -1) || (document.getElementById('ft') && document.getElementById('ft').textContent.indexOf('Discuz!') > -1)) { + } else if (document.querySelector('meta[name="author" i][content*="Discuz!" i], meta[name="generator" i][content*="Discuz!" i], body[id="nv_forum" i][class^="pg_" i][onkeydown*="27"], body[id="nv_search" i][onkeydown*="27"]') || (document.querySelector('a[href*="www.discuz.net" i]') && document.querySelector('a[href*="www.discuz.net" i]').textContent.indexOf('Discuz!') > -1) || (document.getElementById('ft') && document.getElementById('ft').textContent.indexOf('Discuz!') > -1)) { console.info('[自动无缝翻页] - 论坛'); return 2; } else if (document.getElementById('flarum-loading')) { console.info('[自动无缝翻页] - 论坛'); return 3; @@ -5190,8 +5195,10 @@ console.info('[自动无缝翻页] - 使用 WordPress 主题的网站'); return 4; } else if (document.querySelector('link[href*="themes/xiu" i], script[src*="themes/xiu" i]')) { console.info('[自动无缝翻页] - 使用 WordPress 主题的网站'); return 5; - } else if (document.querySelector('link[href*="themes/d8" i], script[src*="themes/d8"]')) { + } else if (document.querySelector('link[href*="themes/d8" i], script[src*="themes/d8" i]')) { console.info('[自动无缝翻页] - 使用 WordPress 主题的网站'); return 6; + } else if (document.querySelector('link[href*="themes/begin" i], script[src*="themes/begin" i], img[src*="themes/begin" i]')) { + console.info('[自动无缝翻页] - 使用 WordPress 主题的网站'); return 7; } else if (self != top) { return -1; } From d8f9d4b02197eac6abe32aeaab10a6d0b6f7c9ab Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Mon, 11 Oct 2021 20:04:36 +0800 Subject: [PATCH 0031/1773] =?UTF-8?q?=E6=96=B0=E5=A2=9E[MM131=E3=80=81?= =?UTF-8?q?=E5=9B=BE=E9=9B=86=E8=B0=B7]=20=E6=94=AF=E6=8C=81;=20=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=20[=E7=99=BE=E5=BA=A6=E8=B4=B4=E5=90=A7=20-=20?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E9=A1=B5]=20=E8=A7=84=E5=88=99;=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=20[=E9=A3=9E=E5=AE=A2=E7=BD=91=E8=AE=BA=E5=9D=9B]=20?= =?UTF-8?q?=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 248 +++++++++++++++++++++++++++++------------------ 1 file changed, 156 insertions(+), 92 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 91ad5a8ff..64e98f575 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.8.9 +// @version 2.9.0 // @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 *://*/* @@ -121,7 +121,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[contains(@class, "nxt") or contains(@class, "next")][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next")][not(contains(@href, "javascript"))]', pageElement: 'css;#threadlist table > tbody[id^="normalthread_"]', insertPosition: ['id("threadlist")//table/tbody[starts-with(@id, "normalthread_")]/parent::table', 3], replaceE: 'css;.pg, .pages', @@ -132,7 +132,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[contains(@class, "nxt") or contains(@class, "next")][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next")][not(contains(@href, "javascript"))]', pageElement: 'css;#waterfall > li', insertPosition: ['css;#waterfall', 3], replaceE: 'css;.pg, .pages', @@ -144,7 +144,7 @@ insStyle: '.pgbtn {display: none;}', pager: { type: 1, - nextLink: '//a[contains(@class, "nxt") or contains(@class, "next")][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next")][not(contains(@href, "javascript"))]', pageElement: 'css;#postlist > div[id^="post_"]', insertPosition: ['css;#postlist', 3], replaceE: 'css;.pg, .pages', @@ -159,7 +159,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[contains(@class, "nxt") or contains(@class, "next")][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next")][not(contains(@href, "javascript"))]', pageElement: 'css;#threadlist > ul', insertPosition: ['css;#threadlist', 3], replaceE: 'css;.pg, .pages', @@ -170,7 +170,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[contains(@class, "nxt") or contains(@class, "next")][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next")][not(contains(@href, "javascript"))]', pageElement: 'css;tbody > tr:not(.th)', insertPosition: ['css;tbody', 3], replaceE: 'css;.pg, .pages', @@ -181,7 +181,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[contains(@class, "nxt") or contains(@class, "next")][@href][not(contains(@href, "javascript"))]', + nextLink: '//a[contains(@class, "nxt") or contains(@class, "next")][not(contains(@href, "javascript"))]', pageElement: 'css;#ct .bm_c table > tbody', insertPosition: ['css;#ct .bm_c table', 3], replaceE: 'css;.pg, .pages', @@ -240,7 +240,7 @@ insStyle: '.new-pmd .c-img-border {position: initial !important;} .op-bk-polysemy-video__wrap.c-gap-bottom {display: none !important;}', pager: { type: 1, - nextLink: 'id("page")//a[contains(text(),"下一页")][@href]', + nextLink: 'id("page")//a[contains(text(),"下一页")]', pageElement: 'css;#content_left > *', insertPosition: ['css;#content_left', 3], replaceE: 'css;#page', @@ -257,7 +257,7 @@ }}, pager: { type: 1, - nextLink: 'id("pnnext")[@href]', + nextLink: 'css;#pnnext', pageElement: 'css;#res > *', insertPosition: ['css;#res', 3], replaceE: 'id("navcnt") | id("rcnt")//div[@role="navigation"]', @@ -276,7 +276,7 @@ insStyle: '.b_imagePair.square_mp > .inner {display: none !important;}', pager: { type: 1, - nextLink: '//a[contains(@class,"sb_pagN")][@href]', + nextLink: '//a[contains(@class,"sb_pagN")]', pageElement: 'css;#b_results > li:not(.b_msg):not(.b_pag):not(#mfa_root)', insertPosition: ['css;#b_results > .b_pag', 1], replaceE: 'css;#b_results > .b_pag', @@ -483,7 +483,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//li[contains(@class,"pb_list_pager")]/a[contains(text(),"下一页")][@href]', + nextLink: '//li[contains(@class,"pb_list_pager")]/a[contains(text(),"下一页")]', pageElement: 'css;#j_p_postlist > div', insertPosition: ['css;#j_p_postlist', 3], replaceE: 'css;li.pb_list_pager', @@ -494,10 +494,10 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[@class="next"][@href]', - pageElement: 'css;#j_p_postlist > *', - insertPosition: ['css;#j_p_postlist', 3], - replaceE: 'css;.pager.pager-search', + nextLink: 'css;a.next', + pageElement: 'css;.s_post_list > div', + insertPosition: ['css;.s_post_list', 3], + replaceE: 'css;.pager', scriptType: 1, scrollDelta: 1000 } @@ -514,7 +514,7 @@ }}, pager: { type: 1, - nextLink: '//a[@class="next"][@href]', + nextLink: 'css;a.next', pageElement: 'css;#comments > .comment-item', insertPosition: ['css;#paginator', 1], replaceE: 'css;#paginator', @@ -525,7 +525,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//link[@rel="next"][@href]', + nextLink: 'css;link[rel="next"]', pageElement: 'css;.review-list > div', insertPosition: ['css;.review-list', 3], replaceE: 'css;.paginator', @@ -536,7 +536,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//link[@rel="next"][@href]', + nextLink: 'css;link[rel="next"]', pageElement: 'css;#comments > div', insertPosition: ['css;#comments', 3], replaceE: 'css;.paginator', @@ -679,7 +679,7 @@ }}, pager: { type: 1, - nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]', + nextLink: '//a[@class="page_current"]/following-sibling::a[1]', pageElement: 'css;.cell.item', insertPosition: ['//div[@id="Main"]//div[@class="box"]//div[@class="cell"][last()]', 1], replaceE: 'css;#Main > .box > .cell[style]:not(.item) > table', @@ -694,7 +694,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]', + nextLink: '//a[@class="page_current"]/following-sibling::a[1]', pageElement: 'css;#notifications > div', insertPosition: ['css;#notifications', 3], replaceE: 'css;#Main > .box > .cell[style] > table', @@ -709,7 +709,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]', + nextLink: '//a[@class="page_current"]/following-sibling::a[1]', pageElement: '//div[@id="Main"]//div[@class="box"]//div[@class="dock_area"] | //*[@id="Main"]//div[@class="box"]//div[@class="inner"] | //*[@id="Main"]//div[@class="box"]//div[@class="dock_area"][last()]/following-sibling::div[@class="cell"][1]', insertPosition: ['//div[@id="Main"]//div[@class="box"]//div[@class="cell"][last()]', 1], replaceE: 'css;#Main > .box > .cell[style] > table', @@ -724,7 +724,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]', + nextLink: '//a[@class="page_current"]/following-sibling::a[1]', pageElement: 'css;#TopicsNode > div', insertPosition: ['css;#TopicsNode', 3], replaceE: 'css;#Main > .box > .cell[style] > table', @@ -739,7 +739,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]', + nextLink: '//a[@class="page_current"]/following-sibling::a[1]', pageElement: 'css;#Main .box > div:not(.cell) > table > tbody > tr:not(:first-child)', insertPosition: ['css;#Main .box > div:not(.cell) > table > tbody', 3], replaceE: 'css;#Main > .box > .cell[style] > table', @@ -888,7 +888,7 @@ }}, pager: { type: 1, - nextLink: '//div[@class="fr i3_r"]/a[@href][contains(text(), "后一页")]', + nextLink: '//div[@class="fr i3_r"]/a[contains(text(), "后一页")]', pageElement: 'css;ul.main_List > li.i2:not(.h_bg)', insertPosition: ['css;ul.main_List > li.i3', 1], replaceE: 'css;ul.main_List > li.i3', @@ -937,7 +937,7 @@ insStyle: 'li.ui-list-merchant-ad, .ui-nav-appImage {display: none !important;}', pager: { type: 1, - nextLink: '//div[@class="ui-paging"]/a[@class="ui-paging-next"]', + nextLink: 'css;a.ui-paging-next', pageElement: 'css;ul.ui-list > li:not(.ui-list-item-head):not(.ui-list-merchant-ad)', insertPosition: ['css;ul.ui-list', 3], replaceE: 'css;div.ui-paging', @@ -998,7 +998,7 @@ functionStart: function() {if (location.pathname.indexOf('/forum') > -1) {curSite = DBSite.lieyou;}}, pager: { type: 1, - nextLink: '//div[contains(@class, "_pageNav")]/a[@href][contains(text(), "下一页")]', + nextLink: '//div[contains(@class, "_pageNav")]/a[contains(text(), "下一页")]', pageElement: 'css;ul.gb-bbs-list > li', insertPosition: ['css;ul.gb-bbs-list', 3], replaceE: 'css;._pageNav', @@ -1025,14 +1025,14 @@ flyert_forumdisplay: { SiteTypeID: 0, host: 'www.flyert.com', - functionStart: function() {if (location.search.indexOf('mod=forumdisplay') > -1) { + functionStart: function() {if (location.pathname.indexOf('/forum-') > -1 || location.search.indexOf('mod=forumdisplay') > -1) { curSite = DBSite.flyert_forumdisplay; - } else if (location.search.indexOf('mod=viewthread') > -1) { + } else if (location.pathname.indexOf('/forum') > -1 || location.search.indexOf('mod=viewthread') > -1) { if (GM_getValue('menu_discuz_thread_page')) {curSite = DBSite.flyert_viewthread;} }}, pager: { type: 1, - nextLink: '//a[@class="nxt"][@href][not(contains(@href, "javascript"))]', + nextLink: 'css;a.nxt:not([href*="javascript"])', pageElement: 'css;#threadlist table > tbody[id^="normalthread_"]', insertPosition: ['id("threadlist")//table/tbody[starts-with(@id, "normalthread_")]/parent::table', 3], replaceE: 'css;.pg', @@ -1043,7 +1043,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[@class="nxt"][@href][not(contains(@href, "javascript"))]', + nextLink: 'css;a.nxt:not([href*="javascript"])', pageElement: 'css;#postlist > .comiis_viewbox', insertPosition: ['css;#postlist', 3], replaceE: 'css;.comiis_pgs > .pg', @@ -1161,7 +1161,7 @@ insStyle: '.qtw-card.place-box.is-two {display: none !important;}', // 隐藏登录弹窗、隐藏末尾很大的 [下一页] 按钮 pager: { type: 1, - nextLink: '//div[contains(@class,"page-box")]//a[text()="下一页"][@href]', + nextLink: '//div[contains(@class,"page-box")]//a[text()="下一页"]', pageElement: 'css;.pic-box > .qtw-card', insertPosition: ['css;.pic-box', 3], replaceE: 'css;.page-box', @@ -1176,7 +1176,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//div[contains(@class,"page-box")]//a[text()="下一页"][@href]', + nextLink: '//div[contains(@class,"page-box")]//a[text()="下一页"]', pageElement: 'css;.list-box > .qtw-card', insertPosition: ['css;.list-box', 3], replaceE: 'css;.page-box', @@ -1192,10 +1192,10 @@ host: 'pixabay.com', pager: { type: 1, - nextLink: '//a[text()="›"][@href]', + nextLink: '//a[text()="›"]', pageElement: 'css;[class^="results"] > [class^="container"] > div', insertPosition: ['css;[class^="results"] > [class^="container"]', 3], - replaceE: '//a[text()="›"][@href]', + replaceE: '//a[text()="›"]', scrollDelta: 2000 }, function: { @@ -1262,7 +1262,7 @@ host: 'www.3dmgame.com', pager: { type: 3, - nextLink: '//li[@class="next"]/a[@href]', + nextLink: 'css;li.next > a', pageElement: 'css;.news_warp_center > *', insertPosition: ['css;.news_warp_center', 3], replaceE: 'css;.pagewrap', @@ -1288,7 +1288,7 @@ host: 'www.ali213.net', pager: { type: 3, - nextLink: 'id("after_this_page")[@href]', + nextLink: 'css;#after_this_page', pageElement: 'css;#Content >*:not(.news_ding):not(.page_fenye)', insertPosition: ['css;.page_fenye', 1], replaceE: 'css;.page_fenye', @@ -1302,7 +1302,7 @@ insStyle: '.n_show_b {display: none !important;}', pager: { type: 3, - nextLink: '//a[@class="next n"][@href]', + nextLink: 'css;a.next', pageElement: 'css;.c-detail >*', insertPosition: ['css;.c-detail', 3], replaceE: 'css;.page_fenye', @@ -1329,7 +1329,7 @@ functionStart: function() {if (location.pathname.indexOf('/ent/') > -1) {curSite = DBSite.gamersky_ent;} else {curSite = DBSite.gamersky_gl;}}, pager: { type: 3, - nextLink: '//div[@class="page_css"]/a[text()="下一页"][@href]', + nextLink: '//div[@class="page_css"]/a[text()="下一页"]', pageElement: 'css;.Mid2L_con > *:not(.gs_nc_editor):not(.pagecss):not(.page_css):not(.gs_ccs_solve):not(.post_ding)', insertPosition: ['css;.page_css', 1], replaceE: 'css;.page_css', @@ -1341,7 +1341,7 @@ SiteTypeID: 0, pager: { type: 3, - nextLink: '//div[@class="page_css"]/a[text()="下一页"][@href]', + nextLink: '//div[@class="page_css"]/a[text()="下一页"]', forceHTTPS: true, pageElement: 'css;.Mid2L_con > *:not(.gs_nc_editor):not(.pagecss):not(.gs_ccs_solve):not(.post_ding)', insertPosition: ['css;.gs_nc_editor', 1], @@ -1371,7 +1371,7 @@ host: 'steamcommunity.com', pager: { type: 1, - nextLink: '//a[@class="pagebtn"][last()][@href]', + nextLink: '//a[@class="pagebtn"][last()]', pageElement: 'css;.workshopBrowseItems > *', insertPosition: ['css;.workshopBrowseItems', 3], replaceE: 'css;.workshopBrowsePaging', @@ -1403,7 +1403,7 @@ }}, pager: { type: 1, - nextLink: '//td[@class="gensmall"][@align="right"]//a[text()="Next"][@href]', + nextLink: '//td[@class="gensmall"][@align="right"]//a[text()="Next"]', pageElement: 'css;#pagecontent > table.tablebg > tbody > tr:not([align])', insertPosition: ['css;#pagecontent > table.tablebg > tbody > tr[align]', 1], replaceE: 'css;#pagecontent > table:first-child', @@ -1417,7 +1417,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: 'id("pageheader")/p[@class="gensmall"]//a[text()="Next"][@href]', + nextLink: 'id("pageheader")/p[@class="gensmall"]//a[text()="Next"]', pageElement: 'css;#pagecontent > table.tablebg:not(:nth-last-child(2)):not(:nth-child(2))', insertPosition: ['css;#pagecontent > table.tablebg:nth-last-child(2)', 1], replaceE: 'css;#pagecontent >table:not(.tablebg), #pageheader p.gensmall', @@ -1441,7 +1441,7 @@ insStyle: 'html.wp-dark-mode-active .inside-article {background-color: var(--wp-dark-mode-bg);}', pager: { type: 1, - nextLink: '//a[@class="next page-numbers"][@href]', + nextLink: 'css;a.next.page-numbers', pageElement: 'css;article[id^="post-"]', insertPosition: ['css;nav.paging-navigation', 1], replaceE: 'css;nav.paging-navigation', @@ -1453,11 +1453,11 @@ host: 'fitgirl-repacks.site', pager: { type: 1, - nextLink: '//a[@class="next page-numbers"][@href]', + nextLink: 'css;a.next.page-numbers', pageElement: 'css;article[id^="post-"]', insertPosition: ['css;nav.paging-navigation', 1], replaceE: 'css;nav.paging-navigation', - scrollDelta: 2000 + scrollDelta: 2500 } }, // FitGirl Repacks bilibili_search: { @@ -1718,7 +1718,7 @@ }}, pager: { type: 1, - nextLink: '//div[@class="pages"]/a[@href][contains(text(), "下一页")]', + nextLink: '//div[@class="pages"]/a[contains(text(), "下一页")]', pageElement: 'css;#contrainer > .img> ul > li', insertPosition: ['css;#contrainer > .img> ul', 3], replaceE: 'css;.pages', @@ -1730,7 +1730,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//div[@class="pages"]/a[@href][contains(text(), "下一页")]', + nextLink: '//div[@class="pages"]/a[contains(text(), "下一页")]', pageElement: 'css;#contrainer .fire .pics > ul > li', insertPosition: ['css;#contrainer .fire .pics > ul', 3], replaceE: 'css;.pages', @@ -1750,7 +1750,7 @@ }}, pager: { type: 1, - nextLink: 'id("container")//div[@class="blockcontent"]/div[@style][not(@class)]/li/a[@href][contains(text(), "下一页")]', + nextLink: 'id("container")//div[@class="blockcontent"]/div[@style][not(@class)]/li/a[contains(text(), "下一页")]', pageElement: 'css;#container .blockcontent1 > div', insertPosition: ['css;#container .blockcontent1', 3], replaceE: 'css;#container .blockcontent > div[style]:not([class])', @@ -1761,7 +1761,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: 'id("container")//div[@class="blockcontent"]/div[@style][not(@class)]/li/a[@href][contains(text(), "下一页")]', + nextLink: 'id("container")//div[@class="blockcontent"]/div[@style][not(@class)]/li/a[contains(text(), "下一页")]', pageElement: 'css;#container .blockcontent > ul > li', insertPosition: ['css;#container .blockcontent > ul', 3], replaceE: 'css;#container .blockcontent > div[style]:not([class])', @@ -1772,7 +1772,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: 'id("container")/ul[@style][not(@class)]/li/a[@href][contains(text(), "下一页")]', + nextLink: 'id("container")/ul[@style][not(@class)]/li/a[contains(text(), "下一页")]', pageElement: 'css;#container > .div_right .blockcontent.div_right_r_3 > ul', insertPosition: ['css;#container > .div_right .blockcontent.div_right_r_3', 3], replaceE: 'css;#container > ul[style]:not([class])', @@ -1925,7 +1925,7 @@ host: ['share.dmhy.org', 'dmhy.anoneko.com'], pager: { type: 1, - nextLink: '//div[@class="nav_title"]/a[@href][contains(text(), "下一頁")]', + nextLink: '//div[@class="nav_title"]/a[contains(text(), "下一")]', pageElement: 'css;#topic_list > tbody > tr', insertPosition: ['css;#topic_list > tbody', 3], replaceE: 'css;.nav_title', @@ -1978,7 +1978,7 @@ host: /nyaa\.si/, pager: { type: 1, - nextLink: '//a[@rel="next"][@href] | //li[@class="next"]/a[@href]', + nextLink: 'css;a[rel="next"], li.next > a', pageElement: 'css;table.torrent-list > tbody > tr', insertPosition: ['css;table.torrent-list > tbody', 3], replaceE: 'css;ul.pagination', @@ -2004,7 +2004,7 @@ functionStart: function() {if (location.pathname === '/torrents.php') {curSite = DBSite.rarbgprx;}}, pager: { type: 1, - nextLink: '(//a[@title="next page"])[1][@href]', + nextLink: 'css;#pager_links > a[title="next page"]', pageElement: 'css;table.lista2t tr.lista2', insertPosition: ['css;table.lista2t > tbody', 3], replaceE: 'css;#pager_links', @@ -2159,7 +2159,7 @@ functionStart: function() {if (location.pathname.indexOf('/TXT/list') > -1) curSite = DBSite.baoshuu;}, pager: { type: 1, - nextLink: '//div[@class="listl2"]//a[@href][text()="下一页"]', + nextLink: '//div[@class="listl2"]//a[text()="下一页"]', pageElement: 'css;.listl2 > ul > li', insertPosition: ['css;.listl2 > ul', 3], replaceE: 'css;listl2 > dl', @@ -2173,7 +2173,7 @@ functionStart: function() {if (location.pathname.indexOf('/TXT/list') > -1) curSite = DBSite.baoshuu_m;}, pager: { type: 1, - nextLink: '//div[@class="man_first"]//a[@href][text()="下一页"]', + nextLink: '//div[@class="man_first"]//a[text()="下一页"]', pageElement: 'css;.man_first > ul > li', insertPosition: ['css;.man_first > ul', 3], replaceE: 'css;.man_first > dl', @@ -2256,7 +2256,7 @@ }}, pager: { type: 1, - nextLink: '//p[@class="mlfy_page"]/a[@href][contains(text(), "下一页") or contains(text(), "下一章")]', + nextLink: '//p[@class="mlfy_page"]/a[contains(text(), "下一页") or contains(text(), "下一章")]', pageElement: 'css;#mlfy_main_text > *', insertPosition: ['css;#mlfy_main_text', 3], replaceE: 'css;p.mlfy_page, head > title', @@ -2390,7 +2390,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//div[contains(@class, "pagination")]//a[@href][contains(text(), "下一页") or contains(text(), "下页")]', + nextLink: '//div[contains(@class, "pagination")]//a[contains(text(), "下一页") or contains(text(), "下页")]', pageElement: 'css;.comic-main-section > *', insertPosition: ['css;.comic-main-section', 3], replaceE: 'css;.pagination', @@ -2405,7 +2405,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//div[contains(@class, "pagination")]//a[@href][contains(text(), "下一页") or contains(text(), "下页")]', + nextLink: '//div[contains(@class, "pagination")]//a[contains(text(), "下一页") or contains(text(), "下页")]', pageElement: 'css;.comic-main-section .row > div', insertPosition: ['css;.comic-main-section .row', 3], replaceE: 'css;.pagination', @@ -2640,7 +2640,7 @@ insStyle: '.header {opacity: 0.3 !important;}', pager: { type: 1, - nextLink: '//div[@class="fanye"][1]/a[@href][text()="下一页" or text()="下一话"]', + nextLink: '//div[@class="fanye"][1]/a[text()="下一页" or text()="下一话"]', pageElement: 'css;.comicpage > div,title', insertPosition: ['css;.comicpage', 3], replaceE: 'css;.fanye,h1.title', @@ -2676,7 +2676,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//div[@class="page-pagination"]//a[@href][contains(text(), ">")]', + nextLink: '//div[@class="page-pagination"]//a[contains(text(), ">")]', pageElement: 'css;ul.mh-list > li', insertPosition: ['css;ul.mh-list', 3], replaceE: 'css;.page-pagination', @@ -2689,7 +2689,7 @@ functionStart: function() {if (location.pathname.indexOf('.html') === -1) curSite = DBSite._423down;}, pager: { type: 1, - nextLink: '//div[@class="paging"]//a[contains(text(),"下一页")][@href]', + nextLink: '//div[@class="paging"]//a[contains(text(),"下一页")]', pageElement: 'css;div.content-wrap ul.excerpt > li', insertPosition: ['css;div.content-wrap ul.excerpt', 3], replaceE: 'css;div.paging', @@ -2701,7 +2701,7 @@ host: 'iao.su', pager: { type: 1, - nextLink: '//li[@class="btn btn-primary next"]//a[@href]', + nextLink: 'css;li.next > a', pageElement: 'css;#index > article, #archive > article', insertPosition: ['css;ol.page-navigator', 1], replaceE: 'css;ol.page-navigator', @@ -2762,7 +2762,7 @@ host: 'www.appinn.com', pager: { type: 1, - nextLink: '//a[@class="next page-numbers"][@href]', + nextLink: 'css;a.next.page-numbers', pageElement: 'css;section#latest-posts > article', insertPosition: ['css;nav.navigation.pagination', 1], replaceE: 'css;div.nav-links', @@ -2825,7 +2825,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[@class="next"][@href]', + nextLink: 'css;a.next', pageElement: 'css;ul.post-loop > li', insertPosition: ['css;ul.post-loop', 3], replaceE: 'css;ul.pagination', @@ -2896,7 +2896,7 @@ }}, pager: { type: 1, - nextLink: '//div[@class="pagenavi"]//a[@title="下一页"][@href]', + nextLink: 'css;.pagenavi a[title="下一页"]', pageElement: 'css;#postlist > div.entry', insertPosition: ['css;#postlist > .pagenavi-button', 1], replaceE: 'css;.pagenavi-button, .pagenavi', @@ -2926,7 +2926,7 @@ }}, pager: { type: 1, - nextLink: '//a[@class="page-numbers"][@title="下一页"][@href]', + nextLink: 'css;a.page-numbers[title="下一页"]', pageElement: 'css;#post > div[id^="post-"]', insertPosition: ['css;#post > #pagenavi', 1], replaceE: 'css;#post > #pagenavi', @@ -2937,7 +2937,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[@class="page-numbers"][@title="下一页"][@href]', + nextLink: 'css;a.page-numbers[title="下一页"]', pageElement: 'css;#content > div[class^="entry_box"]', insertPosition: ['css;#content > #pagenavi', 1], replaceE: 'css;#content > #pagenavi', @@ -2976,7 +2976,7 @@ host: 'www.yxssp.com', pager: { type: 1, - nextLink: '//div[@class="page-nav td-pb-padding-side"]/a[last()][@href]', + nextLink: '//div[contains(@class, "page-nav")]/a[last()]', pageElement: 'css;.td-modules-container.td-module-number4 > div', insertPosition: ['css;.td-modules-container.td-module-number4', 3], replaceE: 'css;.page-nav.td-pb-padding-side', @@ -3022,7 +3022,7 @@ host: 'www.sordum.org', pager: { type: 1, - nextLink: '//a[@class="next page-numbers"][@href]', + nextLink: 'css;a.next.page-numbers', pageElement: 'css;.article > article', insertPosition: ['css;nav.navigation.posts-navigation', 1], replaceE: 'css;nav.navigation.posts-navigation', @@ -3076,7 +3076,7 @@ host: 'www.windowslatest.com', pager: { type: 1, - nextLink: '//div[contains(@class, "page-nav")]/a/i[@class="td-icon-menu-right"]/parent::a', + nextLink: '//div[contains(@class, "page-nav")]/a[last()]', pageElement: 'css;.td-ss-main-content > div:not(.td-block-title-wrap):not(.page-nav)', insertPosition: ['css;.page-nav', 1], replaceE: 'css;.page-nav', @@ -3151,7 +3151,7 @@ }}, pager: { type: 1, - nextLink: '//div[@class="paginate-container"]//a[@href][contains(text(), "Next")]', + nextLink: '//div[@class="paginate-container"]//a[contains(text(), "Next")]', pageElement: 'css;#js-pjax-container .position-relative div[class^="col-lg-"] > div:not(.position-relative):not(.paginate-container)', insertPosition: ['css;.paginate-container', 1], replaceE: 'css;.paginate-container', @@ -3459,10 +3459,10 @@ functionStart: function() {if (location.pathname === '/search.php') {curSite = DBSite.libgen;}}, pager: { type: 1, - nextLink: '//font/a[@href][contains(text(), "►")]', + nextLink: '//font/a[contains(text(), "►")]', pageElement: 'css;table[rules="rows"] > tbody > tr:nth-of-type(n+2), .paginator+script:not([src])', insertPosition: ['css;table[rules="rows"] > tbody', 3], - replaceE: '//td[./font/a[@href][contains(text(), "►")]]', + replaceE: '//td[./font/a[contains(text(), "►")]]', scriptType: 2, history: true, scrollDelta: 2000 @@ -3482,7 +3482,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[./span[@class="gs_ico gs_ico_nav_next"]]', + nextLink: '//a[./span[contains(@class, "next")]]', pageElement: 'css;#gs_res_ccl_mid > *', insertPosition: ['css;#gs_res_ccl_mid', 3], replaceE: 'id("gs_n")', @@ -3514,7 +3514,7 @@ }}, pager: { type: 1, - nextLink: 'id("page")/a[./i[@class="c-icon-pager-next"]][@href]', + nextLink: 'id("page")/a[./i[@class="c-icon-pager-next"]]', pageElement: 'css;#bdxs_result_lists > div.result', insertPosition: ['css;#bdxs_result_lists', 3], replaceE: 'css;#page', @@ -3607,33 +3607,33 @@ }}, pager: { type: 1, - nextLink: '//a[@class="next_page"][@href]', + nextLink: 'css;a.next_page', pageElement: 'css;ol#browse-script-list > li', insertPosition: ['css;ol#browse-script-list', 3], replaceE: 'css;.pagination', - scrollDelta: 1000 + scrollDelta: 1300 } }, // 脚本 greasyfork_feedback: { SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[@class="next_page"][@href]', + nextLink: 'css;a.next_page', pageElement: 'css;.script-discussion-list > div', insertPosition: ['css;.script-discussion-list', 3], replaceE: 'css;.pagination', - scrollDelta: 1500 + scrollDelta: 1800 } }, // 脚本 - 反馈页 greasyfork_discussions: { SiteTypeID: 0, pager: { type: 1, - nextLink: '//a[@class="next_page"][@href]', + nextLink: 'css;a.next_page', pageElement: 'css;.discussion-list > div', insertPosition: ['css;.discussion-list', 3], replaceE: 'css;.pagination', - scrollDelta: 1000 + scrollDelta: 1300 } }, // 脚本 - 讨论页 smzdm: { @@ -3664,7 +3664,7 @@ }}, pager: { type: 1, - nextLink: '//div[@class="fy"]/a[contains(text(), "下一页")][@href]', + nextLink: '//div[@class="fy"]/a[contains(text(), "下一页")]', pageElement: 'css;.xxlb > .sk', insertPosition: ['css;.xxlb', 3], replaceE: 'css;.fy', @@ -3675,7 +3675,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//div[@class="fy"]/a[contains(text(), "下一页")][@href]', + nextLink: '//div[@class="fy"]/a[contains(text(), "下一页")]', pageElement: 'css;.m1_z > .lbk', insertPosition: ['css;.page', 1], replaceE: 'css;.fy', @@ -3686,7 +3686,7 @@ SiteTypeID: 0, pager: { type: 1, - nextLink: '//div[@class="fy"]/a[contains(text(), "下一页")][@href]', + nextLink: '//div[@class="fy"]/a[contains(text(), "下一页")]', pageElement: 'css;.m1_z > .m2_lb', insertPosition: ['css;.page', 1], replaceE: 'css;.fy', @@ -3760,7 +3760,7 @@ insStyle: '.progressive--not-loaded {filter: none !important;}', pager: { type: 1, - nextLink: '//div[@class="page"]/a[@href][contains(text(), "下一页")]', + nextLink: '//div[@class="page"]/a[contains(text(), "下一页")]', pageElement: 'css;body > .container > div.item', insertPosition: ['css;body > .container', 3], replaceE: 'css;.page', @@ -3807,7 +3807,7 @@ }}, pager: { type: 1, - nextLink: '//div[@class="pagesYY"]//a[@href][contains(text(), "下一页")]', + nextLink: '//div[@class="pagesYY"]//a[contains(text(), "下一页")]', pageElement: 'css;#listdiv > ul > li', insertPosition: ['css;#listdiv > ul', 3], replaceE: 'css;.pagesYY', @@ -3817,24 +3817,24 @@ before: src_functionBefore, parameter: [0, 'img[data-original]', 'data-original'] } - }, // 宅男女神 + }, // 宅男女神 - 分类页 fnvshen_g: { SiteTypeID: 0, insStyle: '.yalayi_box {display: none !important; margin: -4px 0 !important;}', pager: { type: 1, - nextLink: 'id("pages")/a[@href][contains(text(), "下一页")]', + nextLink: 'id("pages")/a[contains(text(), "下一页")]', pageElement: 'css;#hgallery > img', insertPosition: ['css;#hgallery', 3], replaceE: 'css;#pages', scrollDelta: 1000 } - }, // 宅男女神 - 图片内 + }, // 宅男女神 - 图片页 fnvshen_article_list: { SiteTypeID: 0, pager: { type: 1, - nextLink: '//div[@class="pagesYY"]//a[@href][contains(text(), "下一页")]', + nextLink: '//div[@class="pagesYY"]//a[contains(text(), "下一页")]', pageElement: 'css;li.other_girlli', insertPosition: ['//ul[./li[@class="other_girlli"]]', 3], replaceE: 'css;.pagesYY', @@ -3872,7 +3872,7 @@ mimeType: 'text/html; charset=gb2312', scrollDelta: 2000 } - }, // 秀人网 + }, // 秀人网 - 图片页 xiurenji_list: { SiteTypeID: 0, pager: { @@ -3897,6 +3897,70 @@ scrollDelta: 1000 } }, // 秀人网 - 搜索页 + tujigu: { + SiteTypeID: 0, + host: 'www.tujigu.net', + functionStart: function() { + if (location.pathname.indexOf('/a/') > -1) { + curSite = DBSite.tujigu_a; + } else if (location.pathname != '/' && location.pathname.indexOf('/search/') === -1) { + curSite = DBSite.tujigu; + }}, + pager: { + type: 1, + nextLink: 'id("pages")/a[contains(text(), "下一页")]', + pageElement: 'css;.hezi > ul > li', + insertPosition: ['//div[@class="hezi"][last()]/ul', 3], + replaceE: 'css;#pages', + scrollDelta: 1000 + } + }, // 图集谷 - 分类页 + tujigu_a: { + SiteTypeID: 0, + pager: { + type: 1, + nextLink: 'id("pages")/a[contains(text(), "下一页")]', + pageElement: 'css;.content > img', + insertPosition: ['css;.content', 3], + replaceE: 'css;#pages', + scrollDelta: 2000 + }, + function: { + before: src_functionBefore, + parameter: [0, 'img[original]', 'original'] + } + }, // 图集谷 - 图片页 + mm131: { + SiteTypeID: 0, + host: 'www.mm131.net', + functionStart: function() { + if (location.pathname.indexOf('.html') > -1) { + curSite = DBSite.mm131_a; + } else { + curSite = DBSite.mm131; + }}, + pager: { + type: 1, + nextLink: '//dd[@class="page"]/a[contains(text(), "下一页")]', + pageElement: 'css;dl.list-left > dd:not([class="page"])', + insertPosition: ['css;.page', 1], + replaceE: 'css;.page', + mimeType: 'text/html; charset=gb2312', + scrollDelta: 1000 + } + }, // MM131 - 分类页 + mm131_a: { + SiteTypeID: 0, + pager: { + type: 1, + nextLink: '//div[@class="content-page"]/a[contains(text(), "下一页")]', + pageElement: 'css;.content-pic img', + insertPosition: ['css;.content-pic', 3], + replaceE: 'css;.content-page', + mimeType: 'text/html; charset=gb2312', + scrollDelta: 2000 + } + }, // MM131 - 图片页 zhutix: { SiteTypeID: 0, host: 'zhutix.com', @@ -4417,7 +4481,7 @@ // [射手网] 获取下一页地址 function assrt_functionNext() { - let nextXPAHT = '//a[@id="pl-nav"][@href][contains(text(), ">")]' + let nextXPAHT = '//a[@id="pl-nav"][contains(text(), ">")]' let url = getElementByXpath(nextXPAHT); if (url) { url = /(?<=\()\d+(?=,)/.exec(url.href)[0] From 1e5bea41b2b9f7a213cfbb5eea01e8264d41dc8b Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 12 Oct 2021 15:31:55 +0800 Subject: [PATCH 0032/1773] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[COCOMANGA=20?= =?UTF-8?q?=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 | 101 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 96 insertions(+), 5 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 64e98f575..212dc92be 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.9.0 +// @version 2.9.1 // @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 *://*/* @@ -459,8 +459,8 @@ functionStart: function() {if (location.pathname === '/f') { baidu_tieba_1(); // 右侧悬浮发帖按钮点击事件(解决自动翻页导致无法发帖的问题) curSite = DBSite.baidu_tieba; - //} else if (location.pathname.indexOf('/p/') > -1) { - //curSite = DBSite.baidu_tieba_post; + /*} else if (location.pathname.indexOf('/p/') > -1) { + curSite = DBSite.baidu_tieba_post;*/ } else if (location.pathname === '/f/search/res') { curSite = DBSite.baidu_tieba_search; }}, @@ -472,7 +472,7 @@ insertPosition: ['css;#thread_list', 3], insertElement: baidu_tieba_insertElement, replaceE: 'css;#frs_list_pager', - intervals: 3000, + intervals: 2000, scrollDelta: 2000 }, function: { @@ -481,13 +481,18 @@ }, // 百度贴吧 - 帖子列表 baidu_tieba_post: { SiteTypeID: 0, + 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 元素 pager: { type: 1, nextLink: '//li[contains(@class,"pb_list_pager")]/a[contains(text(),"下一页")]', pageElement: 'css;#j_p_postlist > div', insertPosition: ['css;#j_p_postlist', 3], replaceE: 'css;li.pb_list_pager', - scrollDelta: 1000 + scrollDelta: 1500 + }, + function: { + before: src_functionBefore, + parameter: [0, 'img[data-tb-lazyload]', 'data-tb-lazyload'] } }, // 百度贴吧 - 帖子内 baidu_tieba_search: { @@ -2683,6 +2688,30 @@ scrollDelta: 800 } }, // Mangabz 漫画 - 分类/搜索页 + cocomanga: { + SiteTypeID: 0, + host: 'www.cocomanga.com', + functionStart: function() {if (location.pathname.indexOf('.html') > -1) { + if (!(getCookie('mh_readmode') === '' || getCookie('mh_readmode') === '3')) { + document.cookie='mh_readmode=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/'; // 强制开启自带的无缝翻页功能 + location.reload(); // 刷新网页 + } + setTimeout(cocomanga_init, 500); + curSite = DBSite.cocomanga; + } else if (/\/\d+\/$/.test(location.pathname)) { + setTimeout(function(){if (document.querySelector('a.website-display-all')) document.querySelector('a.website-display-all').click();}, 300) + }}, + insStyle: '.mh_readend, .mh_footpager, .mh_readmode {display: none !important;} .mh_comicpic img {cursor: unset !important;}', + pager: { + type: 4, + nextLink: cocomanga_functionNext, + insertPosition: ['css;#mangalist', 3], + insertElement: cocomanga_insertElement, + replaceE: 'css;.mh_readtitle, .mh_headpager > a.mh_prevbook, .mh_readend, head > title', + intervals: 1000, + scrollDelta: 2500 + } + }, // COCOMANGA 漫画 _423down: { SiteTypeID: 0, host: 'www.423down.com', @@ -5010,6 +5039,68 @@ } + // [COCOMANGA 漫画] 初始化(调整本话图片) + function cocomanga_init() { + let last = document.querySelector('.mh_comicpic:last-of-type'); + if (last && last.getAttribute('p')) { + document.querySelector(curSite.pager.insertPosition[0].replace('css;', '')).innerHTML = ''; // 删除旧图片元素 + cocomanga_img(parseInt(last.getAttribute('p'))) // 插入新图片元素 + } + } + // [COCOMANGA 漫画] 生成图片元素并插入网页 + function cocomanga_img(totalImageCount) { + if (totalImageCount < 1) return + let _img = ''; + for (let i=1; i<=totalImageCount; i++) { + _img += `
`; + } + document.querySelector(curSite.pager.insertPosition[0].replace('css;', '')).insertAdjacentHTML(addTo(curSite.pager.insertPosition[1]), _img); // 将 img 标签插入到网页中 + } + // [COCOMANGA 漫画] 获取下一页地址 + function cocomanga_functionNext() { + var url = ''; + url = getElementByXpath('//a[contains(@class, "read_page_link") and contains(string(), "下一章")][not(contains(@href, "javascript"))]') + if (url === curSite.pageUrl) return + curSite.pageUrl = url + getPageElems(curSite.pageUrl); // 访问下一话 URL 获取 + } + // [COCOMANGA 漫画] 插入数据 + function cocomanga_insertElement(pageElems, type) { + if (pageElems) { + // 插入