From a5586e19b69d5a55c6f3d887d0823e6ab7c405c4 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sun, 28 Nov 2021 00:15:33 +0800
Subject: [PATCH 0001/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E6=BC=AB?=
=?UTF-8?q?=E7=94=BB=E7=9A=AE]=20=E6=94=AF=E6=8C=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 29 +++++++++++++++++++++++++++--
1 file changed, 27 insertions(+), 2 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index ae35b3f79..2c63ac45a 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 3.7.9
+// @version 3.8.0
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -2793,7 +2793,7 @@ function: {
curSite = DBSite.manhuatai;
} else if (indexOF('/fenlei_') || indexOF('/top_')) {
curSite = DBSite.manhuatai_list;
- } else if (indexOF('/search')) {
+ } else if (indexOF('/search')) {
curSite = DBSite.manhuatai_search;
}},
history: true,
@@ -2826,6 +2826,31 @@ function: {
scrollD: 1500
}
}, // 漫画台 - 搜索页
+ manhuapi: {
+ host: 'www.manhuapi.com',
+ functionS: function() {if (indexOF('/chapter/')) {
+ curSite = DBSite.manhuapi;
+ } else if (!indexOF(/\/manhua\/\d+\.html/)) {
+ curSite = DBSite.manhuapi_list;
+ }},
+ history: true,
+ pager: {
+ type: 1,
+ nextL: '//div[@class="page"]/a[text()="下一页" or text()="下一章"]',
+ pageE: 'css;.mh_list img[src]',
+ replaceE: 'css;.page',
+ scrollD: 2000
+ }
+ }, // 漫画皮
+ manhuapi_list: {
+ pager: {
+ type: 1,
+ nextL: '//div[@class="pages"]/a[text()="下一页"]',
+ pageE: 'css;.cy_list_mh > ul',
+ replaceE: 'css;.pages',
+ scrollD: 1500
+ }
+ }, // 漫画皮 - 分类页
manhuagui: {
host: 'www.mhgui.com',
functionS: function() {if (indexOF(/\/comic\/\d+\/\d+\.html/)) {
From 82f4b8730c31f329a49c64307d6a9ee291496b4b Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sun, 28 Nov 2021 09:51:25 +0800
Subject: [PATCH 0002/1615] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20[=E5=93=94?=
=?UTF-8?q?=E5=93=A9=E8=BD=BB=E5=B0=8F=E8=AF=B4=20-=20=E6=89=8B=E6=9C=BA?=
=?UTF-8?q?=E7=89=88]=20=E8=A7=84=E5=88=99;=20=E4=BC=98=E5=8C=96=20?=
=?UTF-8?q?=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 59 ++++++++++++++++++++++++++++--------------------
1 file changed, 34 insertions(+), 25 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 2c63ac45a..e9a33988e 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 3.8.0
+// @version 3.8.1
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -121,6 +121,7 @@ pager: {
4 = 插入该元素本身的后面
5 = 插入 pageE 列表最后一个元素的后面(该 insertP 可以直接省略)
6 = 插入该元素末尾(针对小说网站等文本类的)
+ // 小技巧:当 pageE 为 'ul > li',且 insertP 为 ['ul', 3] 时,这种情况下是可以省略掉 insertP 的,即改用 5
replaceE: 要替换为下一页内容的元素(比如页码)
scrollD: 翻页动作触发点([滚动条] 与 [网页底部] 之间的距离),数值越大,越早开始翻页,一般是访问网页速度越慢,该值就需要越大
@@ -365,7 +366,7 @@ function: {
nextL: '//a[contains(text(), "下一章") or contains(text(), "下一页")]',
pageE: 'css;#content',
insertP: ['css;#content', 6],
- replaceE: '//*[./a[contains(text(), "下一章") or contains(text(), "下一页")]] | //title',
+ replaceE: '//*[./a[contains(text(), "下一章") or contains(text(), "下一页")]]',
scrollD: 1500
}
}, // 笔趣阁 模板的小说网站
@@ -650,7 +651,6 @@ function: {
type: 1,
nextL: 'css;a.next',
pageE: 'css;.s_post_list > div',
- insertP: ['css;.s_post_list', 3],
replaceE: 'css;.pager',
scriptT: 1,
scrollD: 1000
@@ -2686,7 +2686,7 @@ function: {
nextL: function() {if (getCSS('a.rd-aside__item.j-rd-next')) return location.origin + getCSS('a.rd-aside__item.j-rd-next').getAttribute('_href')},
pageE: 'css;.rd-article-wr > div',
insertP: ['css;.rd-article-wr', 3],
- replaceE: 'css;a.last-crumb, .rd-aside, title',
+ replaceE: 'css;a.last-crumb, .rd-aside',
interval: 2000,
scrollD: 2000
},
@@ -2753,12 +2753,13 @@ function: {
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;}', // 隐藏不需要的元素,调整图片
+ history: true,
pager: {
type: 4,
nextL: manhuacat_nextL,
insertP: ['css;.img-content', 3],
insertE: manhuacat_insertE,
- replaceE: 'css;.comic-detail > .breadcrumb-bar, .comic-detail >h2.h4, title, .vg-r-data, body > script:not([src])',
+ replaceE: 'css;.comic-detail > .breadcrumb-bar, .comic-detail >h2.h4, .vg-r-data, body > script:not([src])',
interval: 2000,
scrollD: 3000
}
@@ -2802,7 +2803,7 @@ function: {
nextL: '//div[contains(@class, "page")]//a[@href][contains(text(), "下一页") or contains(text(), "下一章")]',
pageE: 'css;#htmlContent p.img > img',
insertP: ['css;#htmlContent p.img', 3],
- replaceE: 'css;.page, .title, title',
+ replaceE: 'css;.page, .title',
scrollD: 2000
}
}, // 漫画台
@@ -2940,12 +2941,13 @@ function: {
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;}', // 隐藏中间的页数信息
+ history: true,
pager: {
type: 4,
nextL: 'css;span.next > a',
insertP: ['css;.comic_wraCon', 3],
insertE: dmzj_insertE,
- replaceE: 'css;.wrap_last_mid, .wrap_last_head, title',
+ replaceE: 'css;.wrap_last_mid, .wrap_last_head',
interval: 2000,
scrollD: 3000
}
@@ -2983,12 +2985,13 @@ function: {
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;}', // 隐藏中间的页数信息
+ history: true,
pager: {
type: 4,
nextL: 'css;#next_chapter',
insertP: ['css;#center_box', 3],
insertE: dmzj_manhua_insertE,
- replaceE: 'css;.display_graybg, title',
+ replaceE: 'css;.display_graybg',
interval: 2000,
scrollD: 3000
}
@@ -3044,12 +3047,13 @@ function: {
curSite = DBSite.mhxqiu_list;
}},
insStyle: '.imgFloat_1, .imgFloat_2, .main_control, span.comic-ft {display: none !important;} html, body, #mainView {height: auto !important;} body.view .main ul.comic-contain li{margin:0 auto !important;} .comic-contain .loaded{box-shadow: none !important;}',
+ history: true,
pager: {
type: 4,
nextL: 'css;#mainControlNext',
insertP: ['css;#comicContain', 3],
insertE: mhxqiu_insertE,
- replaceE: 'css;.main_control, h1.chaptername_title, span.title-comicHeading, title',
+ replaceE: 'css;.main_control, h1.chaptername_title, span.title-comicHeading',
interval: 4000,
scrollD: 3000
}
@@ -3068,12 +3072,13 @@ function: {
host: 'manhua.fffdm.com',
functionS: function() {if (location.pathname.split('/').length === 4) {curSite = DBSite.fffdm;}},
insStyle: '#footer, #header {display: none !important;} #mhimg0 img {display: block !important;margin: 0 auto !important;}',
+ history: true,
pager: {
type: 4,
nextL: '//a[contains(text(), "下一页") or contains(text(), "下一頁") or contains(text(), "下一话") or contains(text(), "下一話")]',
insertP: ['css;#mhimg0', 3],
insertE: fffdm_insertE,
- replaceE: 'css;.navigation, #weizhi, h1, title',
+ replaceE: 'css;.navigation, #weizhi, h1',
scrollD: 2000
}
}, // 风之动漫
@@ -3092,7 +3097,7 @@ function: {
nextL: 'css;.next_chapter > a',
pageE: 'css;.comic-contain > amp-img',
insertP: ['css;.comic-contain', 3],
- replaceE: 'css;.next_chapter, .bottom-bar, .header .title, title',
+ replaceE: 'css;.next_chapter, .bottom-bar, .header .title',
scrollD: 2000
}
}, // 包子漫画
@@ -3107,12 +3112,13 @@ function: {
curSite = DBSite.leyuman_list;
}},
insStyle: '.mh_select, .mh_comicpic > p, mh_headpager {display: none !important;} .mh_comicpic > img{width: 100% !important; height: auto !important;}',
+ history: true,
pager: {
type: 4,
nextL: 'css;#xurl',
insertP: ['css;.mh_comicpic', 3],
insertE: leyuman_insertE,
- replaceE: 'css;.mh_headpager, .mh_readtitle, title',
+ replaceE: 'css;.mh_headpager, .mh_readtitle',
interval: 3000,
scrollD: 3000
}
@@ -3248,14 +3254,15 @@ function: {
} else if (indexOF('/manga-list') || lp == '/search') {
curSite = DBSite.mangabz_list;
}},
- hiddenPN: true,
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;}',
+ hiddenPN: true,
+ history: true,
pager: {
type: 4,
nextL: mangabz_nextL,
insertP: ['css;#cp_img', 3],
insertE: mangabz_insertE,
- replaceE: 'css;p.top-title, body > .container > div:not([id]), title',
+ replaceE: 'css;p.top-title, body > .container > div:not([id])',
interval: 500,
scrollD: 2000
}
@@ -3280,14 +3287,15 @@ function: {
} else if (indexOF('/manga-list') || lp == '/search') {
curSite = DBSite.xmanhua_list;
}},
- hiddenPN: true,
insStyle: 'a.reader-bottom-page {display: none !important;} .header, .reader-bottom {opacity: 0.3 !important;} #cp_img > img{display: block !important;margin: 0 auto !important;width: auto !important; height: auto !important;}',
+ hiddenPN: true,
+ history: true,
pager: {
type: 4,
nextL: xmanhua_nextL,
insertP: ['css;#cp_img', 3],
insertE: xmanhua_insertE,
- replaceE: 'css;.reader-title, body > .container > div:not([id]), title',
+ replaceE: 'css;.reader-title, body > .container > div:not([id])',
interval: 500,
scrollD: 2500
}
@@ -3319,12 +3327,13 @@ function: {
curSite = DBSite.cocomanga_search;
}},
insStyle: '.mh_readend, .mh_footpager, .mh_readmode {display: none !important;} .mh_comicpic img {cursor: unset !important;} .mh_comicpic img {min-height: 150px;}',
+ history: true,
pager: {
type: 4,
nextL: '//a[contains(@class, "read_page_link") and contains(string(), "下一章")][not(contains(@href, "javascript"))]',
insertP: ['css;#mangalist', 3],
insertE: cocomanga_insertE,
- replaceE: 'css;.mh_readtitle, .mh_headpager > a.mh_prevbook, .mh_readend, head > title',
+ replaceE: 'css;.mh_readtitle, .mh_headpager > a.mh_prevbook, .mh_readend',
interval: 1000,
scrollD: 2500
}
@@ -3378,7 +3387,7 @@ function: {
nextL: 'css;a[id$="chapterNext"]',
pageE: 'css;.main-text-wrap > div:not(.admire-wrap)',
insertP: ['css;.main-text-wrap', 3],
- replaceE: 'css;.chapter-control, title',
+ replaceE: 'css;.chapter-control',
scrollD: 900
}
}, // 起点小说 - 阅读页
@@ -3422,7 +3431,7 @@ function: {
nextL: '//div[contains(@class, "articlebtn")]/a[contains(text(), "下一页") or contains(text(), "下一章")]',
pageE: 'css;#BookText',
insertP: ['css;#BookText', 6],
- replaceE: 'css;.articlebtn, head > title',
+ replaceE: 'css;.articlebtn',
scrollD: 1000
}
}, // 御书网
@@ -3459,7 +3468,7 @@ function: {
nextL: 'id("footlink")/a[contains(text(), "下一页")]',
pageE: 'css;#contents',
insertP: ['css;#contents', 6],
- replaceE: 'css;#footlink, head > title, #amain dd h1',
+ replaceE: 'css;#footlink, #amain dd h1',
scrollD: 900
}
}, // 无错小说网
@@ -3535,7 +3544,7 @@ function: {
nextL: '//p[@class="mlfy_page"]/a[contains(text(), "下一页") or contains(text(), "下一章")]',
pageE: 'css;#mlfy_main_text > *',
insertP: ['css;#mlfy_main_text', 3],
- replaceE: 'css;p.mlfy_page, head > title',
+ replaceE: 'css;p.mlfy_page',
scrollD: 1000
}
}, // 哔哩轻小说
@@ -3574,13 +3583,13 @@ function: {
} else if (indexOF('/wenku/') || indexOF('/sa/')) {
curSite = DBSite.linovelib_w_wenku;
}},
+ insStyle: 'body {min-height: 1000px;}',
history: true,
pager: {
type: 1,
- nextL: function() {if (ReadParams) {return ReadParams.url_next}; return ''},
+ nextL: function() {if (ReadParams) {return (location.origin + ReadParams.url_next)}; return ''},
pageE: '//body/script[contains(text(), "var ReadParams")] | id("apage")/div',
insertP: ['css;#apage', 3],
- replaceE: 'css;head > title',
scriptT: 2,
scrollD: 1000
}
@@ -4297,7 +4306,7 @@ function: {
},
pageE: 'css;#maincontent > *:not([class*="prenextnav"]):not(#bpn):not(#tpn)',
insertP: ['id("bpn") | //div[contains(@class, "prenextnav")][last()]', 1],
- replaceE: 'css;ul.prenext, #navsecond, title',
+ replaceE: 'css;ul.prenext, #navsecond',
scrollE: 'id("bpn") | //div[contains(@class, "prenextnav")][last()]',
forceHTTPS: true,
scrollD: 600
@@ -4317,7 +4326,7 @@ function: {
},
pageE: 'css;#content > *',
insertP: ['css;#content', 3],
- replaceE: 'css;.previous-next-links, #leftcolumn, head > title',
+ replaceE: 'css;.previous-next-links, #leftcolumn',
forceHTTPS: true,
scrollD: 1000
},
From e796273847def0e84850c929d575af0a13507bdc Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sun, 28 Nov 2021 13:41:10 +0800
Subject: [PATCH 0003/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E7=BB=B4?=
=?UTF-8?q?=E6=99=AE=E7=BD=91]=E3=80=81[=E4=B8=87=E6=96=B9=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE=E7=9F=A5=E8=AF=86=E6=9C=8D=E5=8A=A1=E5=B9=B3=E5=8F=B0?=
=?UTF-8?q?]=20=E6=94=AF=E6=8C=81;=20=E4=BF=AE=E5=A4=8D=20[=E5=A4=A9?=
=?UTF-8?q?=E6=B6=AF=E7=A4=BE=E5=8C=BA=20-=20=E5=B8=96=E5=AD=90=E5=86=85]?=
=?UTF-8?q?=20=E8=A7=84=E5=88=99;=20=E4=BC=98=E5=8C=96=20=E5=A4=A7?=
=?UTF-8?q?=E9=87=8F=E8=A7=84=E5=88=99;=20=E6=9B=B4=E6=96=B0=20[=E7=A7=80?=
=?UTF-8?q?=E4=BA=BA=E7=BE=8E=E5=A5=B3]=20=E5=9F=9F=E5=90=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 404 ++++++++++-------------------------------------
1 file changed, 84 insertions(+), 320 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index e9a33988e..72734ba8e 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 3.8.1
+// @version 3.8.2
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -113,15 +113,17 @@ pager: {
forceTarget: 强制新标签页打开链接
nextL: 下一页链接所在元素
- pageE: 要获取的主体内容
- insertP: 主体内容插入的位置
- 1 = 插入该元素本身的前面
- 2 = 插入该元素当中,第一个子元素前面
- 3 = 插入该元素当中,最后一个子元素后面
- 4 = 插入该元素本身的后面
- 5 = 插入 pageE 列表最后一个元素的后面(该 insertP 可以直接省略)
- 6 = 插入该元素末尾(针对小说网站等文本类的)
- // 小技巧:当 pageE 为 'ul > li',且 insertP 为 ['ul', 3] 时,这种情况下是可以省略掉 insertP 的,即改用 5
+ pageE: 要从下一页获取的元素
+ insertP: 下一页元素插入本页的位置(数组第一个是基准元素,第二个是基准元素的前后具体位置)
+ 1 = 插入基准元素自身的前面
+ 2 = 插入基准元素内,第一个子元素前面
+ 3 = 插入基准元素内,最后一个子元素后面
+ 4 = 插入基准元素自身的后面
+ 5 = 插入 pageE 列表最后一个元素的后面(该 insertP 可以直接省略不写,等同于 ['pageE', 5] )
+ 6 = 插入该元素自身内部末尾(针对小说网站等文本类的)
+ // 小技巧:例如当 pageE: 'css;ul > li' 且 insertP: ['css;ul', 3] 时(即 insertP 基准元素是 pageE 元素的父元素),是可以省略不写 insertP(实际等同于 ['css;ul > li', 5] )
+ 另外当 pageE: 'css;.item' 且 insertP: ['css;.item', 4] 时,也可以省略不写 insertP(实际等同于 ['css;.item', 5] )
+ 注意如果 pageE 中选择了多类元素时不能省略 insertP(如包含 ',' '|' 符号)
replaceE: 要替换为下一页内容的元素(比如页码)
scrollD: 翻页动作触发点([滚动条] 与 [网页底部] 之间的距离),数值越大,越早开始翻页,一般是访问网页速度越慢,该值就需要越大
@@ -155,7 +157,6 @@ function: {
type: 1,
nextL: '//a[contains(@class, "nxt") or contains(@class, "next")][not(contains(@href, "javascript"))]',
pageE: 'css;#threadlist table > tbody[id^="normalthread_"]',
- insertP: ['id("threadlist")//table/tbody[starts-with(@id, "normalthread_")]/parent::table', 3],
replaceE: 'css;.pg, .pages',
scrollD: 1000
}
@@ -165,7 +166,6 @@ function: {
type: 1,
nextL: '//a[contains(@class, "nxt") or contains(@class, "next")][not(contains(@href, "javascript"))]',
pageE: 'css;#waterfall > li',
- insertP: ['css;#waterfall', 3],
replaceE: 'css;.pg, .pages',
scrollD: 1000
}
@@ -176,7 +176,6 @@ function: {
type: 1,
nextL: '//a[contains(@class, "nxt") or contains(@class, "next")][not(contains(@href, "javascript"))]',
pageE: 'css;#postlist > div[id^="post_"]',
- insertP: ['css;#postlist', 3],
replaceE: 'css;.pg, .pages',
scrollD: 1000
},
@@ -190,7 +189,6 @@ function: {
type: 1,
nextL: '//a[contains(@class, "nxt") or contains(@class, "next")][not(contains(@href, "javascript"))]',
pageE: 'css;#threadlist > ul',
- insertP: ['css;#threadlist', 3],
replaceE: 'css;.pg, .pages',
scrollD: 1000
}
@@ -200,7 +198,6 @@ function: {
type: 1,
nextL: '//a[contains(@class, "nxt") or contains(@class, "next")][not(contains(@href, "javascript"))]',
pageE: 'css;tbody > tr:not(.th)',
- insertP: ['css;tbody', 3],
replaceE: 'css;.pg, .pages',
scrollD: 1000
}
@@ -210,7 +207,6 @@ function: {
type: 1,
nextL: '//a[contains(@class, "nxt") or contains(@class, "next")][not(contains(@href, "javascript"))]',
pageE: 'css;#ct .bm_c table > tbody',
- insertP: ['css;#ct .bm_c table', 3],
replaceE: 'css;.pg, .pages',
scrollD: 1000
}
@@ -236,7 +232,6 @@ function: {
type: 1,
nextL: 'css;.pagination li.next a[rel="next"], .topic-actions .pagination strong~a',
pageE: 'css;.forumbg:not(.announcement) ul.topiclist.topics > li',
- insertP: ['css;.forumbg:not(.announcement) ul.topiclist.topics', 3],
replaceE: 'css;.action-bar .pagination, .topic-actions .pagination',
scrollD: 2000
}
@@ -255,7 +250,6 @@ function: {
type: 1,
nextL: 'css;.pagination li.next a[rel="next"], .topic-actions .pagination strong~a',
pageE: 'css;div.search.post',
- insertP: ['//div[contains(@class, "search") and contains(@class, "post")][last()]', 1],
replaceE: 'css;.action-bar .pagination, .pagination',
scrollD: 2000
}
@@ -272,7 +266,6 @@ function: {
type: 1,
nextL: 'css;a.pageNav-jump--next',
pageE: 'css;.structItemContainer-group.js-threadList > div',
- insertP: ['css;.structItemContainer-group.js-threadList', 3],
replaceE: 'css;nav.pageNavWrapper',
scrollD: 2500
}
@@ -282,7 +275,6 @@ function: {
type: 1,
nextL: 'css;a.pageNav-jump--next',
pageE: 'css;.block-body.js-replyNewMessageContainer > article',
- insertP: ['css;.block-body.js-replyNewMessageContainer', 3],
replaceE: 'css;nav.pageNavWrapper',
scrollD: 2500
}
@@ -292,7 +284,6 @@ function: {
type: 1,
nextL: 'css;a.pageNav-jump--next',
pageE: 'css;ol.block-body > li',
- insertP: ['css;ol.block-body', 3],
replaceE: 'css;nav.pageNavWrapper',
scrollD: 2500
}
@@ -308,7 +299,6 @@ function: {
type: 1,
nextL: '//li/a[contains(text(), "▶")]',
pageE: 'css;ul.threadlist > li',
- insertP: ['css;ul.threadlist', 3],
replaceE: 'css;ul.pagination',
scrollD: 1500
}
@@ -318,7 +308,6 @@ function: {
type: 1,
nextL: '//li/a[contains(text(), "▶")]',
pageE: '(//ul[contains(@class, "postlist")][./li[@data-uid]])[last()]/li',
- insertP: ['(//ul[contains(@class, "postlist")][./li[@data-uid]])[last()]', 3],
replaceE: 'css;ul.pagination',
scrollD: 1500
}
@@ -330,7 +319,6 @@ function: {
type: 1,
nextL: 'css;li.next-page > a',
pageE: 'css;.content > article',
- insertP: ['css;.content > .pagination', 1],
replaceE: 'css;.content > .pagination',
scrollD: 1500
},
@@ -353,7 +341,6 @@ function: {
type: 1,
nextL: 'css;a.next',
pageE: 'css;#main > ul > li',
- insertP: ['css;#main > ul', 3],
replaceE: 'css;nav.pagination',
scrollD: 1500
}
@@ -372,22 +359,15 @@ function: {
}, // 笔趣阁 模板的小说网站
baidu: {
host: 'www.baidu.com',
- functionS: function() {locationC = true;
- if (lp == '/s') {
- curSite = DBSite.baidu
- } else if (indexOF('/s')) {
- location.host = 'm.baidu.com'
- }
- },
+ functionS: function() {locationC = true; if (lp == '/s') {curSite = DBSite.baidu;} else if (indexOF('/s')) {location.host = 'm.baidu.com';}},
insStyle: '.new-pmd .c-img-border {position: initial !important;} .op-bk-polysemy-video__wrap.c-gap-bottom {display: none !important;}',
history: true,
pager: {
type: 1,
nextL: 'id("page")//a[contains(text(),"下一页")]',
pageE: 'css;#content_left > *',
- insertP: ['css;#content_left', 3],
replaceE: 'css;#page',
- scrollD: 1500
+ scrollD: 2000
}
}, // 百度 搜索
baidu_m: {
@@ -399,7 +379,6 @@ function: {
type: 1,
nextL: 'css;a[class^="new-nextpage"]',
pageE: 'css;#results > *',
- insertP: ['css;#results', 3],
replaceE: 'css;#page-controller',
scrollD: 2000
}
@@ -437,10 +416,12 @@ function: {
pager: {
type: 1,
nextL: '//a[contains(@class,"sb_pagN")]',
- pageE: 'css;#b_results > li:not(.b_msg):not(.b_pag):not(#mfa_root)',
- insertP: ['css;#b_results > .b_pag', 1],
+ pageE: 'css;#b_results > li:not(.b_msg):not([class="b_ans"]):not(.b_pag):not(#mfa_root)',
replaceE: 'css;#b_results > .b_pag',
scrollD: 1500
+ },
+ function: {
+ bF: bing_bF
}
}, // 必应 搜索
sogou: {
@@ -451,7 +432,6 @@ function: {
type: 1,
nextL: 'css;#sogou_next',
pageE: 'css;.results > *',
- insertP: ['css;.results', 3],
replaceE: 'css;#pagebar_container',
scriptT: 3,
scrollD: 1200
@@ -477,20 +457,18 @@ function: {
type: 1,
nextL: 'css;#sogou_next',
pageE: 'css;ul[class*="news-list"] > li',
- insertP: ['css;ul[class*="news-list"]', 3],
replaceE: 'css;#pagebar_container',
scrollD: 1000
}
}, // 搜狗微信 - 搜索
toutiao: {
host: ['www.toutiao.com', 'so.toutiao.com'],
- functionS: function() {if (location.hostname != 'www.toutiao.com') {if (lp == '/search') {curSite = DBSite.toutiao;}}},
+ functionS: function() {if (location.hostname != 'www.toutiao.com' && lp == '/search') curSite = DBSite.toutiao;},
history: true,
pager: {
type: 1,
nextL: '//div[contains(@class, "-pagination")]/a[contains(string(), "下一页")]',
pageE: 'css;div[class*="-result-list"] > .result-content[data-i]',
- insertP: ['css;div[class*="-result-list"] > .result-content:not([data-i]):last-child', 1],
replaceE: 'css;div[class*="-pagination"]',
scrollD: 1200
},
@@ -532,9 +510,8 @@ function: {
type: 1,
nextL: startpage_nextL,
pageE: 'css;section.w-gl--desktop > div',
- insertP: ['css;section.w-gl--desktop', 3],
replaceE: 'css;.pagination',
- scrollD: 1500
+ scrollD: 2000
}
}, // Startpage 搜索
yandex: {
@@ -558,7 +535,6 @@ function: {
type: 1,
nextL: 'css;.pagination a.next',
pageE: 'css;#web ol > li',
- insertP: ['css;#web ol', 3],
replaceE: 'css;.pagination',
scrollD: 1500
}
@@ -571,7 +547,6 @@ function: {
type: 1,
nextL: 'css;.Pagenation__next > a',
pageE: 'css;.Contents__innerGroupBody > div',
- insertP: ['css;.Contents__innerGroupBody', 3],
replaceE: 'css;.Pagenation',
scrollD: 1500
}
@@ -594,7 +569,6 @@ function: {
type: 1,
nextL: 'css;nav.pagination a[aria-label="Next page"]',
pageE: 'css;section.mainline > div:not(.related-queries)',
- insertP: ['css;nav.pagination', 1],
replaceE: 'css;nav.pagination',
scrollD: 1500
}
@@ -671,7 +645,6 @@ function: {
type: 1,
nextL: 'css;a.next',
pageE: 'css;#comments > .comment-item',
- insertP: ['css;#paginator', 1],
replaceE: 'css;#paginator',
scrollD: 1000
}
@@ -681,7 +654,6 @@ function: {
type: 1,
nextL: 'css;link[rel="next"]',
pageE: 'css;.review-list > div',
- insertP: ['css;.review-list', 3],
replaceE: 'css;.paginator',
scrollD: 1000
}
@@ -691,7 +663,6 @@ function: {
type: 1,
nextL: 'css;link[rel="next"]',
pageE: 'css;#comments > div',
- insertP: ['css;#comments', 3],
replaceE: 'css;.paginator',
scrollD: 1000
}
@@ -701,7 +672,6 @@ function: {
type: 1,
nextL: 'css;link[rel="next"]',
pageE: 'css;.grid-view > div',
- insertP: ['css;.grid-view', 3],
replaceE: 'css;.paginator',
scrollD: 1000
}
@@ -719,7 +689,6 @@ function: {
type: 1,
nextL: 'css;span.next > a',
pageE: 'css;table.olt > tbody > tr:not(.th)',
- insertP: ['css;table.olt > tbody', 3],
replaceE: 'css;.paginator',
scrollD: 1000
}
@@ -729,7 +698,6 @@ function: {
type: 1,
nextL: 'css;span.next > a',
pageE: 'css;#content .article > div > .channel-item',
- insertP: ['css;#content .article > div', 3],
replaceE: 'css;.paginator',
scrollD: 1000
}
@@ -739,7 +707,6 @@ function: {
type: 1,
nextL: 'css;span.next > a',
pageE: 'css;#comments > li',
- insertP: ['css;#comments', 3],
replaceE: 'css;.paginator',
scrollD: 1000
}
@@ -779,7 +746,6 @@ function: {
type: 1,
nextL: '//div[contains(@class, "pages")]/div[@class="links"]/a[contains(text(), "下一页")]',
pageE: 'css;.tab-bbs-list > tbody:not(:first-of-type)',
- insertP: ['css;table.tab-bbs-list', 3],
replaceE: '//div[contains(@class, "pages")]',
scrollD: 1500
}
@@ -787,11 +753,10 @@ function: {
tianya_post: {
pager: {
type: 1,
- nextL: 'a.js-keyboard-next',
+ nextL: 'css;a.js-keyboard-next',
pageE: 'css;.atl-main > div[class="atl-item"]',
- insertP: ['css;.atl-main', 3],
replaceE: 'css;.atl-pages > form',
- scrollD: 1500
+ scrollD: 2000
}
}, // 天涯社区 - 帖子内
nga_thread: {
@@ -850,7 +815,7 @@ function: {
type: 1,
nextL: '//a[@class="page_current"]/following-sibling::a[1]',
pageE: 'css;.cell.item',
- insertP: ['//div[@id="Main"]//div[@class="box"]//div[@class="cell"][last()]', 1],
+ //insertP: ['//div[@id="Main"]//div[@class="box"]//div[@class="cell"][last()]', 1],
replaceE: 'css;#Main > .box > .cell[style]:not(.item) > table',
scrollD: 1500
},
@@ -864,7 +829,6 @@ function: {
type: 1,
nextL: '//a[@class="page_current"]/following-sibling::a[1]',
pageE: 'css;#notifications > div',
- insertP: ['css;#notifications', 3],
replaceE: 'css;#Main > .box > .cell[style] > table',
scrollD: 1500
},
@@ -892,7 +856,6 @@ function: {
type: 1,
nextL: '//a[@class="page_current"]/following-sibling::a[1]',
pageE: 'css;#TopicsNode > div',
- insertP: ['css;#TopicsNode', 3],
replaceE: 'css;#Main > .box > .cell[style] > table',
scrollD: 1500
},
@@ -906,7 +869,6 @@ function: {
type: 1,
nextL: '//a[@class="page_current"]/following-sibling::a[1]',
pageE: 'css;#Main .box > div:not(.cell) > table > tbody > tr:not(:first-child)',
- insertP: ['css;#Main .box > div:not(.cell) > table > tbody', 3],
replaceE: 'css;#Main > .box > .cell[style] > table',
scrollD: 1000
}
@@ -925,7 +887,6 @@ function: {
type: 1,
nextL: '//div[@class="wp-pagenavi"]/a[contains(text(), "下一页") or contains(text(), "更多文章")]',
pageE: 'css;#content > .list-post',
- insertP: ['css;.wp-pagenavi', 1],
replaceE: 'css;.wp-pagenavi',
scrollD: 1500
},
@@ -966,7 +927,6 @@ function: {
type: 1,
nextL: '//ul[@class="pagination"]//a[./span[@class="next"]]',
pageE: 'css;.recommend-article > ul > li',
- insertP: ['css;.recommend-article > ul', 3],
replaceE: 'css;ul.pagination',
scrollD: 1500
}
@@ -976,7 +936,6 @@ function: {
type: 1,
nextL: '//ul[@class="pagination"]//a[./span[@class="next"]]',
pageE: 'css;[id^="qiushi_tag_"]',
- insertP: ['css;ul.pagination', 1],
replaceE: 'css;ul.pagination',
scrollD: 1500
}
@@ -1020,7 +979,6 @@ function: {
type: 1,
nextL: '//ul[contains(@class, "pagination")]//a[contains(text(), "▶")]',
pageE: 'css;table.threadlist > tbody > tr',
- insertP: ['css;table.threadlist > tbody', 3],
replaceE: 'css;ul.pagination',
scrollD: 1500
}
@@ -1030,7 +988,6 @@ function: {
type: 1,
nextL: '//ul[contains(@class, "pagination")]//a[contains(text(), "▶")]',
pageE: 'css;table.postlist > tbody > tr[data-pid]',
- insertP: ['css;table.postlist > tbody > tr:not([data-pid])', 1],
replaceE: 'css;ul.pagination',
scrollD: 1500
}
@@ -1047,7 +1004,6 @@ function: {
type: 1,
nextL: '//div[@class="page_inner"]/a[contains(text(), "››")]',
pageE: 'css;ul#browserItemList > li',
- insertP: ['css;ul#browserItemList', 3],
replaceE: 'css;.page_inner',
scrollD: 1500
}
@@ -1057,7 +1013,6 @@ function: {
type: 1,
nextL: '//div[@class="page_inner"]/a[contains(text(), "››")]',
pageE: 'css;.topic_list > tbody:last-of-type > tr.topic',
- insertP: ['css;.topic_list > tbody:last-of-type', 3],
replaceE: 'css;.page_inner',
scrollD: 1500
}
@@ -1100,7 +1055,6 @@ function: {
type: 1,
nextL: '//div[@class="fr i3_r"]/a[contains(text(), "后一页")]',
pageE: 'css;ul.main_List > li.i2:not(.h_bg)',
- insertP: ['css;ul.main_List > li.i3', 1],
replaceE: 'css;ul.main_List > li.i3',
scrollD: 1000
}
@@ -1135,7 +1089,6 @@ function: {
type: 1,
nextL: '//div[@class="ui-crumbs-more"]/a[@class="fn-link"][1]',
pageE: 'css;ul.ui-list > li:not(.ui-list-item-head):not(.ui-list-merchant-ad)',
- insertP: ['css;ul.ui-list', 3],
replaceE: 'css;div.ui-crumbs-more',
scrollD: 1200
}
@@ -1146,7 +1099,6 @@ function: {
type: 1,
nextL: 'css;a.ui-paging-next',
pageE: 'css;ul.ui-list > li:not(.ui-list-item-head):not(.ui-list-merchant-ad)',
- insertP: ['css;ul.ui-list', 3],
replaceE: 'css;div.ui-paging',
scrollD: 1200
}
@@ -1168,7 +1120,6 @@ function: {
type: 1,
nextL: 'css;a.ui-paging-next',
pageE: 'css;ul.ui-list > li',
- insertP: ['css;ul.ui-list', 3],
replaceE: 'css;div.ui-paging',
scrollD: 2000
}
@@ -1179,7 +1130,6 @@ function: {
type: 1,
nextL: '//div[@class="ui-page"]/a[contains(text(), "下一页")]',
pageE: 'css;.ui-box-main > ul.ui-list > li',
- insertP: ['css;.ui-box-main > ul.ui-list', 3],
replaceE: 'css;div.ui-page',
scrollD: 1200
}
@@ -1206,7 +1156,6 @@ function: {
return '';
},
pageE: 'css;.p_list > .p_list01[class*="user_"]',
- insertP: ['//div[@class="p_list"][./div[contains(@class, "user_")]]', 3],
replaceE: 'css;.t_page',
scrollD: 1000
}
@@ -1239,7 +1188,6 @@ function: {
return '';
},
pageE: 'css;div[id^="reply_"]',
- insertP: ['css;#new_wrap_container', 3],
replaceE: 'css;.t_page',
scrollD: 1000
},
@@ -1254,7 +1202,6 @@ function: {
type: 1,
nextL: 'css;a.Next',
pageE: 'css;ul.DataList > li',
- insertP: ['css;ul.DataList', 3],
replaceE: 'css;.Pager',
scrollD: 1500
}
@@ -1266,7 +1213,6 @@ function: {
type: 1,
nextL: '//div[contains(@class, "_pageNav")]/a[contains(text(), "下一页")]',
pageE: 'css;ul.gb-bbs-list > li',
- insertP: ['css;ul.gb-bbs-list', 3],
replaceE: 'css;._pageNav',
scrollD: 1000
},
@@ -1282,7 +1228,6 @@ function: {
type: 1,
nextL: 'css;a.page_down',
pageE: 'css;.table-section > dl:not(.table_head)',
- insertP: ['css;.table-section', 3],
replaceE: 'css;.forumList_page',
scrollD: 2000
}
@@ -1298,7 +1243,6 @@ function: {
type: 1,
nextL: 'css;a.nxt:not([href*="javascript"])',
pageE: 'css;#threadlist table > tbody[id^="normalthread_"]',
- insertP: ['id("threadlist")//table/tbody[starts-with(@id, "normalthread_")]/parent::table', 3],
replaceE: 'css;.pg',
scrollD: 2500
}
@@ -1308,7 +1252,6 @@ function: {
type: 1,
nextL: 'css;a.nxt:not([href*="javascript"])',
pageE: 'css;#postlist > .comiis_viewbox',
- insertP: ['css;#postlist', 3],
replaceE: 'css;.comiis_pgs > .pg',
scrollD: 3000
}
@@ -1320,7 +1263,6 @@ function: {
type: 1,
nextL: 'css;a[rel="next"]',
pageE: 'css;tbody[id*="threadbits_forum"] > tr',
- insertP: ['css;tbody[id*="threadbits_forum"]', 3],
replaceE: 'css;.pagenav',
scrollD: 2500
}
@@ -1330,7 +1272,6 @@ function: {
type: 1,
nextL: 'css;a[rel="next"]',
pageE: 'css;#posts > div:not([id])',
- insertP: ['css;#posts', 3],
replaceE: 'css;.pagenav',
scrollD: 2000
}
@@ -1342,7 +1283,6 @@ function: {
type: 1,
nextL: 'css;li.next > a',
pageE: 'css;ul.fly-list > li',
- insertP: ['css;ul.fly-list', 3],
replaceE: 'css;.pages',
scrollD: 2000
}
@@ -1352,7 +1292,6 @@ function: {
type: 1,
nextL: 'css;li.next > a',
pageE: 'css;ul#jieda > li',
- insertP: ['css;ul#jieda', 3],
replaceE: 'css;.pages',
scrollD: 2000
}
@@ -1497,7 +1436,6 @@ function: {
type: 6,
nextL: function() {let next = getCSS('li.number.active+li.number'); if (next) return (location.origin + location.pathname + '?p=' + next.textContent)},
pageE: 'css;ul.illust-content > li',
- insertP: ['css;ul.illust-content', 3],
replaceE: 'css;ul.el-pager',
loadTime: 800,
scrollD: 2000
@@ -1528,7 +1466,6 @@ function: {
type: 1,
nextL: '//div[contains(@class,"page-box")]//a[text()="下一页"]',
pageE: 'css;.card-grid-box:not(.favorites-box) > div',
- insertP: ['css;.card-grid-box:not(.favorites-box)', 3],
replaceE: 'css;.page-box',
scrollD: 2500
},
@@ -1542,7 +1479,6 @@ function: {
type: 1,
nextL: '//div[contains(@class,"page-box")]//a[text()="下一页"]',
pageE: 'css;.list-box > .qtw-card',
- insertP: ['css;.list-box', 3],
replaceE: 'css;.page-box',
scrollD: 4000
},
@@ -1574,7 +1510,6 @@ function: {
type: 1,
nextL: '//a[@title="下一页" or text()="下一页"][not(contains(@class, "search-works-nextpage"))]',
pageE: 'css;ul#img-list-outer > li',
- insertP: ['css;ul#img-list-outer', 3],
replaceE: 'css;.common-page-box, .common-seo-page-box',
scrollD: 2000
},
@@ -1589,7 +1524,6 @@ function: {
type: 1,
nextL: '//a[text()="›"]',
pageE: 'css;[class^="results"] > [class^="container"] > div',
- insertP: ['css;[class^="results"] > [class^="container"]', 3],
replaceE: '//a[text()="›"]',
scrollD: 2000
},
@@ -1646,7 +1580,6 @@ function: {
type: 1,
nextL: 'css;li.next > a',
pageE: 'css;.work-list > div',
- insertP: ['css;.work-list', 3],
replaceE: 'css;.pagerbar',
scrollD: 1500
}
@@ -1656,7 +1589,6 @@ function: {
type: 1,
nextL: 'css;li.next > a',
pageE: 'css;.collect-list > div',
- insertP: ['css;.collect-list', 3],
replaceE: 'css;.pagerbar',
scrollD: 1500
}
@@ -1691,7 +1623,6 @@ function: {
type: 1,
nextL: 'css;a.nxt:not([href*="javascript"])',
pageE: 'css;.waterfall > li',
- insertP: ['css;.waterfall', 3],
replaceE: 'css;.pg',
scrollD: 1500
}
@@ -1701,7 +1632,6 @@ function: {
type: 1,
nextL: 'css;a.nxt:not([href*="javascript"])',
pageE: 'css;#zhanzhuai_primary > .box',
- insertP: ['css;#zhanzhuai_primary > #modactions', 1],
replaceE: 'css;.pg',
scrollD: 1500
}
@@ -1723,7 +1653,6 @@ function: {
type: 1,
nextL: 'css;li.next > a',
pageE: 'css;.main_content > ul > li',
- insertP: ['css;.main_content > ul', 3],
replaceE: 'css;ul.pagination',
scrollD: 1500
}
@@ -1736,7 +1665,6 @@ function: {
type: 1,
nextL: 'css;li.next_page a[rel="next"]',
pageE: 'css;ul.list-page-ul > li',
- insertP: ['css;ul.list-page-ul', 3],
replaceE: 'css;ul.pagination',
scrollD: 2000
}
@@ -1744,7 +1672,7 @@ function: {
_3dmgame: {
host: 'www.3dmgame.com',
functionS: function() {
- if (getCSS('.ztliswrap > div.lis')) {
+ if (getCSS('.Llist_b > div.lis')) {
curSite = DBSite._3dmgame_list;
} else if (getCSS('.newsleft > ul')) {
curSite = DBSite._3dmgame_list2;
@@ -1769,8 +1697,7 @@ function: {
pager: {
type: 1,
nextL: 'css;li.next > a',
- pageE: 'css;.ztliswrap > div.lis',
- insertP: ['css;.pagewrap', 1],
+ pageE: 'css;.Llist_b > div.lis',
replaceE: 'css;.pagewrap',
scrollD: 1000
},
@@ -1784,7 +1711,6 @@ function: {
type: 1,
nextL: 'css;li.next > a',
pageE: 'css;.newsleft > ul > li',
- insertP: ['css;.newsleft > ul', 3],
replaceE: 'css;.pagewrap',
scrollD: 1000
},
@@ -1834,7 +1760,6 @@ function: {
type: 1,
nextL: 'css;a.page-next',
pageE: 'css;.famous-ul > .famous-li',
- insertP: ['css;.famous-ul', 3],
replaceE: 'css;.page-container',
scrollD: 1000
},
@@ -1864,7 +1789,6 @@ function: {
type: 1,
nextL: 'css;a.next',
pageE: 'css;#image-show > img',
- insertP: ['css;#image-show', 3],
replaceE: 'css;#image-show > a',
scrollD: 1200
}
@@ -1904,7 +1828,6 @@ function: {
type: 1,
nextL: nexusmods_nextL,
pageE: 'css;ul.tiles > li',
- insertP: ['css;ul.tiles', 3],
replaceE: 'css;.pagination',
scrollD: 4000
},
@@ -1929,7 +1852,6 @@ function: {
type: 1,
nextL: '//a[@class="pagebtn"][last()]',
pageE: 'css;.workshopBrowseItems > *',
- insertP: ['css;.workshopBrowseItems', 3],
replaceE: 'css;.workshopBrowsePaging',
scriptT: 2,
scrollD: 1500
@@ -1941,7 +1863,6 @@ function: {
type: 1,
nextL: '//ul[@class="pager"]//a[text()="下一页"]',
pageE: '//h2[contains(text(), "所有游戏") or contains(text(), "搜索结果")]/following-sibling::div[1]/div',
- insertP: ['//h2[contains(text(), "所有游戏") or contains(text(), "搜索结果")]/following-sibling::div[1]', 3],
replaceE: 'css;ul.pager',
scrollD: 1500
}
@@ -1959,7 +1880,6 @@ function: {
type: 1,
nextL: '//td[@class="gensmall"][@align="right"]//a[text()="Next"]',
pageE: 'css;#pagecontent > table.tablebg > tbody > tr:not([align])',
- insertP: ['css;#pagecontent > table.tablebg > tbody > tr[align]', 1],
replaceE: 'css;#pagecontent > table:first-child',
scrollD: 1500
},
@@ -1972,7 +1892,6 @@ function: {
type: 1,
nextL: 'id("pageheader")/p[@class="gensmall"]//a[text()="Next"]',
pageE: 'css;#pagecontent > table.tablebg:not(:nth-last-child(2)):not(:nth-child(2))',
- insertP: ['css;#pagecontent > table.tablebg:nth-last-child(2)', 1],
replaceE: 'css;#pagecontent >table:not(.tablebg), #pageheader p.gensmall',
scrollD: 2000
}
@@ -1982,7 +1901,6 @@ function: {
type: 1,
nextL: 'id("wrapcentre")/div[@class="nav"]//a[text()="Next"]',
pageE: 'css;#wrapcentre > form > table.tablebg > tbody > tr[valign]',
- insertP: ['css;#wrapcentre > form > table.tablebg > tbody > tr:last-child', 1],
replaceE: 'css;#wrapcentre > div',
scrollD: 1500
}
@@ -1994,7 +1912,6 @@ function: {
type: 1,
nextL: 'css;a.next.page-numbers',
pageE: 'css;article[id^="post-"]',
- insertP: ['css;nav.paging-navigation', 1],
replaceE: 'css;nav.paging-navigation',
scrollD: 2000
}
@@ -2005,7 +1922,6 @@ function: {
type: 1,
nextL: 'css;a.next.page-numbers',
pageE: 'css;article[id^="post-"]',
- insertP: ['css;nav.paging-navigation', 1],
replaceE: 'css;nav.paging-navigation',
scrollD: 2500
}
@@ -2035,7 +1951,6 @@ function: {
type: 1,
nextL: 'css;a.a1',
pageE: 'css;.content-list > li',
- insertP: ['css;.content-list', 3],
replaceE: 'css;.pages',
scrollD: 1500
},
@@ -2060,7 +1975,6 @@ function: {
type: 1,
nextL: 'css;a.nextpostslink',
pageE: 'css;.video-listing-content .row > div',
- insertP: ['css;.video-listing-content .row', 3],
replaceE: 'css;.wp-pagenavi',
scrollD: 1500
},
@@ -2076,7 +1990,6 @@ function: {
type: 1,
nextL: 'css;a.next',
pageE: 'css;.post-box-list > article',
- insertP: ['css;.post-box-list', 3],
replaceE: 'css;.pagination_wrap',
scrollD: 1500
}
@@ -2088,7 +2001,6 @@ function: {
type: 1,
nextL: '//ul[contains(@class, "myui-page")]/li/a[contains(text(), "下一页")]',
pageE: 'css;ul.myui-vodlist > li',
- insertP: ['css;ul.myui-vodlist', 3],
replaceE: 'css;ul.myui-page',
scrollD: 1500
},
@@ -2105,7 +2017,6 @@ function: {
type: 1,
nextL: '//ul[contains(@class, "stui-page__item")]//a[contains(text(), "下一页")]',
pageE: 'css;ul.stui-vodlist > li',
- insertP: ['css;ul.stui-vodlist', 3],
replaceE: 'css;ul.stui-page__item',
scrollD: 1000
},
@@ -2121,7 +2032,6 @@ function: {
type: 1,
nextL: 'css;a.page-number.page-next',
pageE: 'css;.module-items > *',
- insertP: ['css;.module-items', 3],
replaceE: 'css;#page',
scrollD: 1000
},
@@ -2137,7 +2047,6 @@ function: {
type: 1,
nextL: 'css;.next-page > a',
pageE: 'css;.m-movies > article',
- insertP: ['css;.pagination', 1],
replaceE: 'css;.pagination',
scrollD: 1500
},
@@ -2153,7 +2062,6 @@ function: {
type: 1,
nextL: '//ul[contains(@class, "stui-page")]/li/a[contains(text(), "下一页")]',
pageE: 'css;ul.stui-vodlist > li',
- insertP: ['css;ul.stui-vodlist', 3],
replaceE: 'css;ul.stui-page',
scrollD: 1500
},
@@ -2174,7 +2082,6 @@ function: {
type: 1,
nextL: 'css;#page a[title="下一页"]',
pageE: 'css;ul.search-result > a',
- insertP: ['css;ul.search-result', 3],
replaceE: 'css;#page',
scrollD: 1000
},
@@ -2188,7 +2095,6 @@ function: {
type: 1,
nextL: 'css;#page a[title="下一页"]',
pageE: 'css;ul.show-list > li',
- insertP: ['css;ul.show-list', 3],
replaceE: 'css;#page',
scrollD: 1000
},
@@ -2208,7 +2114,6 @@ function: {
type: 1,
nextL: 'css;.pagego a',
pageE: 'css;.list > ul > li',
- insertP: ['css;.list > ul', 3],
replaceE: 'css;.newpages, .pagego, #float_show',
scrollD: 1000
}
@@ -2218,7 +2123,6 @@ function: {
type: 1,
nextL: '//a[@class="a1"][contains(text(), "下一页")]',
pageE: 'css;.search_list > *',
- insertP: ['css;.search_list', 3],
replaceE: 'css;.pages',
scrollD: 1000
}
@@ -2232,7 +2136,6 @@ function: {
type: 1,
nextL: '//div[contains(@class, "page")]/a[contains(text(), ">")]',
pageE: 'css;.index-tj > ul > li',
- insertP: ['css;.index-tj > ul', 3],
replaceE: 'css;.page',
scrollD: 1000
},
@@ -2248,7 +2151,6 @@ function: {
type: 1,
nextL: '//a[@class="nextPage" or contains(text(), "下一页")]',
pageE: 'css;.dhnew > ul > li',
- insertP: ['css;.dhnew > ul', 3],
replaceE: 'css;.pagelist',
scrollD: 2000
}
@@ -2260,7 +2162,6 @@ function: {
type: 1,
nextL: '//ul[contains(@class, "pagination ")]//a[contains(text(), "»")]',
pageE: 'css;ul.list-unstyled > li',
- insertP: ['css;ul.list-unstyled', 3],
replaceE: 'css;ul.pagination ',
scrollD: 1000
},
@@ -2280,7 +2181,6 @@ function: {
type: 1,
nextL: '//div[@class="pages"]/a[contains(text(), "下一页")]',
pageE: 'css;#contrainer > .img> ul > li',
- insertP: ['css;#contrainer > .img> ul', 3],
replaceE: 'css;.pages',
scrollD: 1000
}
@@ -2290,7 +2190,6 @@ function: {
type: 1,
nextL: '//div[@class="pages"]/a[contains(text(), "下一页")]',
pageE: 'css;#contrainer .fire .pics > ul > li',
- insertP: ['css;#contrainer .fire .pics > ul', 3],
replaceE: 'css;.pages',
scrollD: 1000
}
@@ -2308,7 +2207,6 @@ function: {
type: 1,
nextL: 'id("container")//div[@class="blockcontent"]/div[@style][not(@class)]/li/a[contains(text(), "下一页")]',
pageE: 'css;#container .blockcontent1 > div',
- insertP: ['css;#container .blockcontent1', 3],
replaceE: 'css;#container .blockcontent > div[style]:not([class])',
scrollD: 1000
}
@@ -2318,7 +2216,6 @@ function: {
type: 1,
nextL: 'id("container")//div[@class="blockcontent"]/div[@style][not(@class)]/li/a[contains(text(), "下一页")]',
pageE: 'css;#container .blockcontent > ul > li',
- insertP: ['css;#container .blockcontent > ul', 3],
replaceE: 'css;#container .blockcontent > div[style]:not([class])',
scrollD: 1000
}
@@ -2328,7 +2225,6 @@ function: {
type: 1,
nextL: 'id("container")/ul[@style][not(@class)]/li/a[contains(text(), "下一页")]',
pageE: 'css;#container > .div_right .blockcontent.div_right_r_3 > ul',
- insertP: ['css;#container > .div_right .blockcontent.div_right_r_3', 3],
replaceE: 'css;#container > ul[style]:not([class])',
scrollD: 1000
}
@@ -2346,7 +2242,6 @@ function: {
type: 1,
nextL: '//div[@class="pagelist"]//a[contains(text(), "下一页") or contains(text(), "下一頁")]',
pageE: 'css;.dhnew ul > li',
- insertP: ['css;.dhnew ul', 3],
replaceE: 'css;.pagelist',
scrollD: 1000
}
@@ -2356,7 +2251,6 @@ function: {
type: 1,
nextL: '//div[@class="pagelist"]//a[contains(text(), "下一页") or contains(text(), "下一頁")]',
pageE: 'css;.xgyd ul > li',
- insertP: ['css;.xgyd ul', 3],
replaceE: 'css;.pagelist',
scrollD: 1000
}
@@ -2366,7 +2260,6 @@ function: {
type: 1,
nextL: '//div[@class="pagelist"]//a[contains(text(), "下一页") or contains(text(), "下一頁")]',
pageE: 'css;.side-update.normal-wai > .normal-nei',
- insertP: ['css;.side-update.normal-wai', 3],
replaceE: 'css;.pagelist',
scrollD: 1000
}
@@ -2390,7 +2283,6 @@ function: {
type: 1,
nextL: 'css;.nav-previous > a',
pageE: 'css;#main > article',
- insertP: ['css;nav.navigation', 1],
replaceE: 'css;nav.navigation',
scrollD: 1200
}
@@ -2402,7 +2294,6 @@ function: {
type: 1,
nextL: 'css;a.next',
pageE: 'css;#post_container > li',
- insertP: ['css;#post_container', 3],
replaceE: 'css;.pagination',
scrollD: 1500
}
@@ -2412,8 +2303,7 @@ function: {
pager: {
type: 1,
nextL: '//div[@class="page"]/a[contains(text(), "▶") or contains(text(), "下一页")]',
- pageE: 'css;#threadlist > table, #threadlist > hr',
- insertP: ['css;#threadlist', 3],
+ pageE: 'css;#threadlist > *',
replaceE: 'css;.page',
scrollD: 2000
}
@@ -2439,15 +2329,11 @@ function: {
}, // 高清电台
yyds: {
host: 'yyds.fans',
- functionS: function() {
- if (location.search != '' && !indexOF('p=', 's')) {
- curSite = DBSite.yyds;
- }},
+ functionS: function() {if (location.search != '' && !indexOF('p=', 's')) {curSite = DBSite.yyds;}},
pager: {
type: 1,
nextL: 'css;a.next.page-numbers',
pageE: 'css;.list-grouped > div',
- insertP: ['css;.list-grouped', 3],
replaceE: 'css;nav.pagination',
scrollD: 1100
}
@@ -2458,7 +2344,6 @@ function: {
type: 1,
nextL: 'css;a.nextprev',
pageE: 'css;#data_list > tr',
- insertP: ['css;#data_list', 3],
replaceE: 'css;.pages',
scrollD: 2500
}
@@ -2469,7 +2354,6 @@ function: {
type: 1,
nextL: '//div[@class="nav_title"]/a[contains(text(), "下一")]',
pageE: 'css;#topic_list > tbody > tr',
- insertP: ['css;#topic_list > tbody', 3],
replaceE: 'css;.nav_title',
scrollD: 1500
},
@@ -2483,7 +2367,6 @@ function: {
type: 1,
nextL: 'css;ul.pagination a[rel="next"]',
pageE: 'css;.topic-list > div',
- insertP: ['css;.topic-list', 3],
replaceE: 'css;ul.pagination',
scrollD: 1500
}
@@ -2499,15 +2382,11 @@ function: {
}, // 萌番组
miobt: {
host: ['miobt.com', 'www.36dm.club'],
- functionS: function() {curSite = DBSite.miobt;
- if (location.host === 'www.36dm.club') {
- curSite.pager.scrollD = 1000;
- }},
+ functionS: function() {curSite = DBSite.miobt; if (location.host === 'www.36dm.club') {curSite.pager.scrollD = 1000;}},
pager: {
type: 1,
nextL: '//a[@class="nextprev"][contains(text(), "〉") or contains(text(), "下一页") or contains(text(), "»")]',
pageE: 'css;#data_list > tr',
- insertP: ['css;#data_list', 3],
replaceE: 'css;.pages',
scrollD: 2000
}
@@ -2518,7 +2397,6 @@ function: {
type: 1,
nextL: 'css;a[rel="next"], li.next > a',
pageE: 'css;table.torrent-list > tbody > tr',
- insertP: ['css;table.torrent-list > tbody', 3],
replaceE: 'css;ul.pagination',
scrollD: 2000
}
@@ -2543,7 +2421,6 @@ function: {
type: 1,
nextL: 'css;#pager_links > a[title="next page"]',
pageE: 'css;table.lista2t tr.lista2',
- insertP: ['css;table.lista2t > tbody', 3],
replaceE: 'css;#pager_links',
scrollD: 1000
},
@@ -2553,16 +2430,11 @@ function: {
}, // RARBG
subdh: {
host: 'subdh.com',
- functionS: function() {if (lp == '/' || indexOF('/list/new')) {
- curSite = DBSite.subdh;
- } else if (indexOF('/search')) {
- curSite = DBSite.subdh_search;
- }},
+ functionS: function() {if (lp == '/' || indexOF('/list/new')) {curSite = DBSite.subdh;} else if (indexOF('/search')) {curSite = DBSite.subdh_search;}},
pager: {
type: 1,
nextL: '//a[@class="page-link"][contains(text(), "下一页")]',
pageE: 'css;.col-lg-9 .bg-white.shadow-sm.rounded-3 > .row.gx-0',
- insertP: ['css;.col-lg-9 .bg-white.shadow-sm.rounded-3', 3],
replaceE: 'css;ul.pagination',
scrollD: 1000
}
@@ -2584,7 +2456,6 @@ function: {
type: 1,
nextL: 'css;a.pager__item--next',
pageE: 'css;div[class*="-item-list"] > ul > li',
- insertP: ['css;div[class*="-item-list"] > ul', 3],
replaceE: 'css;.pagination',
scrollD: 2000
}
@@ -2600,7 +2471,6 @@ function: {
type: 1,
nextL: '//ul[@class="pagination"]/li/a[contains(text(), "下一页")]',
pageE: 'css;table.table > tbody > tr',
- insertP: ['css;table.table > tbody', 3],
replaceE: 'css;ul.pagination',
scrollD: 1000
},
@@ -2615,7 +2485,6 @@ function: {
type: 1,
nextL: 'css;a.pager__item--next',
pageE: 'css;ul.list > li',
- insertP: ['css;ul.list', 3],
replaceE: 'css;.pagination',
scrollD: 1000
}
@@ -2654,7 +2523,6 @@ function: {
type: 1,
nextL: '//a[@class="page-link"][contains(text(), "下一页")]',
pageE: 'css;.bg-white.shadow-sm.rounded-3 > div',
- insertP: ['css;.bg-white.shadow-sm.rounded-3', 3],
replaceE: 'css;nav.clearfix',
scrollD: 800
}
@@ -2684,8 +2552,7 @@ function: {
pager: {
type: 1,
nextL: function() {if (getCSS('a.rd-aside__item.j-rd-next')) return location.origin + getCSS('a.rd-aside__item.j-rd-next').getAttribute('_href')},
- pageE: 'css;.rd-article-wr > div',
- insertP: ['css;.rd-article-wr', 3],
+ pageE: 'css;.rd-article-wr > div',
replaceE: 'css;a.last-crumb, .rd-aside',
interval: 2000,
scrollD: 2000
@@ -2700,7 +2567,6 @@ function: {
type: 1,
nextL: 'css;a.next',
pageE: 'css;.cate-comic-list > div',
- insertP: ['css;.cate-comic-list', 3],
replaceE: 'css;#Pagination',
scrollD: 1000
},
@@ -2723,7 +2589,6 @@ function: {
type: 1,
nextL: cartoonmad_nextL,
pageE: 'css;body > table > tbody > tr:nth-child(4) > td > table > tbody > tr:first-child > td:first-child img',
- insertP: ['css;body > table > tbody > tr:nth-child(4) > td > table > tbody > tr:first-child > td:first-child > a', 3],
replaceE: 'css;body > table > tbody > tr:nth-child(2), body > table > tbody > tr:nth-child(5)',
scrollD: 2000
}
@@ -2733,7 +2598,6 @@ function: {
type: 1,
nextL: '//a[@class="pages"][contains(text(), "下一頁")]',
pageE: 'css;td[background="/image/content_box4.gif"]+td > table > tbody > tr',
- insertP: ['css;td[background="/image/content_box4.gif"]+td > table > tbody', 3],
replaceE: '//a[@class="pages"]/parent::td/parent::tr | //font[contains(text(), "目前在第")]',
scrollD: 1000
}
@@ -2769,7 +2633,6 @@ function: {
type: 1,
nextL: '//div[contains(@class, "pagination")]//a[contains(text(), "下一页") or contains(text(), "下页")]',
pageE: 'css;.comic-main-section > *',
- insertP: ['css;.comic-main-section', 3],
replaceE: 'css;.pagination',
scrollD: 1000
},
@@ -2783,7 +2646,6 @@ function: {
type: 1,
nextL: '//div[contains(@class, "pagination")]//a[contains(text(), "下一页") or contains(text(), "下页")]',
pageE: 'css;.comic-main-section .row > div',
- insertP: ['css;.comic-main-section .row', 3],
replaceE: 'css;.pagination',
scrollD: 1000
}
@@ -2802,7 +2664,6 @@ function: {
type: 1,
nextL: '//div[contains(@class, "page")]//a[@href][contains(text(), "下一页") or contains(text(), "下一章")]',
pageE: 'css;#htmlContent p.img > img',
- insertP: ['css;#htmlContent p.img', 3],
replaceE: 'css;.page, .title',
scrollD: 2000
}
@@ -2812,7 +2673,6 @@ function: {
type: 1,
nextL: 'css;#pagelink a.next',
pageE: 'css;.article-list',
- insertP: ['css;#pagelink', 1],
replaceE: 'css;#pagelink',
scrollD: 1500
}
@@ -2822,7 +2682,6 @@ function: {
type: 1,
nextL: 'css;#pagelink a.next',
pageE: 'css;#content > table > tbody > tr:not([align])',
- insertP: ['css;#content > table > tbody', 3],
replaceE: 'css;#pagelink',
scrollD: 1500
}
@@ -2958,7 +2817,6 @@ function: {
type: 1,
nextL: 'css;a.pg_next',
pageE: 'css;ul.list_con_li > li',
- insertP: ['css;ul.list_con_li', 3],
replaceE: 'css;.page',
scrollD: 1000
}
@@ -2969,7 +2827,6 @@ function: {
type: 1,
nextL: 'css;a.pg_next',
pageE: 'css;.ph_r_con_li > div:not(.ad_column)',
- insertP: ['css;.ph_r_con_li', 3],
replaceE: 'css;.page',
scrollD: 1000
}
@@ -3001,7 +2858,6 @@ function: {
type: 1,
nextL: '//div[@class="pages"]/a[contains(text(), "下一页")]',
pageE: 'css;.newpic_content > *:not(.pages)',
- insertP: ['css;.newpic_content', 3],
replaceE: 'css;.pages',
scrollD: 1000
}
@@ -3028,7 +2884,6 @@ function: {
type: 1,
nextL: 'css;li.next > a',
pageE: 'css;.exemptComic-box > div',
- insertP: ['css;.exemptComic-box', 3],
replaceE: 'css;ul.page-all',
scrollD: 1500
},
@@ -3063,7 +2918,6 @@ function: {
type: 1,
nextL: '//div[@class="NewPages"]//a[contains(text(), "下一页")]',
pageE: 'css;.cy_list_mh > ul',
- insertP: ['css;.cy_list_mh', 3],
replaceE: 'css;.NewPages',
scrollD: 1000
}
@@ -3096,7 +2950,6 @@ function: {
type: 1,
nextL: 'css;.next_chapter > a',
pageE: 'css;.comic-contain > amp-img',
- insertP: ['css;.comic-contain', 3],
replaceE: 'css;.next_chapter, .bottom-bar, .header .title',
scrollD: 2000
}
@@ -3128,7 +2981,6 @@ function: {
type: 1,
nextL: '//a[@class="page-link"][contains(text(), "下一页")]',
pageE: 'css;.works_recommend.classification_works > ul',
- insertP: ['css;.works_recommend.classification_works', 3],
replaceE: 'css;.paging',
scrollD: 1000
},
@@ -3163,7 +3015,6 @@ function: {
type: 1,
nextL: '//div[@class="pages_s"]/a[text()="下一页"]',
pageE: 'css;.ar_list_co > ul > li',
- insertP: ['css;.ar_list_co > ul', 3],
replaceE: 'css;.pages_s',
scrollD: 1000
}
@@ -3174,7 +3025,6 @@ function: {
type: 1,
nextL: 'css;a.next',
pageE: 'css;.ar_list_co > ul > dl',
- insertP: ['css;.ar_list_co > ul', 3],
replaceE: 'css;.pages_s',
scrollD: 1000
}
@@ -3204,7 +3054,6 @@ function: {
type: 1,
nextL: 'css;li.next > a',
pageE: 'css;ul.book-list > li',
- insertP: ['css;ul.book-list', 3],
replaceE: 'css;ul.pagination',
scrollD: 1000
}
@@ -3239,7 +3088,6 @@ function: {
type: 1,
nextL: 'css;#nextPage',
pageE: 'css;ul.mh-list > li',
- insertP: ['css;ul.mh-list', 3],
replaceE: 'css;.pagination',
scrollD: 1000
}
@@ -3272,7 +3120,6 @@ function: {
type: 1,
nextL: '//div[@class="page-pagination"]//a[contains(text(), ">")]',
pageE: 'css;ul.mh-list > li',
- insertP: ['css;ul.mh-list', 3],
replaceE: 'css;.page-pagination',
scrollD: 800
}
@@ -3305,7 +3152,6 @@ function: {
type: 1,
nextL: '//div[@class="page-pagination"]//a[contains(text(), ">")]',
pageE: 'css;ul.mh-list > li',
- insertP: ['css;ul.mh-list', 3],
replaceE: 'css;.page-pagination',
scrollD: 1000
}
@@ -3343,7 +3189,6 @@ function: {
type: 1,
nextL: () => getNextP('css;.fed-page-info a.fed-btns-green+a[onclick]', 'page=', /page=\d+/),
pageE: 'css;ul.fed-list-info > li',
- insertP: ['css;ul.fed-list-info', 3],
replaceE: 'css;.fed-page-info',
scrollD: 1000
},
@@ -3357,7 +3202,6 @@ function: {
type: 1,
nextL: () => getNextP('css;.fed-page-info a.fed-btns-green+a[onclick]', 'page=', /page=\d+/),
pageE: 'css;dl.fed-deta-info',
- insertP: ['css;.fed-page-info', 1],
replaceE: 'css;.fed-page-info',
scrollD: 1000
},
@@ -3373,7 +3217,6 @@ function: {
type: 1,
nextL: 'css;a[class*="pagination-next"]',
pageE: 'css;ul.all-img-list > li',
- insertP: ['css;ul.all-img-list', 3],
replaceE: 'css;#page-container',
scrollD: 900
}
@@ -3386,7 +3229,6 @@ function: {
type: 1,
nextL: 'css;a[id$="chapterNext"]',
pageE: 'css;.main-text-wrap > div:not(.admire-wrap)',
- insertP: ['css;.main-text-wrap', 3],
replaceE: 'css;.chapter-control',
scrollD: 900
}
@@ -3398,7 +3240,6 @@ function: {
type: 1,
nextL: '//div[@class="listl2"]//a[text()="下一页"]',
pageE: 'css;.listl2 > ul > li',
- insertP: ['css;.listl2 > ul', 3],
replaceE: 'css;.listl2 > dl',
scrollD: 900
}
@@ -3410,7 +3251,6 @@ function: {
type: 1,
nextL: '//div[@class="man_first"]//a[text()="下一页"]',
pageE: 'css;.man_first > ul > li',
- insertP: ['css;.man_first > ul', 3],
replaceE: 'css;.man_first > dl',
scrollD: 900
}
@@ -3440,7 +3280,6 @@ function: {
type: 1,
nextL: 'id("pager")//a[contains(text(), "下一页")]',
pageE: 'css;.books-list > ul > li',
- insertP: ['css;.books-list > ul', 3],
replaceE: 'css;#pager',
scrollD: 1000
}
@@ -3450,7 +3289,6 @@ function: {
type: 1,
nextL: 'id("pager")//a[contains(text(), "下一页")]',
pageE: 'css;ul.search-list > li',
- insertP: ['css;ul.search-list', 3],
replaceE: 'css;#pager',
scrollD: 1000
}
@@ -3493,7 +3331,6 @@ function: {
type: 1,
nextL: '//ul[@class="pagination"]/li/a[contains(text(), "下一页")]',
pageE: 'css;.rank-book-list > div',
- insertP: ['css;.rank-book-list', 3],
replaceE: 'css;ul.pagination',
scrollD: 1000
}
@@ -3520,7 +3357,6 @@ function: {
type: 1,
nextL: 'css;.pages a.next, .pages > strong+a',
pageE: 'css;#sitebox > dl',
- insertP: ['css;#sitebox', 3],
replaceE: 'css;.pages',
scrollD: 1000
},
@@ -3543,7 +3379,6 @@ function: {
type: 1,
nextL: '//p[@class="mlfy_page"]/a[contains(text(), "下一页") or contains(text(), "下一章")]',
pageE: 'css;#mlfy_main_text > *',
- insertP: ['css;#mlfy_main_text', 3],
replaceE: 'css;p.mlfy_page',
scrollD: 1000
}
@@ -3553,7 +3388,6 @@ function: {
type: 1,
nextL: 'css;#pagelink > a.next',
pageE: 'css;.store_collist > div.bookbox',
- insertP: ['css;.store_collist', 3],
replaceE: 'css;#pagelink',
scrollD: 1000
},
@@ -3567,7 +3401,6 @@ function: {
type: 1,
nextL: 'css;#pagelink > a.next',
pageE: 'css;.rankpage_box > div.rank_d_list',
- insertP: ['css;div.pages', 1],
replaceE: 'css;#pagelink',
scrollD: 1000
},
@@ -3599,7 +3432,6 @@ function: {
type: 1,
nextL: 'css;#pagelink > strong+a ,#pagelink a.next',
pageE: 'css;ol.book-ol > li',
- insertP: ['css;ol.book-ol', 3],
replaceE: 'css;#pagelink',
scrollD: 1000
},
@@ -3615,7 +3447,6 @@ function: {
type: 1,
nextL: '//div[@class="paging"]//a[contains(text(),"下一页")]',
pageE: 'css;div.content-wrap ul.excerpt > li',
- insertP: ['css;div.content-wrap ul.excerpt', 3],
replaceE: 'css;div.paging',
scrollD: 2000
}
@@ -3634,13 +3465,11 @@ function: {
}, // 不死鸟
sharerw: {
host: 'www.sharerw.com',
- functionS: function() {if (!indexOF('.html')) {
- if (lp == '/search.php') {curSite = DBSite.sharerw_search;} else {curSite = DBSite.sharerw;};};},
+ functionS: function() {if (!indexOF('.html')) {if (lp == '/search.php') {curSite = DBSite.sharerw_search;} else {curSite = DBSite.sharerw;};};},
pager: {
type: 1,
nextL: 'css;span.next > a',
pageE: 'css;.new-post > article',
- insertP: ['css;.new-post', 3],
replaceE: 'css;.pagebar',
scrollD: 1500
}
@@ -3650,7 +3479,6 @@ function: {
type: 1,
nextL: 'css;span.next > a',
pageE: 'css;#mainbox > article',
- insertP: ['css;.pagebar', 1],
replaceE: 'css;.pagebar',
scrollD: 1500
}
@@ -3662,7 +3490,6 @@ function: {
type: 1,
nextL: 'css;.page a[data-page="next"]',
pageE: 'css;.side-left > ul[class*="-list"] > li',
- insertP: ['css;.side-left > ul[class*="-list"]', 3],
replaceE: 'css;.page',
scrollD: 2000
}
@@ -3682,7 +3509,6 @@ function: {
type: 1,
nextL: 'css;a.next.page-numbers',
pageE: 'css;section#latest-posts > article',
- insertP: ['css;nav.navigation.pagination', 1],
replaceE: 'css;div.nav-links',
scrollD: 1500
}
@@ -3693,7 +3519,6 @@ function: {
type: 1,
nextL: 'css;a.next',
pageE: 'css;.content > div',
- insertP: ['css;nav.pagination', 1],
replaceE: 'css;nav.pagination',
scrollD: 1000
}
@@ -3713,7 +3538,6 @@ function: {
type: 1,
nextL: 'css;a.next',
pageE: 'css;ul.post-loop > li',
- insertP: ['css;ul.post-loop', 3],
replaceE: 'css;ul.pagination',
scrollD: 1500
},
@@ -3741,7 +3565,6 @@ function: {
type: 1,
nextL: 'css;a.next',
pageE: 'css;ul.post-loop > li',
- insertP: ['css;ul.post-loop', 3],
replaceE: 'css;ul.pagination',
scrollD: 1500
}
@@ -3753,7 +3576,6 @@ function: {
type: 1,
nextL: '//div[@class="pagination"]//a[contains(text(), "Next")]',
pageE: 'css;article.article',
- insertP: ['css;.pagination', 1],
replaceE: 'css;.pagination',
scrollD: 1000
}
@@ -3781,7 +3603,6 @@ function: {
type: 1,
nextL: 'css;a.nextpage',
pageE: 'css;.articleListWrapper > .richTextItem.search',
- insertP: ['css;#pageGroup', 1],
replaceE: 'css;#pageGroup',
scrollD: 700
}
@@ -3803,23 +3624,17 @@ function: {
type: 1,
nextL: 'css;a.next.page-numbers',
pageE: 'css;.posts-con > div:not([class*="posts-"])',
- insertP: ['css;.posts-con', 3],
replaceE: 'css;nav.pagination',
- scrollD: 1000
+ scrollD: 2000
}
}, // 发烧友绿软
iplaysoft: {
host: 'www.iplaysoft.com',
- functionS: function() {if (indexOF('.html') || indexOF('/p/')) { // 文章内
- curSite = DBSite.iplaysoft_comment;
- } else { // 其他页面
- curSite = DBSite.iplaysoft;
- }},
+ functionS: function() {if (indexOF('.html') || indexOF('/p/')) {curSite = DBSite.iplaysoft_comment;} else {curSite = DBSite.iplaysoft;}},
pager: {
type: 1,
nextL: 'css;.pagenavi a[title="下一页"]',
pageE: 'css;#postlist > div.entry',
- insertP: ['css;#postlist > .pagenavi-button', 1],
replaceE: 'css;.pagenavi-button, .pagenavi',
scrollD: 1200
},
@@ -3847,7 +3662,6 @@ function: {
type: 1,
nextL: 'css;a.page-numbers[title="下一页"]',
pageE: 'css;#post > div[id^="post-"]',
- insertP: ['css;#post > #pagenavi', 1],
replaceE: 'css;#post > #pagenavi',
scrollD: 1700
}
@@ -3857,7 +3671,6 @@ function: {
type: 1,
nextL: 'css;a.page-numbers[title="下一页"]',
pageE: 'css;#content > div[class^="entry_box"]',
- insertP: ['css;#content > #pagenavi', 1],
replaceE: 'css;#content > #pagenavi',
scrollD: 1700
}
@@ -3892,7 +3705,6 @@ function: {
type: 1,
nextL: '//div[contains(@class, "page-nav")]/a[last()]',
pageE: 'css;.td-modules-container.td-module-number4 > div',
- insertP: ['css;.td-modules-container.td-module-number4', 3],
replaceE: 'css;.page-nav.td-pb-padding-side',
scrollD: 1000
}
@@ -3910,7 +3722,6 @@ function: {
type: 1,
nextL: 'css;span.pageNext > a',
pageE: 'css;#containerFormsCenter .m_news_list > div',
- insertP: ['css;#containerFormsCenter .m_news_list', 3],
replaceE: 'css;.pagenation',
scrollD: 1200
},
@@ -3924,7 +3735,6 @@ function: {
type: 1,
nextL: 'css;span.pageNext > a',
pageE: 'css;#containerFormsCenter .newsList > div',
- insertP: ['css;#containerFormsCenter .newsList', 3],
replaceE: 'css;.pagenation',
scrollD: 2000
}
@@ -3935,7 +3745,6 @@ function: {
type: 1,
nextL: 'css;a.next.page-numbers',
pageE: 'css;.article > article',
- insertP: ['css;nav.navigation.posts-navigation', 1],
replaceE: 'css;nav.navigation.posts-navigation',
scrollD: 1500
}
@@ -3947,7 +3756,6 @@ function: {
type: 1,
nextL: 'css;.nav-previous > a',
pageE: 'css;#content > article',
- insertP: ['css;#nav-below', 1],
replaceE: 'css;#nav-below',
scrollD: 1500
}
@@ -3959,7 +3767,6 @@ function: {
type: 1,
nextL: 'css;.page_next > a',
pageE: 'css;#main .post-list article',
- insertP: ['css;.page_nav', 1],
replaceE: 'css;.page_nav',
scrollD: 1500
},
@@ -3974,7 +3781,6 @@ function: {
type: 1,
nextL: 'css;span.prev > a',
pageE: 'css;#main > article',
- insertP: ['css;nav.paging-navigation', 1],
replaceE: 'css;nav.paging-navigation',
scrollD: 2000
}
@@ -3985,7 +3791,6 @@ function: {
type: 1,
nextL: '//div[contains(@class, "page-nav")]/a[last()]',
pageE: 'css;.td-ss-main-content > div:not(.td-block-title-wrap):not(.page-nav)',
- insertP: ['css;.page-nav', 1],
replaceE: 'css;.page-nav',
scrollD: 2000
}
@@ -3997,7 +3802,6 @@ function: {
type: 1,
nextL: 'css;li.pagination-next > a',
pageE: 'css;#genesis-content > article',
- insertP: ['css;.pagination', 1],
replaceE: 'css;.pagination',
scrollD: 1500
}
@@ -4047,7 +3851,6 @@ function: {
type: 1,
nextL: 'css;li.next:not(.disabled) > a',
pageE: 'css;#hits-list > div',
- insertP: ['css;#hits-list', 3],
replaceE: 'css;ul.pagination',
scrollD: 1000
}
@@ -4101,7 +3904,6 @@ function: {
type: 1,
nextL: 'css;a.next_page',
pageE: 'css;.js-navigation-container.js-active-navigation-container > div[id^="issue_"]',
- insertP: ['css;.js-navigation-container.js-active-navigation-container', 3],
replaceE: 'css;.pagination',
scrollD: 3000
}
@@ -4111,7 +3913,6 @@ function: {
type: 1,
nextL: 'css;a.next_page',
pageE: 'css;#repo-content-pjax-container div[data-discussion-hovercards-enabled] > div',
- insertP: ['css;#repo-content-pjax-container div[data-discussion-hovercards-enabled]', 3],
replaceE: 'css;.pagination',
scrollD: 3000
}
@@ -4121,7 +3922,6 @@ function: {
type: 1,
nextL: 'css;a.next_page',
pageE: 'css;#repo-content-pjax-container > div[data-pjax] > div:not(.paginate-container)',
- insertP: ['//div[contains(@class, "paginate-container")][1]', 1],
replaceE: 'css;.pagination',
scrollD: 3000
}
@@ -4131,7 +3931,6 @@ function: {
type: 1,
nextL: '//div[@class="pagination"]/a[contains(text(), "Next")]',
pageE: 'css;.Box-body > div.Box-row',
- insertP: ['css;.Box-body', 3],
replaceE: 'css;.pagination',
scrollD: 3000
}
@@ -4141,7 +3940,6 @@ function: {
type: 1,
nextL: '//div[@class="paginate-container"]//a[contains(text(), "Older")]',
pageE: 'css;div.js-navigation-container > div',
- insertP: ['css;div.js-navigation-container', 3],
replaceE: 'css;.paginate-container',
scrollD: 3000
}
@@ -4158,61 +3956,51 @@ function: {
github_search_repositories: {
pager: {
pageE: 'css;ul.repo-list > li',
- insertP: ['css;ul.repo-list', 3],
}
}, //Github - Search 列表
github_search_code: {
pager: {
pageE: 'css;.code-list-item',
- insertP: ['css;.code-list-item:last-child', 1],
}
}, // Github - Search 列表 - Code
github_search_commits: {
pager: {
pageE: 'css;#commit_search_results > div',
- insertP: ['css;#commit_search_results', 3],
}
}, // Github - Search 列表 - Commit
github_search_issues: {
pager: {
pageE: 'css;.issue-list-item',
- insertP: ['css;.issue-list-item:last-child', 1],
}
}, // Github - Search 列表 - Issues
github_search_discussions: {
pager: {
pageE: 'css;.discussion-list-item',
- insertP: ['css;.discussion-list-item:last-child', 1],
}
}, // Github - Search 列表 - Discussions
github_search_registrypackages: {
pager: {
pageE: 'css;#package_search_results > div',
- insertP: ['css;#package_search_results', 3],
}
}, // Github - Search 列表 - Package
github_search_marketplace: {
pager: {
pageE: 'css;#marketplace_search_results > div:first-child > div',
- insertP: ['css;#marketplace_search_results > div:first-child', 3],
}
}, // Github - Search 列表 - Marketplace
github_search_topics: {
pager: {
pageE: 'css;.topic-list-item',
- insertP: ['css;.topic-list-item:last-child', 1],
}
}, // Github - Search 列表 - Topics
github_search_wikis: {
pager: {
pageE: 'css;#wiki_search_results > div:first-child > div',
- insertP: ['css;#wiki_search_results > div:first-child', 3],
}
}, // Github - Search 列表 - wiki
github_search_users: {
pager: {
pageE: 'css;#user_search_results > div:first-child > div',
- insertP: ['css;#user_search_results > div:first-child', 3],
}
}, // Github - Search 列表 - user
stackoverflow: {
@@ -4230,7 +4018,6 @@ function: {
type: 1,
nextL: 'css;a[rel="next"]',
pageE: 'css;#questions > div',
- insertP: ['css;#questions', 3],
replaceE: 'css;.pager',
scrollD: 1500
}
@@ -4240,7 +4027,6 @@ function: {
type: 1,
nextL: 'css;a[rel="next"]',
pageE: 'css;#tags-browser > div',
- insertP: ['css;#tags-browser', 3],
replaceE: 'css;.pager',
scrollD: 1500
}
@@ -4250,7 +4036,6 @@ function: {
type: 1,
nextL: 'css;a[rel="next"]',
pageE: 'css;#user-browser > div:first-child > div',
- insertP: ['css;#user-browser > div:first-child', 3],
replaceE: 'css;.pager',
scrollD: 1500
}
@@ -4260,7 +4045,6 @@ function: {
type: 1,
nextL: 'css;a[rel="next"]',
pageE: 'css;.js-search-results > div:first-child > div',
- insertP: ['css;.js-search-results > div:first-child', 3],
replaceE: 'css;.pager',
scrollD: 1500
}
@@ -4277,7 +4061,6 @@ function: {
type: 1,
nextL: '//a[@class="page-link"][contains(text(), "下一页")]',
pageE: 'css;ul.list-group > li',
- insertP: ['css;ul.list-group', 3],
replaceE: 'css;ul.pagination',
scrollD: 1000
}
@@ -4287,7 +4070,6 @@ function: {
type: 1,
nextL: 'css;a[rel="next"]',
pageE: 'css;.search-result > section',
- insertP: ['css;.search-result > div:last-child', 1],
replaceE: 'css;ul.pagination',
scrollD: 1000
}
@@ -4355,7 +4137,6 @@ function: {
type: 1,
nextL: '//div[@class="topicListFooter"]//a[contains(text(), "下一页")]',
pageE: 'css;div.day',
- insertP: ['css;.topicListFooter:not([id])', 1],
replaceE: 'css;.topicListFooter',
scrollD: 1000
}
@@ -4365,7 +4146,6 @@ function: {
type: 1,
nextL: '//div[@class="pager"]//a[contains(text(), ">")]',
pageE: 'css;#post_list > article',
- insertP: ['css;#post_list', 3],
replaceE: 'css;.pager',
scrollD: 1000
}
@@ -4375,7 +4155,6 @@ function: {
type: 1,
nextL: '//div[@class="pager"]//a[contains(text(), ">")]',
pageE: 'css;div.searchItem',
- insertP: ['css;#paging_block', 1],
replaceE: 'css;.pager',
scrollD: 1000
}
@@ -4391,7 +4170,6 @@ function: {
type: 1,
nextL: '//li[@class="next-page"]/a | //div[@class="btn-pager"]/a[contains(text(), "❯")]',
pageE: 'css;#post-list > ul > li',
- insertP: ['css;#post-list > ul', 3],
replaceE: 'css;.pagination, .b2-pagenav.post-nav',
scrollD: 1500
}
@@ -4401,7 +4179,6 @@ function: {
type: 1,
nextL: 'css;li.next-page a',
pageE: 'css;#primary-home > div:not(.pagination)',
- insertP: ['css;.pagination', 1],
replaceE: 'css;.pagination',
scrollD: 1500
}
@@ -4460,7 +4237,6 @@ function: {
type: 1,
nextL: 'css;a.pagination__btn--next',
pageE: 'css;ul.items-results > *',
- insertP: ['css;ul.items-results', 3],
replaceE: 'css;.pagination',
scrollD: 3000
}
@@ -4501,13 +4277,37 @@ function: {
insertE: nsfc_insertE,
scrollD: 1500
}
- }, // 学术
+ }, // 国家自然科学基金
+ cqvip: {
+ host: 'www.cqvip.com',
+ functionS: function() {if (indexOF('/search')) {curSite = DBSite.cqvip;}},
+ history: true,
+ pager: {
+ type: 6,
+ nextL: '//ul[@class="pagenum"]//a[text()="下一页"]',
+ pageE: 'css;ul.prolist:last-child > li',
+ replaceE: 'css;ul.pagenum',
+ loadTime: 1000,
+ scrollD: 2000
+ }
+ }, // 维普网
+ wanfangdata: {
+ host: 's.wanfangdata.com.cn',
+ functionS: function() {locationC = true; curSite = DBSite.wanfangdata;},
+ insStyle: '#zkFooter {display: none !important;}',
+ history: true,
+ iframe: true,
+ pager: {
+ type: 5,
+ nextL: () => getNextP('css;.pager.active+span.pager', 'p=', /p=\d+/),
+ scrollD: 2000
+ }
+ }, // 万方数据知识服务平台
google_scholar: {
pager: {
type: 1,
nextL: '//a[./span[contains(@class, "next")]]',
pageE: 'css;#gs_res_ccl_mid > *',
- insertP: ['css;#gs_res_ccl_mid', 3],
replaceE: 'id("gs_n")',
scriptT: 1,
scrollD: 2000
@@ -4519,7 +4319,6 @@ function: {
type: 1,
nextL: 'css;a.sb_pagN',
pageE: 'css;#b_results > li.aca_algo',
- insertP: ['css;#b_results .b_pag', 1],
replaceE: 'css;#b_results .b_pag',
scrollD: 1000
}
@@ -4538,7 +4337,6 @@ function: {
type: 1,
nextL: 'id("page")/a[./i[@class="c-icon-pager-next"]]',
pageE: 'css;#bdxs_result_lists > div.result',
- insertP: ['css;#bdxs_result_lists', 3],
replaceE: 'css;#page',
scrollD: 1000
}
@@ -4549,7 +4347,6 @@ function: {
type: 1,
nextL: 'css;a.res-page-next',
pageE: 'css;#journaldetail > div',
- insertP: ['css;#journaldetail', 3],
replaceE: 'css;.res-page',
scrollD: 1000
}
@@ -4569,7 +4366,6 @@ function: {
type: 1,
nextL: 'css;a#snext',
pageE: 'css;ul.list > li',
- insertP: ['css;ul.list', 3],
replaceE: 'css;#page',
scrollD: 1000
}
@@ -4588,7 +4384,6 @@ function: {
type: 1,
nextL: 'css;a[rel="next"]',
pageE: 'css;ol.ipsDataList > li:not([data-rowid])~li',
- insertP: ['css;ol.ipsDataList', 3],
replaceE: 'css;ul.ipsPagination',
scrollD: 2000
}
@@ -4598,7 +4393,6 @@ function: {
type: 1,
nextL: 'css;a[rel="next"]',
pageE: 'css;#elPostFeed > form > *:not(input):not(.after-first-post)',
- insertP: ['css;#elPostFeed > form', 3],
replaceE: 'css;ul.ipsPagination',
scrollD: 2000
}
@@ -4608,7 +4402,6 @@ function: {
type: 1,
nextL: 'css;a[rel="next"]',
pageE: 'css;ol.ipsStream > li',
- insertP: ['css;ol.ipsStream', 3],
replaceE: 'css;ul.ipsPagination',
scrollD: 2000
}
@@ -4626,7 +4419,6 @@ function: {
type: 1,
nextL: 'css;.pagelinks > strong+a',
pageE: 'css;#messageindex tbody > tr:not([class])',
- insertP: ['css;#messageindex tbody', 3],
replaceE: 'css;.pagelinks',
scrollD: 2000
}
@@ -4636,7 +4428,6 @@ function: {
type: 1,
nextL: 'css;.pagelinks > strong+a',
pageE: 'css;#forumposts form > *',
- insertP: ['css;#forumposts form', 3],
replaceE: 'css;.pagelinks',
scrollD: 2000
}
@@ -4652,7 +4443,6 @@ function: {
type: 1,
nextL: 'css;a.pag_next',
pageE: 'css;#cat_all > .cat_grid > div',
- insertP: ['css;#cat_all > .cat_grid', 3],
replaceE: 'css;#large_pagination',
scriptT: 3,
scrollD: 2000
@@ -4663,7 +4453,6 @@ function: {
type: 1,
nextL: 'css;#searchresults_footer > a.buttonright',
pageE: 'css;#searchresults_list > a',
- insertP: ['css;#searchresults_list', 3],
replaceE: 'css;#searchresults_footer',
scrollD: 3000
}
@@ -4703,7 +4492,6 @@ function: {
type: 1,
nextL: 'css;a.next_page',
pageE: 'css;ol#browse-script-list > li',
- insertP: ['css;ol#browse-script-list', 3],
replaceE: 'css;.pagination',
scrollD: 1300
}
@@ -4713,7 +4501,6 @@ function: {
type: 1,
nextL: 'css;a.next_page',
pageE: 'css;.script-discussion-list > div',
- insertP: ['css;.script-discussion-list', 3],
replaceE: 'css;.pagination',
scrollD: 1800
}
@@ -4723,7 +4510,6 @@ function: {
type: 1,
nextL: 'css;a.next_page',
pageE: 'css;.discussion-list > div',
- insertP: ['css;.discussion-list', 3],
replaceE: 'css;.pagination',
scrollD: 1300
}
@@ -4737,7 +4523,6 @@ function: {
type: 1,
nextL: '//ul[@class="pagenation-list"]//a[contains(text() ,"下一页")] | //ul[@class="pagenation-list"]/li[contains(@class, "next-page")]/a',
pageE: 'css;#feed-main-list > li',
- insertP: ['css;#feed-main-list', 3],
replaceE: 'css;ul.pagenation-list',
scrollD: 1500
}
@@ -4751,7 +4536,6 @@ function: {
type: 1,
nextL: 'css;a.next',
pageE: 'css;.share-list > ul > li',
- insertP: ['css;.share-list > ul', 3],
replaceE: 'css;.h-pages',
scrollD: 1500
}
@@ -4805,7 +4589,6 @@ function: {
type: 1,
nextL: 'css;a.page-item-next',
pageE: 'css;ul.viewlist_ul > li',
- insertP: ['css;ul.viewlist_ul', 3],
replaceE: 'css;.page',
scrollD: 2000
}
@@ -4817,7 +4600,6 @@ function: {
type: 1,
nextL: 'css;a.poi-pager__item.poi-pager__item_next',
pageE: 'css;.inn-archive__container > article',
- insertP: ['css;.inn-archive__container', 3],
replaceE: 'css;.poi-pager',
scrollD: 1800
}
@@ -4829,7 +4611,6 @@ function: {
type: 1,
nextL: 'css;a.next',
pageE: 'css;#contents > *:not(.pages)',
- insertP: ['css;.pages', 1],
replaceE: 'css;.pages',
scrollD: 1800
}
@@ -4841,7 +4622,6 @@ function: {
type: 1,
nextL: '//div[@class="page"]/a[contains(text(),"下一页")]',
pageE: 'css;.slist ul > li:not(.nextpage)',
- insertP: ['css;.slist ul', 3],
replaceE: 'css;.page',
scrollD: 1000
}
@@ -4854,7 +4634,6 @@ function: {
type: 1,
nextL: '//div[@class="page"]/a[contains(text(), "下一页")]',
pageE: 'css;body > .container > div.item',
- insertP: ['css;body > .container', 3],
replaceE: 'css;.page',
scrollD: 1000
}
@@ -4868,7 +4647,6 @@ function: {
type: 1,
nextL: 'css;a.next_page',
pageE: 'css;ul#post-list-posts > li',
- insertP: ['css;ul#post-list-posts', 3],
replaceE: 'css;#paginator',
scrollD: 1000
}
@@ -4879,7 +4657,6 @@ function: {
type: 1,
nextL: '//a[./span[@class="nav-next"]]',
pageE: 'css;#dle-content > div',
- insertP: ['css;#dle-content > noindex', 1],
replaceE: 'css;.navigation',
scrollD: 1000
}
@@ -4890,7 +4667,6 @@ function: {
type: 1,
nextL: 'css;a#next',
pageE: 'css;.wallpapers_container > div.wall-resp',
- insertP: ['css;div.pagination_container, .wallpapers_container > div.wall-resp+div:not(.wall-resp)', 1],
replaceE: 'css;ul.pagination',
scrollD: 1000
}
@@ -4924,7 +4700,6 @@ function: {
type: 1,
nextL: 'id("pages")/a[contains(text(), "下一页")]',
pageE: 'css;.content > img',
- insertP: ['css;.content', 3],
replaceE: 'css;#pages',
scrollD: 2000
},
@@ -4950,7 +4725,6 @@ function: {
type: 1,
nextL: 'css;.article-paging span.current+a',
pageE: 'css;.article-content > p',
- insertP: ['css;.article-paging', 1],
replaceE: 'css;.article-paging',
scrollD: 3000
}
@@ -4960,7 +4734,6 @@ function: {
type: 1,
nextL: 'css;li.next-page a',
pageE: 'css;#posts > div',
- insertP: ['css;#posts', 3],
replaceE: 'css;.pagination',
scrollD: 1500
},
@@ -4976,7 +4749,6 @@ function: {
type: 1,
nextL: '//div[@class="pagenavi"]/a[contains(string(), "下一页")]',
pageE: 'css;.main-image img',
- insertP: ['css;.main-image a', 3],
replaceE: 'css;.pagenavi',
scrollD: 1500
}
@@ -4986,7 +4758,6 @@ function: {
type: 1,
nextL: 'css;.next.page-numbers',
pageE: 'css;.postlist > ul > li',
- insertP: ['css;.postlist > ul', 3],
replaceE: 'css;.pagination',
scrollD: 1000
},
@@ -5009,7 +4780,6 @@ function: {
type: 1,
nextL: '//div[@class="page"]/a[contains(text(), "后")]',
pageE: 'css;div.img > p > *',
- insertP: ['css;div.img > p', 3],
replaceE: 'css;.page',
scrollD: 2000
}
@@ -5019,7 +4789,6 @@ function: {
type: 1,
nextL: '//div[@class="page"]/a[contains(text(), "下页")]',
pageE: 'css;td >.tp2 > *',
- insertP: ['css;td >.tp2', 3],
replaceE: 'css;.page',
scrollD: 1000
}
@@ -5029,7 +4798,6 @@ function: {
type: 1,
nextL: 'css;.page > a.current+a',
pageE: 'css;.node > *',
- insertP: ['css;.node', 3],
replaceE: 'css;.page',
scrollD: 1000
}
@@ -5043,7 +4811,6 @@ function: {
type: 1,
nextL: '//div[@class="content-page"]/a[contains(text(), "下一页")]',
pageE: 'css;.content-pic img',
- insertP: ['css;.content-pic', 3],
replaceE: 'css;.content-page',
scrollD: 2000
}
@@ -5053,7 +4820,6 @@ function: {
type: 1,
nextL: '//dd[@class="page"]/a[contains(text(), "下一页")]',
pageE: 'css;dl.list-left > dd:not([class="page"])',
- insertP: ['css;.page', 1],
replaceE: 'css;.page',
scrollD: 1000
}
@@ -5067,7 +4833,6 @@ function: {
type: 1,
nextL: '//div[@class="paging"]/a[text()="下一张" or text()="下一页"]',
pageE: 'css;.post-content img',
- insertP: ['css;.post-content', 3],
replaceE: 'css;.paging',
scrollD: 2000
}
@@ -5077,7 +4842,6 @@ function: {
type: 1,
nextL: 'css;#xbtn',
pageE: 'css;#content > article',
- insertP: ['css;#webpage', 1],
replaceE: 'css;#webpage',
scrollD: 2000
},
@@ -5111,7 +4875,6 @@ function: {
type: 1,
nextL: 'id("pages")/a[contains(text(), "下一页")]',
pageE: 'css;#hgallery > img',
- insertP: ['css;#hgallery', 3],
replaceE: 'css;#pages',
scrollD: 1000
}
@@ -5122,7 +4885,6 @@ function: {
type: 1,
nextL: '//div[@class="pagesYY"]//a[contains(text(), "下一页")]',
pageE: 'css;#listdiv > ul > li',
- insertP: ['css;#listdiv > ul', 3],
replaceE: 'css;.pagesYY',
scrollD: 1000
},
@@ -5136,7 +4898,6 @@ function: {
type: 1,
nextL: '//div[@class="pagesYY"]//a[contains(text(), "下一页")]',
pageE: 'css;li.other_girlli',
- insertP: ['//ul[./li[@class="other_girlli"]]', 3],
replaceE: 'css;.pagesYY',
scrollD: 1000
}
@@ -5152,19 +4913,18 @@ function: {
}
}, // 宅男女神 - 文章内
xrmn5: {
- host: 'www.xrmn5.com',
+ host: 'www.xrmn5.cc',
functionS: function() {if (indexOF(/\d+\.html/)) {
curSite = DBSite.xrmn5;
} else if (indexOF('/search')) {
curSite = DBSite.xrmn5_search;
- /*} else {
- curSite = DBSite.xrmn5_list;*/
+ } else {
+ curSite = DBSite.xrmn5_list;
}},
pager: {
type: 1,
nextL: '//div[contains(@class, "page")]//a[contains(text(), "下页")]',
pageE: 'css;.content_left > p > img',
- insertP: ['css;.content_left > p', 3],
replaceE: 'css;.page',
scrollD: 3000
}
@@ -5174,7 +4934,6 @@ function: {
type: 1,
nextL: '//div[contains(@class, "page")]//a[contains(text(), "下页")]',
pageE: 'css;ul.update_area_lists > li',
- insertP: ['css;ul.update_area_lists', 3],
replaceE: 'css;.page',
scrollD: 2000
}
@@ -5184,7 +4943,6 @@ function: {
type: 1,
nextL: 'css;.page a.current+a',
pageE: 'css;div.sousuo',
- insertP: ['//div[contains(@class, "sousuo")][last()]', 4],
replaceE: 'css;.page',
scrollD: 2000
}
@@ -5197,7 +4955,6 @@ function: {
type: 1,
nextL: '//div[@class="page"]/a[text()="下一页"]',
pageE: 'css;.content > img',
- insertP: ['css;.content', 3],
replaceE: 'css;.page',
scrollD: 3000
}
@@ -5207,7 +4964,6 @@ function: {
type: 1,
nextL: '//div[@class="page"]/a[text()="下一页"]',
pageE: 'css;.m-list > ul > li',
- insertP: ['css;.m-list > ul', 3],
replaceE: 'css;.page',
scrollD: 1500
}
@@ -5220,7 +4976,6 @@ function: {
type: 1,
nextL: '//div[@class="article_page"]//a[text()="下一页"]',
pageE: 'css;.ArticleImageBox > *',
- insertP: ['css;.ArticleImageBox', 3],
replaceE: 'css;.article_page',
scrollD: 3000
}
@@ -5230,7 +4985,6 @@ function: {
type: 1,
nextL: '//div[@class="article_page"]//a[text()="下一页"]',
pageE: 'css;.PictureList > ul > li',
- insertP: ['css;.PictureList > ul', 3],
replaceE: 'css;.article_page',
scrollD: 1500
}
@@ -5243,7 +4997,6 @@ function: {
type: 1,
nextL: '//a[@class="page_next"] | //div[@class="article_page"]//a[text()="下一页"]',
pageE: 'css;.pic_center img',
- insertP: ['css;.pic_center', 3],
replaceE: '//div[@class="pages2" or @class="article_page"]',
scrollD: 4000
}
@@ -5253,7 +5006,6 @@ function: {
type: 1,
nextL: () => getCSS('a.page_next').href.replace(/(www.)?ermo.net/, location.host).replace(/http(s)?:/, location.protocol),
pageE: 'css;.channel_list3 > ul > li, ul#container > li',
- insertP: ['css;.channel_list3 > ul, ul#container', 3],
replaceE: 'css;.pages, .list_page',
scrollD: 1000
}
@@ -5448,6 +5200,17 @@ function: {
}
+ // [必应搜索] 的插入前函数(加载网站图标)
+ function bing_bF(pageElems) {
+ pageElems.forEach(function (one) {
+ getAllCSS('div.rms_iac[data-src]').forEach(function (one1) {
+ one1.outerHTML = `
`;
+ })
+ });
+ return pageElems
+ }
+
+
// [头条搜索] 的插入前函数(过滤相关搜索)
function toutiao_bF(pageElems) {
if (getXpath('//div[contains(@class,"-header") and string()="相关搜索"]', pageElems[pageElems.length - 1])) pageElems[pageElems.length - 1].style.display = 'none';
@@ -6429,7 +6192,7 @@ function: {
let newStyle = document.createElement('style'); newStyle.id = 'xiu-scroll';
newStyle.textContent = 'html::-webkit-scrollbar, body::-webkit-scrollbar {width: 0 !important;height: 0 !important;} html, body {scrollbar-width: none !important;}';
if (curSite.pager.insStyle) newStyle.textContent += curSite.pager.insStyle;
- document.lastElementChild.appendChild(newStyle);
+ document.documentElement.appendChild(newStyle);
} else if (delta < 0 && getCSS('#xiu-scroll')) {
getCSS('#xiu-scroll').remove();
}
@@ -6453,7 +6216,7 @@ function: {
}
// 插入 iframe
- document.lastElementChild.appendChild(iframe);
+ document.documentElement.appendChild(iframe);
}
// 翻页类型 6(通过 iframe 获取下一页动态加载内容)
function insIframe_(src) {
@@ -6496,7 +6259,7 @@ function: {
if (document.getElementById('xiu_iframe')) {
iframe.src = src;
} else {
- document.lastElementChild.appendChild(iframe);
+ document.documentElement.appendChild(iframe);
}
}
@@ -6531,7 +6294,7 @@ function: {
pageElems.forEach(function (one) {afterend += one.innerHTML;});
toElement.insertAdjacentHTML(addTo, afterend);
} else {
- if (curSite.pager.insertP[1] === 2 || curSite.pager.insertP[1] === 4) pageElems.reverse(); // 插入到 [元素内头部]、[目标本身后面] 时,需要反转顺序
+ if (curSite.pager.insertP[1] === 2 || curSite.pager.insertP[1] === 4 || curSite.pager.insertP[1] === 5) pageElems.reverse(); // 插入到 [元素内头部]、[目标本身后面] 时,需要反转顺序
pageElems.forEach(function (one) {toElement.insertAdjacentElement(addTo, one);});
}
@@ -6599,14 +6362,15 @@ function: {
let nextNum = getOne(css);
var url = '';
if (nextNum && nextNum.textContent) {
+ nextNum = nextNum.textContent.replaceAll(' ','');
if (location.search) {
if (indexOF(pf, 's')) {
- url = location.search.replace(reg, pf + nextNum.textContent);
+ url = location.search.replace(reg, pf + nextNum);
} else {
- url = location.search + '&' + pf + nextNum.textContent;
+ url = location.search + '&' + pf + nextNum;
}
} else {
- url = '?' + pf + nextNum.textContent;
+ url = '?' + pf + nextNum;
}
url = location.origin + location.pathname + url;
}
@@ -6683,7 +6447,7 @@ function: {
}
// 插入
+ let _html = `
${pageNum._now}
`
- document.body.insertAdjacentHTML('beforeend', _html);
+ document.documentElement.insertAdjacentHTML('beforeend', _html);
if (curSite.pager && curSite.pager.type == 5) window.top.document.xiu_pausePage = pausePage
// 点击事件(临时暂停翻页)
getCSS('#Autopage_number').onclick = function () {
From ac56072e73dec425466e5e11b3eac1038bb47d54 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sun, 28 Nov 2021 13:48:13 +0800
Subject: [PATCH 0004/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E7=BB=B4?=
=?UTF-8?q?=E6=99=AE=E7=BD=91]=E3=80=81[=E4=B8=87=E6=96=B9=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE=E7=9F=A5=E8=AF=86=E6=9C=8D=E5=8A=A1=E5=B9=B3=E5=8F=B0?=
=?UTF-8?q?]=20=E6=94=AF=E6=8C=81;=20=E4=BF=AE=E5=A4=8D=20[=E5=A4=A9?=
=?UTF-8?q?=E6=B6=AF=E7=A4=BE=E5=8C=BA=20-=20=E5=B8=96=E5=AD=90=E5=86=85]?=
=?UTF-8?q?=20=E8=A7=84=E5=88=99;=20=E4=BC=98=E5=8C=96=20=E5=A4=A7?=
=?UTF-8?q?=E9=87=8F=E8=A7=84=E5=88=99;=20=E6=9B=B4=E6=96=B0=20[=E7=A7=80?=
=?UTF-8?q?=E4=BA=BA=E7=BE=8E=E5=A5=B3]=20=E5=9F=9F=E5=90=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 72734ba8e..19ef2c993 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -121,9 +121,11 @@ pager: {
4 = 插入基准元素自身的后面
5 = 插入 pageE 列表最后一个元素的后面(该 insertP 可以直接省略不写,等同于 ['pageE', 5] )
6 = 插入该元素自身内部末尾(针对小说网站等文本类的)
- // 小技巧:例如当 pageE: 'css;ul > li' 且 insertP: ['css;ul', 3] 时(即 insertP 基准元素是 pageE 元素的父元素),是可以省略不写 insertP(实际等同于 ['css;ul > li', 5] )
- 另外当 pageE: 'css;.item' 且 insertP: ['css;.item', 4] 时,也可以省略不写 insertP(实际等同于 ['css;.item', 5] )
- 注意如果 pageE 中选择了多类元素时不能省略 insertP(如包含 ',' '|' 符号)
+ // 小技巧:当基准元素是下一页主体元素的父元素时(或者说要将下一页元素插入到本页同元素最后一个后面时)是可以省略不写 insertP
+ 例如:当 pageE: 'css;ul>li' 且 insertP: ['css;ul', 3] 时,实际等同于 ['css;ul>li', 5]
+ 当 pageE: 'css;.item' 且 insertP: ['css;.item', 4] 时,实际等同于 ['css;.item', 5]
+ 当 pageE: 'css;.item' 且 insertP: ['css;.page', 1] 时,实际等同于 ['css;.item', 5]
+ 注意:如 pageE 中选择了多类元素,则不能省略 insertP(比如包含 `,` 与 `|` 符号)
replaceE: 要替换为下一页内容的元素(比如页码)
scrollD: 翻页动作触发点([滚动条] 与 [网页底部] 之间的距离),数值越大,越早开始翻页,一般是访问网页速度越慢,该值就需要越大
From e68eda85fe0296d79461e7e95543c455ab8a974f Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sun, 28 Nov 2021 15:23:19 +0800
Subject: [PATCH 0005/1615] =?UTF-8?q?=E8=A1=A5=E5=85=85=20[=E5=9B=BD?=
=?UTF-8?q?=E5=AE=B6=E8=87=AA=E7=84=B6=E7=A7=91=E5=AD=A6=E5=9F=BA=E9=87=91?=
=?UTF-8?q?]=20=E5=85=B6=E4=BB=96=E5=9F=9F=E5=90=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 19ef2c993..d66149f11 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 3.8.2
+// @version 3.8.3
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -4269,7 +4269,7 @@ function: {
}
}, // 学术
nsfc: {
- host: 'output.nsfc.gov.cn',
+ host: ['output.nsfc.gov.cn', 'kd.nsfc.gov.cn'],
functionS: function() {if (indexOF('/conclusionProject/')) curSite = DBSite.nsfc;},
insStyle: '#pageNoUl {display: none !important;}',
pager: {
From 9f02a8be1916e8f81b0a7179d869d840406de483 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sun, 28 Nov 2021 15:51:27 +0800
Subject: [PATCH 0006/1615] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20[B=E7=AB=99=20-?=
=?UTF-8?q?=20=E6=90=9C=E7=B4=A2=E9=A1=B5]=20=E9=A1=B5=E7=A0=81=E5=A4=AA?=
=?UTF-8?q?=E5=B0=91=E6=88=96=E6=9C=80=E5=90=8E=E5=87=A0=E9=A1=B5=E6=97=A0?=
=?UTF-8?q?=E6=B3=95=E7=BF=BB=E9=A1=B5=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 | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index d66149f11..3a046013a 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 3.8.3
+// @version 3.8.4
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -5366,11 +5366,12 @@ function: {
// [bilibili_search] 获取下一页地址
function bilibili_search_nextL() {
if (!location.search) return
- let pageActive = 1, pageLast = parseInt(getCSS('li.page-item.last').innerText);
+ let pageActive = 1, pageLast = parseInt(getXpath('//ul[@class="pages"]/li[contains(@class, "page-item")][not(contains(@class, "next") or contains(@class, "prev"))][last()]').innerText);
+ if (!pageLast) return
if (indexOF(/page=\d+/, 's')) {
pageActive = parseInt(/page=\d+/.exec(location.search)[0].replace('page=',''))
}
- if (pageActive <= pageLast) {
+ if (pageActive < pageLast) {
if (indexOF(/page=\d+/, 's')) {
return (location.origin + location.pathname + location.search.replace(/page=\d+/,`page=${pageActive+1}`))
} else {
From 4960f3abbf1a14e1af8950429d3b695271e4e2ca Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Mon, 29 Nov 2021 10:15:03 +0800
Subject: [PATCH 0007/1615] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E5=8A=A0?=
=?UTF-8?q?=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 | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/GithubEnhanced-High-Speed-Download.user.js b/GithubEnhanced-High-Speed-Download.user.js
index a80b7d030..9b39017f5 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.9
+// @version 1.7.0
// @author X.I.U
// @description 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件、项目列表单文件快捷下载 (☁)
// @match *://github.com/*
@@ -36,11 +36,10 @@
}
}
const download_url = [
- ['https://github.91chifun.workers.dev/https://github.com', '美国 1'],
+ ['https://pd.zwc365.com/seturl/https://github.com', '美国 1'],
['https://gh.api.99988866.xyz/https://github.com', '美国 2'],
['https://gh.xiu2.xyz/https://github.com', '美国 3'],
['https://github.rc1844.workers.dev', '美国 4'],
- ['https://pd.zwc365.com/seturl/https://github.com', '美国 5'],
['https://download.fastgit.org', '日本'],
['https://ghproxy.com/https://github.com', '韩国'],
['https://ghproxy.fsou.cc/https://github.com', '香港']
From d8f57754f5a3f91ae100b33c8399c04d376fa843 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Mon, 29 Nov 2021 10:45:33 +0800
Subject: [PATCH 0008/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[Quicker]=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 | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 3a046013a..84e6a8932 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 3.8.4
+// @version 3.8.5
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -4617,6 +4617,19 @@ function: {
scrollD: 1800
}
}, // 文档库
+ getquicker: {
+ host: 'getquicker.net',
+ functionS: function() {if (indexOF('/Share/')) {curSite = DBSite.getquicker;}},
+ pager: {
+ type: 1,
+ nextL: '//a[@class="page-link" and text()="下一页"]',
+ pageE: 'css;table.table > tbody > tr:not(:first-child), script[src^="/js/site.js"]',
+ insertP: ['css;table.table > tbody', 3],
+ replaceE: 'css;ul.pagination',
+ scriptT: 2,
+ scrollD: 1000
+ }
+ }, // Quicker
netbian: {
host: 'pic.netbian.com',
insStyle: 'li.nextpage {display: none !important;}',
From bab8584fd2caa4131dbe917fb5770c08f48d3bf0 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Mon, 29 Nov 2021 11:38:08 +0800
Subject: [PATCH 0009/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[ASK]=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 | 31 ++++++++++++++++++++++---------
1 file changed, 22 insertions(+), 9 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 84e6a8932..85f11ff3e 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 3.8.5
+// @version 3.8.6
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -436,7 +436,7 @@ function: {
pageE: 'css;.results > *',
replaceE: 'css;#pagebar_container',
scriptT: 3,
- scrollD: 1200
+ scrollD: 1500
}
}, // 搜狗 搜索
sogou_weixin: {
@@ -460,7 +460,7 @@ function: {
nextL: 'css;#sogou_next',
pageE: 'css;ul[class*="news-list"] > li',
replaceE: 'css;#pagebar_container',
- scrollD: 1000
+ scrollD: 1200
}
}, // 搜狗微信 - 搜索
toutiao: {
@@ -472,7 +472,7 @@ function: {
nextL: '//div[contains(@class, "-pagination")]/a[contains(string(), "下一页")]',
pageE: 'css;div[class*="-result-list"] > .result-content[data-i]',
replaceE: 'css;div[class*="-pagination"]',
- scrollD: 1200
+ scrollD: 1500
},
function: {
bF: toutiao_bF
@@ -488,7 +488,7 @@ function: {
pageE: 'css;ul.result > li, style:not(src)',
insertP: ['css;ul.result', 3],
replaceE: 'css;#page',
- scrollD: 1200
+ scrollD: 1500
},
function: {
bF: src_bF,
@@ -526,7 +526,7 @@ function: {
pageE: 'css;#search-result > *, style',
insertP: ['css;#search-result', 3],
replaceE: 'css;.pager',
- scrollD: 1500
+ scrollD: 2000
}
}, // Yandex 搜索
yahoo: {
@@ -538,7 +538,7 @@ function: {
nextL: 'css;.pagination a.next',
pageE: 'css;#web ol > li',
replaceE: 'css;.pagination',
- scrollD: 1500
+ scrollD: 2000
}
}, // Yahoo 搜索
yahoo_jp: {
@@ -550,7 +550,7 @@ function: {
nextL: 'css;.Pagenation__next > a',
pageE: 'css;.Contents__innerGroupBody > div',
replaceE: 'css;.Pagenation',
- scrollD: 1500
+ scrollD: 2000
}
}, // Yahoo 搜索 (JP)
qwant: {
@@ -560,7 +560,7 @@ function: {
type: 2,
nextL: 'css;button[data-testid="buttonShowMore"]',
interval: 500,
- scrollD: 1500
+ scrollD: 2000
}
}, // Qwant 搜索
ecosia: {
@@ -585,6 +585,19 @@ function: {
scrollD: 1500
}
}, // Magi 搜索
+ ask: {
+ host: ['ask.com', 'www.ask.com'],
+ functionS: function() {if (lp == '/web') {curSite = DBSite.ask;}},
+ insStyle: '.PartialSearchResults-heading {display: none !important;}',
+ history: true,
+ pager: {
+ type: 1,
+ nextL: 'css;li.PartialWebPagination-next > a',
+ pageE: 'css;.PartialSearchResults.mid',
+ replaceE: 'css;.PartialWebPagination ',
+ scrollD: 2000
+ }
+ }, // ASK 搜索
baidu_tieba: {
host: 'tieba.baidu.com',
functionS: function() {if (lp == '/f') {
From b77b4c76a3160df5224444a08a08033380f54cd4 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Mon, 29 Nov 2021 15:47:08 +0800
Subject: [PATCH 0010/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[Mixkit]?=
=?UTF-8?q?=E3=80=81[=E6=82=AA=E9=AD=94=E3=81=AE=E5=B0=8F=E7=AB=99]=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 | 51 ++++++++++++++++++++++++++++++++++--------------
1 file changed, 36 insertions(+), 15 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 85f11ff3e..df618c926 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 3.8.6
+// @version 3.8.7
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -63,7 +63,7 @@
} else if (menuAll[i][0] === 'menu_discuz_thread_page') { // 帖子内自动翻页 (仅论坛)
- if ([2,4,5,6].indexOf(webType) > -1 || forumWebsite.indexOf(location.host) > -1) {
+ if ([2,4,5,6].indexOf(webType) > -1 || forumWebsite.indexOf(location.hostname) > -1) {
menuId[i] = GM_registerMenuCommand(`${menuAll[i][3]?'✅':'❌'} ${menuAll[i][1]}`, function(){menu_switch(menuAll[i][3], menuAll[i][0], menuAll[i][2])});
}
@@ -361,7 +361,7 @@ function: {
}, // 笔趣阁 模板的小说网站
baidu: {
host: 'www.baidu.com',
- functionS: function() {locationC = true; if (lp == '/s') {curSite = DBSite.baidu;} else if (indexOF('/s')) {location.host = 'm.baidu.com';}},
+ functionS: function() {locationC = true; if (lp == '/s') {curSite = DBSite.baidu;} else if (indexOF('/s')) {location.hostname = 'm.baidu.com';}},
insStyle: '.new-pmd .c-img-border {position: initial !important;} .op-bk-polysemy-video__wrap.c-gap-bottom {display: none !important;}',
history: true,
pager: {
@@ -1684,6 +1684,17 @@ function: {
scrollD: 2000
}
}, // 下得乐
+ Mixkit: {
+ host: 'mixkit.co',
+ functionS: function() {if (location.pathname != '/') {curSite = DBSite.Mixkit;}},
+ pager: {
+ type: 1,
+ nextL: 'css;a.pagination__link--next',
+ pageE: 'css;.item-grid-item',
+ replaceE: 'css;.pagination__wrapper',
+ scrollD: 2000
+ }
+ }, // Mixkit
_3dmgame: {
host: 'www.3dmgame.com',
functionS: function() {
@@ -2397,7 +2408,7 @@ function: {
}, // 萌番组
miobt: {
host: ['miobt.com', 'www.36dm.club'],
- functionS: function() {curSite = DBSite.miobt; if (location.host === 'www.36dm.club') {curSite.pager.scrollD = 1000;}},
+ functionS: function() {curSite = DBSite.miobt; if (location.hostname === 'www.36dm.club') {curSite.pager.scrollD = 1000;}},
pager: {
type: 1,
nextL: '//a[@class="nextprev"][contains(text(), "〉") or contains(text(), "下一页") or contains(text(), "»")]',
@@ -3666,6 +3677,16 @@ function: {
scrollD: 1200
}
}, // 异次元软件 - 评论
+ mubolin: {
+ host: 'www.mubolin.cn',
+ pager: {
+ type: 1,
+ nextL: 'css;a.next.page-numbers',
+ pageE: 'css;#recent-content > div',
+ replaceE: 'css;nav.pagination',
+ scrollD: 1500
+ }
+ }, // 悪魔の小站
mpyit: {
host: 'www.mpyit.com',
functionS: function() {if (lp == '/' && !location.search) {
@@ -4136,7 +4157,7 @@ function: {
cnblogs: {
host: ['www.cnblogs.com', 'zzk.cnblogs.com'],
functionS: function() {
- if (location.host === 'zzk.cnblogs.com') {
+ if (location.hostname === 'zzk.cnblogs.com') {
curSite = DBSite.cnblogs_search;
} else if (getCSS('#post_list')) {
curSite = DBSite.cnblogs_list;
@@ -4531,7 +4552,7 @@ function: {
}, // 脚本 - 讨论页
smzdm: {
host: ['www.smzdm.com', 'search.smzdm.com'],
- functionS: function() {if (location.host === 'search.smzdm.com' || indexOF('/fenlei/')) {
+ functionS: function() {if (location.hostname === 'search.smzdm.com' || indexOF('/fenlei/')) {
curSite = DBSite.smzdm;
}},
pager: {
@@ -5032,7 +5053,7 @@ function: {
kingdom_list: {
pager: {
type: 1,
- nextL: () => getCSS('a.page_next').href.replace(/(www.)?ermo.net/, location.host).replace(/http(s)?:/, location.protocol),
+ nextL: () => getCSS('a.page_next').href.replace(/(www.)?ermo.net/, location.hostname).replace(/http(s)?:/, location.protocol),
pageE: 'css;.channel_list3 > ul > li, ul#container > li',
replaceE: 'css;.pages, .list_page',
scrollD: 1000
@@ -5061,7 +5082,7 @@ function: {
case 6: // < 所有 XenForo 论坛 >
DBSite.xenforo.functionS(); break;
case 100: // < 所有使用 WordPress DUX 主题的网站 >
- DBSite.dux.functionS(); if (location.host === 'apphot.cc') {curSite.pager.scrollD = 2500;}; break;
+ DBSite.dux.functionS(); if (location.hostname === 'apphot.cc') {curSite.pager.scrollD = 2500;}; break;
case 101: // < 所有使用 WordPress XIU 主题的网站 >
DBSite.dux.functionS(); curSite.function = {bF: src_bF, pF: [0, 'img.thumb[data-original]', 'data-original']}; break;
case 102: // < 所有使用 WordPress D8 主题的网站 >
@@ -5502,7 +5523,7 @@ function: {
} else {
let vg_r_data = getCSS('.vg-r-data');
if (vg_r_data) {
- getPageElems_(`https://${location.host}/chapter_num?chapter_id=${vg_r_data.dataset.chapter_num}&ctype=1&type=${vg_r_data.dataset.chapterType};`, 'json', 'GET', '', 'url');
+ getPageElems_(`${location.origin}/chapter_num?chapter_id=${vg_r_data.dataset.chapter_num}&ctype=1&type=${vg_r_data.dataset.chapterType};`, 'json', 'GET', '', 'url');
}
}
}
@@ -6078,7 +6099,7 @@ function: {
if (!DBSite[now].host) continue; // 如果不存在则继续下一个循环
if (Array.isArray(DBSite[now].host)) { // 如果是数组
for (let i of DBSite[now].host) { // 遍历数组
- if (i === location.host) {
+ if (i === location.hostname) {
if (DBSite[now].functionS) {
DBSite[now].functionS();
} else {
@@ -6088,7 +6109,7 @@ function: {
}
}
} else if (DBSite[now].host instanceof RegExp) {
- if (DBSite[now].host.test(location.host)) {
+ if (DBSite[now].host.test(location.hostname)) {
if (self != top) {if (!DBSite[now].iframe) break;} // 如果当前位于 iframe 框架下,就需要判断是否需要执行
if (DBSite[now].functionS) {
DBSite[now].functionS();
@@ -6097,7 +6118,7 @@ function: {
}
support = true; break; // 如果找到了就退出循环
}
- } else if (DBSite[now].host === location.host) {
+ } else if (DBSite[now].host === location.hostname) {
if (self != top) {if (!DBSite[now].iframe) break;} // 如果当前位于 iframe 框架下,就需要判断是否需要执行
if (DBSite[now].functionS) {
DBSite[now].functionS();
@@ -6616,14 +6637,14 @@ function: {
function check() { // 存在返回真,不存在返回假
let list = GM_getValue('menu_disable'); // 读取网站列表
- if (list.indexOf(location.host) === -1) return false // 不存在返回假
+ if (list.indexOf(location.hostname) === -1) return false // 不存在返回假
return true
}
function add() {
if (check()) return
let list = GM_getValue('menu_disable'); // 读取网站列表
- list.push(location.host); // 追加网站域名
+ list.push(location.hostname); // 追加网站域名
GM_setValue('menu_disable', list); // 写入配置
location.reload(); // 刷新网页
}
@@ -6631,7 +6652,7 @@ function: {
function del() {
if (!check()) return
let list = GM_getValue('menu_disable'), // 读取网站列表
- index = list.indexOf(location.host);
+ index = list.indexOf(location.hostname);
list.splice(index, 1); // 删除网站域名
GM_setValue('menu_disable', list); // 写入配置
location.reload(); // 刷新网页
From da5381f8a8d965ac393fdbc14e086a43ef52a456 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Mon, 29 Nov 2021 16:30:33 +0800
Subject: [PATCH 0011/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E7=90=89?=
=?UTF-8?q?=E7=92=83=E7=A5=9E=E7=A4=BE]=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 | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index df618c926..5a572f9b5 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 3.8.7
+// @version 3.8.8
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -2387,6 +2387,17 @@ function: {
aF: function() {document.body.appendChild(document.createElement('script')).textContent = `$('#topic_list > tbody > tr:even:not(.even):not(.odd)').addClass('even'); $('#topic_list > tbody > tr:odd:not(.even):not(.odd)').addClass('odd');`;}
}
}, // 动漫花园
+ hacg: {
+ host: 'www.hacg.cat',
+ functionS: function() {if (indexOF('/wp/') && !indexOF(/\d+\.html/)) curSite = DBSite.hacg},
+ pager: {
+ type: 1,
+ nextL: 'css;a.nextpostslink',
+ pageE: 'css;article[id^="post-"]',
+ replaceE: 'css;.wp-pagenavi',
+ scrollD: 1500
+ }
+ }, // 琉璃神社
futaacg: {
host: 'futaacg.com',
pager: {
From d451739afe84c031729ff318acb979d3b57a868a Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Mon, 29 Nov 2021 21:32:32 +0800
Subject: [PATCH 0012/1615] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[Xiuno=20-=20?=
=?UTF-8?q?=E5=B8=96=E5=AD=90=E5=86=85]=20=E8=A7=84=E5=88=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 5a572f9b5..a7c1b8ba5 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 3.8.8
+// @version 3.8.9
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -299,7 +299,7 @@ function: {
}},
pager: {
type: 1,
- nextL: '//li/a[contains(text(), "▶")]',
+ nextL: '//li[@class="page-item"]/a[text()="▶"]',
pageE: 'css;ul.threadlist > li',
replaceE: 'css;ul.pagination',
scrollD: 1500
@@ -308,8 +308,8 @@ function: {
xiuno_post: {
pager: {
type: 1,
- nextL: '//li/a[contains(text(), "▶")]',
- pageE: '(//ul[contains(@class, "postlist")][./li[@data-uid]])[last()]/li',
+ nextL: '//li[@class="page-item"]/a[text()="▶"]',
+ pageE: 'css;li.post[data-pid]:not(.newpost)',
replaceE: 'css;ul.pagination',
scrollD: 1500
}
@@ -6639,7 +6639,7 @@ function: {
function menu_disable(type) {
switch(type) {
case 'check':
- if(check()) {return true;} else {return false;}; break;
+ return check(); break;
case 'add':
add(); break;
case 'del':
@@ -6647,8 +6647,7 @@ function: {
}
function check() { // 存在返回真,不存在返回假
- let list = GM_getValue('menu_disable'); // 读取网站列表
- if (list.indexOf(location.hostname) === -1) return false // 不存在返回假
+ if (GM_getValue('menu_disable').indexOf(location.hostname) == -1) return false // 不存在返回假
return true
}
From 9a7fc78d448c7f2289db139abf822a4ffd01c36f Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Mon, 29 Nov 2021 23:31:10 +0800
Subject: [PATCH 0013/1615] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[Xiuno=20-=20?=
=?UTF-8?q?=E5=B8=96=E5=AD=90=E5=86=85]=20=E8=A7=84=E5=88=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index a7c1b8ba5..c6e5da616 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 3.8.9
+// @version 3.9.0
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -291,12 +291,7 @@ function: {
}
}, // XenForo 论坛 - 搜索页
xiuno: {
- functionS: function() {if (lp == '/' || indexOF(/\/(index|forum)/)) {
- curSite = DBSite.xiuno;
- } else if (indexOF('/thread') && GM_getValue('menu_discuz_thread_page')) {
- curSite = DBSite.xiuno_post;
- if (getCSS('ul.postlist > li.newpost')) curSite.pager.insertP = ['(//ul[contains(@class, "postlist")][./li[contains(@class, "newpost")]])[last()]', 1]; // 有的带回复框,需要插入到前面
- }},
+ functionS: function() {if (lp == '/' || indexOF(/\/(index|forum)/)) {curSite = DBSite.xiuno;} else if (indexOF('/thread') && GM_getValue('menu_discuz_thread_page')) {curSite = DBSite.xiuno_post;}},
pager: {
type: 1,
nextL: '//li[@class="page-item"]/a[text()="▶"]',
From f847c5c9b6eb93224fc4ea8018f466f02f06be8d Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Tue, 30 Nov 2021 00:03:54 +0800
Subject: [PATCH 0014/1615] README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index e2a1d9e12..fe87db994 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@
> 也可以前往 GreasyFork 脚本页向我反馈,如果这两个网站你都没有账号,可以找个[临时邮箱](https://linshiyouxiang.cn/)注册下(用完扔~
-> _分享我的其他开源项目:[**TrackersList.com** - 全网热门 BT Tracker 列表!有效提高 BT 下载速度~](https://github.com/XIU2/TrackersListCollection)
_
+> _分享我其他开源项目:[**TrackersList.com** - 全网热门 BT Tracker 列表!有效提高 BT 下载速度~](https://github.com/XIU2/TrackersListCollection)
_
> _[**CloudflareSpeedTest** - 🌩 测试 Cloudflare CDN 延迟和速度,获取最快 IP (IPv4+IPv6)!](https://github.com/XIU2/CloudflareSpeedTest)
_
## 脚本列表
From 95e24ae2b1000d133b6e923126e6f33b05f3d913 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Tue, 30 Nov 2021 00:30:24 +0800
Subject: [PATCH 0015/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[36=E6=B0=AA]=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 | 909 ++++++++++++++++++++++++-----------------------
1 file changed, 464 insertions(+), 445 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index c6e5da616..c4802d3b2 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 3.9.0
+// @version 3.9.1
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -1286,26 +1286,6 @@ function: {
scrollD: 2000
}
}, // CPC 中文印刷社区 - 帖子内
- ablesci: {
- host: 'www.ablesci.com',
- functionS: function() {if (indexOF('/detail') && GM_getValue('menu_discuz_thread_page')) {curSite = DBSite.ablesci_p;} else if (getCSS('ul.fly-list')) {curSite = DBSite.ablesci;}},
- pager: {
- type: 1,
- nextL: 'css;li.next > a',
- pageE: 'css;ul.fly-list > li',
- replaceE: 'css;.pages',
- scrollD: 2000
- }
- }, // 科研通
- ablesci_p: {
- pager: {
- type: 1,
- nextL: 'css;li.next > a',
- pageE: 'css;ul#jieda > li',
- replaceE: 'css;.pages',
- scrollD: 2000
- }
- }, // 科研通 - 帖子内
adnmb3: {
host: ['adnmb3.com', 'www.tnmb.org'],
functionS: function() {
@@ -1361,42 +1341,6 @@ function: {
scrollD: 2500
}
}, // A 岛 - 帖子内(手机版)
- guokr: {
- host: 'www.guokr.com',
- pager: {
- type: 2,
- nextL: 'css;div[class*="LoadMoreWrap"]',
- interval: 1500,
- scrollD: 1500
- }
- }, // 果壳网
- expreview: {
- host: 'www.expreview.com',
- pager: {
- type: 2,
- nextL: 'css;#show_article_red_1SHOW',
- interval: 1500,
- scrollD: 1500
- }
- }, // 超能网
- landian: {
- host: 'www.landian.vip',
- pager: {
- type: 2,
- nextL: 'css;.load-more > button',
- nextText: '加载更多',
- scrollD: 1300
- }
- }, // 蓝点网
- ithome: {
- host: 'www.ithome.com',
- pager: {
- type: 2,
- nextL: 'css;a.more',
- interval: 1500,
- scrollD: 1500
- }
- }, // IT 之家
pixiv: {
host: 'www.pixiv.net',
functionS: function() {locationC = true;
@@ -3848,203 +3792,190 @@ function: {
scrollD: 1500
}
},
- gitee: {
- host: 'gitee.com',
- functionS: function() {
- if (indexOF('/explore/')) {
- curSite = DBSite.gitee;
- } else if (indexOF(/\/issues$/)) {
- curSite = DBSite.gitee_issues;
- } else if (indexOF(/\/releases/)) {
- curSite = DBSite.gitee_releases;
- } else if (indexOF(/\/tags/)) {
- curSite = DBSite.gitee_tags;
- }
- if (curSite.SiteTypeID > 0 && !curSite.pager.nextL) {
- curSite.pager.type = 1;
- curSite.pager.nextL = 'css;a[rel="next"]';
- curSite.pager.replaceE = 'css;.pagination';
- curSite.pager.scrollD = 2500;
- }
- },
+ acs: {
+ host: ['pubs.acs.org','onlinelibrary.wiley.com'],
+ functionS: function() {if (indexOF('/doSearch')) {curSite = DBSite.acs;}},
+ history: true,
pager: {
- pageE: 'css;.items > .item',
+ type: 1,
+ nextL: 'css;a.pagination__btn--next',
+ pageE: 'css;ul.items-results > *',
+ replaceE: 'css;.pagination',
+ scrollD: 3000
}
- }, // Gitee - Explore 列表
- gitee_issues: {
+ }, // Wiley Online Library + ACS (Publications)
+ libgen: {
+ host: /libgen/,
+ functionS: function() {if (lp == '/search.php') {curSite = DBSite.libgen;}},
+ history: true,
pager: {
- pageE: 'css;.issue-wrapper',
+ type: 1,
+ nextL: '//font/a[contains(text(), "►")]',
+ pageE: 'css;table[rules="rows"] > tbody > tr:nth-of-type(n+2), .paginator+script:not([src])',
+ insertP: ['css;table[rules="rows"] > tbody', 3],
+ replaceE: '//td[./font/a[contains(text(), "►")]]',
+ scriptT: 2,
+ scrollD: 2000
}
- }, // Gitee - Issues 列表
- gitee_releases: {
+ }, // Library Genesis
+ sciencedirect: {
+ host: 'www.sciencedirect.com',
+ functionS: function() {locationC = true; if (lp == '/search') {curSite = DBSite.sciencedirect; setTimeout(function(){insStyle('html, body {height: ' + (document.documentElement.scrollHeight || document.body.scrollHeight) + 'px;}')}, 2000)}},
+ insStyle: 'footer {display: none !important;}',
+ history: true,
+ iframe: true,
pager: {
- pageE: 'css;.release-tag-item',
+ type: 5,
+ nextL: 'css;a[data-aa-name="srp-next-page"]',
+ scrollD: 2000
}
- }, // Gitee - Releases 列表
- gitee_tags: {
+ }, // ScienceDirect
+ pubmed: {
+ host: 'pubmed.ncbi.nlm.nih.gov',
pager: {
- pageE: 'css;.tag-item',
+ type: 2,
+ nextL: 'css;button.load-button.next-page',
+ nextText: 'Show more results',
+ scrollD: 1500
}
- }, // Gitee - Tags 列表
- gitee_search: {
- host: 'search.gitee.com',
- functionS: function() {if (location.search) curSite = DBSite.gitee_search;},
+ }, // PubMed
+ x_mol: {
+ host: 'www.x-mol.com',
+ functionS: function() {if (indexOF('/search/q') || indexOF('/paper/')) {curSite = DBSite.x_mol;}},
+ history: true,
pager: {
type: 1,
- nextL: 'css;li.next:not(.disabled) > a',
- pageE: 'css;#hits-list > div',
- replaceE: 'css;ul.pagination',
- scrollD: 1000
+ nextL: () => getNextP('css;.pagination li.active+li > a', 'pageIndex=', /pageIndex=\d+/),
+ pageE: 'css;.magazine-senior-search-results-list > ul > li, .magazine-model-content-new > ul > li',
+ insertP: ['css;.magazine-senior-search-results-list > ul, .magazine-model-content-new > ul', 3],
+ replaceE: 'css;.pagination',
+ scrollD: 2000
}
- }, // Gitee - Search 列表
- github_star: {
- host: 'github.com',
- functionS: function() {locationC = true;
- if (indexOF('tab=stars', 's')) {
- curSite = DBSite.github_star;
- } else if (indexOF(/\/issues$/) || indexOF(/\/pulls$/)) {
- curSite = DBSite.github_issues;
- } else if (indexOF(/\/discussions$/) || indexOF('/discussions/categories')) {
- curSite = DBSite.github_discussions;
- } else if (indexOF(/\/releases$/)) {
- curSite = DBSite.github_releases;
- } else if (indexOF(/\/tags$/)) {
- curSite = DBSite.github_tags;
- } else if (indexOF('/commits')) {
- curSite = DBSite.github_commits;
- } else if (indexOF('/notifications')) {
- curSite = DBSite.github_notifications;
- } else if (indexOF('/search')) {
- if (!location.search) return
- if (!indexOF('type=', 's')) {
- if (lp == '/search') {
- curSite = DBSite.github_search_repositories;
- } else {
- curSite = DBSite.github_search_code;
- }
- } else {
- curSite = DBSite['github_search_' + /type=[a-z]+/.exec(location.search.toLowerCase())[0].replace('type=','')];
- }
- if (curSite.SiteTypeID > 0 && !curSite.pager.nextL) {
- curSite.pager.type = 1;
- curSite.pager.nextL = 'css;a.next_page';
- curSite.pager.replaceE = 'css;.pagination';
- curSite.pager.scrollD = 3000;
- }
- }},
+ }, // X-MOL
+ cqvip: {
+ host: 'www.cqvip.com',
+ functionS: function() {if (indexOF('/search')) {curSite = DBSite.cqvip;}},
+ history: true,
pager: {
- type: 1,
- nextL: '//div[@class="paginate-container"]//a[contains(text(), "Next")]',
- pageE: 'css;#js-pjax-container .position-relative div[class^="col-lg-"] > div:not(.position-relative):not(.paginate-container)',
- insertP: ['css;.paginate-container', 1],
- replaceE: 'css;.paginate-container',
- scrollD: 3000
+ type: 6,
+ nextL: '//ul[@class="pagenum"]//a[text()="下一页"]',
+ pageE: 'css;ul.prolist:last-child > li',
+ replaceE: 'css;ul.pagenum',
+ loadTime: 1000,
+ scrollD: 2000
}
- }, // Github - 用户 Star 列表
- github_issues: {
+ }, // 维普网
+ ablesci: {
+ host: 'www.ablesci.com',
+ functionS: function() {if (indexOF('/detail') && GM_getValue('menu_discuz_thread_page')) {curSite = DBSite.ablesci_p;} else if (getCSS('ul.fly-list')) {curSite = DBSite.ablesci;}},
pager: {
type: 1,
- nextL: 'css;a.next_page',
- pageE: 'css;.js-navigation-container.js-active-navigation-container > div[id^="issue_"]',
- replaceE: 'css;.pagination',
- scrollD: 3000
+ nextL: 'css;li.next > a',
+ pageE: 'css;ul.fly-list > li',
+ replaceE: 'css;.pages',
+ scrollD: 2000
}
- }, // Github - Issues 列表 / PR 列表
- github_discussions: {
+ }, // 科研通
+ ablesci_p: {
pager: {
type: 1,
- nextL: 'css;a.next_page',
- pageE: 'css;#repo-content-pjax-container div[data-discussion-hovercards-enabled] > div',
- replaceE: 'css;.pagination',
- scrollD: 3000
+ nextL: 'css;li.next > a',
+ pageE: 'css;ul#jieda > li',
+ replaceE: 'css;.pages',
+ scrollD: 2000
}
- }, // Github - Discussions 列表
- github_releases: {
+ }, // 科研通 - 帖子内
+ google_scholar: {
pager: {
type: 1,
- nextL: 'css;a.next_page',
- pageE: 'css;#repo-content-pjax-container > div[data-pjax] > div:not(.paginate-container)',
- replaceE: 'css;.pagination',
- scrollD: 3000
+ nextL: '//a[./span[contains(@class, "next")]]',
+ pageE: 'css;#gs_res_ccl_mid > *',
+ replaceE: 'id("gs_n")',
+ scriptT: 1,
+ scrollD: 2000
}
- }, // Github - Releases 列表
- github_tags: {
+ }, // 谷歌学术
+ bing_academic: {
+ insStyle: 'li.aca_algo_count {display: none !important;}',
pager: {
type: 1,
- nextL: '//div[@class="pagination"]/a[contains(text(), "Next")]',
- pageE: 'css;.Box-body > div.Box-row',
- replaceE: 'css;.pagination',
- scrollD: 3000
+ nextL: 'css;a.sb_pagN',
+ pageE: 'css;#b_results > li.aca_algo',
+ replaceE: 'css;#b_results .b_pag',
+ scrollD: 1000
}
- }, // Github - Tags 列表
- github_commits: {
+ }, // 必应学术
+ baidu_xueshu: {
+ host: 'xueshu.baidu.com',
+ functionS: function() {if (lp == '/s') {
+ curSite = DBSite.baidu_xueshu;
+ } else if (indexOF('journal/navigation')) {
+ curSite = DBSite.baidu_xueshu_journal;
+ } else if (indexOF('paper/show')) {
+ curSite = DBSite.baidu_xueshu_paper;
+ }},
+ history: true,
pager: {
type: 1,
- nextL: '//div[@class="paginate-container"]//a[contains(text(), "Older")]',
- pageE: 'css;div.js-navigation-container > div',
- replaceE: 'css;.paginate-container',
- scrollD: 3000
+ nextL: 'id("page")/a[./i[@class="c-icon-pager-next"]]',
+ pageE: 'css;#bdxs_result_lists > div.result',
+ replaceE: 'css;#page',
+ scrollD: 1000
}
- }, // Github - Commits 列表
- github_notifications: {
+ }, // 百度学术
+ baidu_xueshu_journal: {
+ history: true,
pager: {
type: 1,
- nextL: 'css;nav.paginate-container > a[aria-label="Next"]',
- pageE: 'css;li.notifications-list-item',
- replaceE: 'css;nav.paginate-container, .js-notifications-list-paginator-counts',
- scrollD: 3000
- }
- }, // Github - Notifications 列表
- github_search_repositories: {
- pager: {
- pageE: 'css;ul.repo-list > li',
- }
- }, //Github - Search 列表
- github_search_code: {
- pager: {
- pageE: 'css;.code-list-item',
- }
- }, // Github - Search 列表 - Code
- github_search_commits: {
- pager: {
- pageE: 'css;#commit_search_results > div',
- }
- }, // Github - Search 列表 - Commit
- github_search_issues: {
- pager: {
- pageE: 'css;.issue-list-item',
- }
- }, // Github - Search 列表 - Issues
- github_search_discussions: {
- pager: {
- pageE: 'css;.discussion-list-item',
- }
- }, // Github - Search 列表 - Discussions
- github_search_registrypackages: {
- pager: {
- pageE: 'css;#package_search_results > div',
+ nextL: 'css;a.res-page-next',
+ pageE: 'css;#journaldetail > div',
+ replaceE: 'css;.res-page',
+ scrollD: 1000
}
- }, // Github - Search 列表 - Package
- github_search_marketplace: {
+ }, // 百度学术
+ baidu_xueshu_paper: {
pager: {
- pageE: 'css;#marketplace_search_results > div:first-child > div',
+ type: 2,
+ nextL: 'css;div:not([style*="display: none"]) > .more_btn',
+ nextText: '加载更多',
+ scrollD: 1000
}
- }, // Github - Search 列表 - Marketplace
- github_search_topics: {
+ }, // 百度学术
+ so_xueshu: {
+ host: 'xueshu.so.com',
+ functionS: function() {if (lp == '/s') {curSite = DBSite.so_xueshu;}},
pager: {
- pageE: 'css;.topic-list-item',
+ type: 1,
+ nextL: 'css;a#snext',
+ pageE: 'css;ul.list > li',
+ replaceE: 'css;#page',
+ scrollD: 1000
}
- }, // Github - Search 列表 - Topics
- github_search_wikis: {
+ }, // 360 学术
+ wanfangdata: {
+ host: 's.wanfangdata.com.cn',
+ functionS: function() {locationC = true; curSite = DBSite.wanfangdata;},
+ insStyle: '#zkFooter {display: none !important;}',
+ history: true,
+ iframe: true,
pager: {
- pageE: 'css;#wiki_search_results > div:first-child > div',
+ type: 5,
+ nextL: () => getNextP('css;.pager.active+span.pager', 'p=', /p=\d+/),
+ scrollD: 2000
}
- }, // Github - Search 列表 - wiki
- github_search_users: {
+ }, // 万方数据知识服务平台
+ nsfc: {
+ host: ['output.nsfc.gov.cn', 'kd.nsfc.gov.cn'],
+ functionS: function() {if (indexOF('/conclusionProject/')) curSite = DBSite.nsfc;},
+ insStyle: '#pageNoUl {display: none !important;}',
pager: {
- pageE: 'css;#user_search_results > div:first-child > div',
+ type: 4,
+ nextL: nsfc_nextL,
+ insertP: ['css;#pageNoUl', 1],
+ insertE: nsfc_insertE,
+ scrollD: 1500
}
- }, // Github - Search 列表 - user
+ }, // 国家自然科学基金
stackoverflow: {
host: 'stackoverflow.com',
functionS: function() {if (indexOF('/questions')) {
@@ -4201,279 +4132,318 @@ function: {
scrollD: 1000
}
}, // 博客园 - 搜索页
- zhutix: {
- host: 'zhutix.com',
- functionS: function() {if (getCSS('#post-list')) {
- curSite = DBSite.zhutix;
- } else {
- curSite = DBSite.zhutix_list;
- }},
+ gitee: {
+ host: 'gitee.com',
+ functionS: function() {
+ if (indexOF('/explore/')) {
+ curSite = DBSite.gitee;
+ } else if (indexOF(/\/issues$/)) {
+ curSite = DBSite.gitee_issues;
+ } else if (indexOF(/\/releases/)) {
+ curSite = DBSite.gitee_releases;
+ } else if (indexOF(/\/tags/)) {
+ curSite = DBSite.gitee_tags;
+ }
+ if (curSite.SiteTypeID > 0 && !curSite.pager.nextL) {
+ curSite.pager.type = 1;
+ curSite.pager.nextL = 'css;a[rel="next"]';
+ curSite.pager.replaceE = 'css;.pagination';
+ curSite.pager.scrollD = 2500;
+ }
+ },
pager: {
- type: 1,
- nextL: '//li[@class="next-page"]/a | //div[@class="btn-pager"]/a[contains(text(), "❯")]',
- pageE: 'css;#post-list > ul > li',
- replaceE: 'css;.pagination, .b2-pagenav.post-nav',
- scrollD: 1500
+ pageE: 'css;.items > .item',
}
- }, // 致美化
- zhutix_list: {
+ }, // Gitee - Explore 列表
+ gitee_issues: {
pager: {
- type: 1,
- nextL: 'css;li.next-page a',
- pageE: 'css;#primary-home > div:not(.pagination)',
- replaceE: 'css;.pagination',
- scrollD: 1500
+ pageE: 'css;.issue-wrapper',
}
- }, // 致美化 - 文章列表
- lanzou: {
- host: /\.lanzou[a-z]\./,
- hiddenPN: true,
+ }, // Gitee - Issues 列表
+ gitee_releases: {
pager: {
- type: 2,
- nextL: 'css;#filemore',
- nextTextOf: '更多',
- isHidden: true,
- scrollD: 800
+ pageE: 'css;.release-tag-item',
}
- }, // 蓝奏云 - 分享链接列表
- lanzou_: {
- host: 'pc.woozooo.com',
- iframe: true,
- hiddenPN: true,
+ }, // Gitee - Releases 列表
+ gitee_tags: {
pager: {
- type: 2,
- nextL: 'css;#filemore > span[onclick]',
- nextText: '显示更多文件',
- isHidden: true,
- scrollD: 800
+ pageE: 'css;.tag-item',
}
- }, // 蓝奏云 - 后台
- libgen: {
- host: /libgen/,
- functionS: function() {if (lp == '/search.php') {curSite = DBSite.libgen;}},
- history: true,
+ }, // Gitee - Tags 列表
+ gitee_search: {
+ host: 'search.gitee.com',
+ functionS: function() {if (location.search) curSite = DBSite.gitee_search;},
pager: {
type: 1,
- nextL: '//font/a[contains(text(), "►")]',
- pageE: 'css;table[rules="rows"] > tbody > tr:nth-of-type(n+2), .paginator+script:not([src])',
- insertP: ['css;table[rules="rows"] > tbody', 3],
- replaceE: '//td[./font/a[contains(text(), "►")]]',
- scriptT: 2,
- scrollD: 2000
+ nextL: 'css;li.next:not(.disabled) > a',
+ pageE: 'css;#hits-list > div',
+ replaceE: 'css;ul.pagination',
+ scrollD: 1000
}
- }, // 学术
- pubmed: {
- host: 'pubmed.ncbi.nlm.nih.gov',
+ }, // Gitee - Search 列表
+ github_star: {
+ host: 'github.com',
+ functionS: function() {locationC = true;
+ if (indexOF('tab=stars', 's')) {
+ curSite = DBSite.github_star;
+ } else if (indexOF(/\/issues$/) || indexOF(/\/pulls$/)) {
+ curSite = DBSite.github_issues;
+ } else if (indexOF(/\/discussions$/) || indexOF('/discussions/categories')) {
+ curSite = DBSite.github_discussions;
+ } else if (indexOF(/\/releases$/)) {
+ curSite = DBSite.github_releases;
+ } else if (indexOF(/\/tags$/)) {
+ curSite = DBSite.github_tags;
+ } else if (indexOF('/commits')) {
+ curSite = DBSite.github_commits;
+ } else if (indexOF('/notifications')) {
+ curSite = DBSite.github_notifications;
+ } else if (indexOF('/search')) {
+ if (!location.search) return
+ if (!indexOF('type=', 's')) {
+ if (lp == '/search') {
+ curSite = DBSite.github_search_repositories;
+ } else {
+ curSite = DBSite.github_search_code;
+ }
+ } else {
+ curSite = DBSite['github_search_' + /type=[a-z]+/.exec(location.search.toLowerCase())[0].replace('type=','')];
+ }
+ if (curSite.SiteTypeID > 0 && !curSite.pager.nextL) {
+ curSite.pager.type = 1;
+ curSite.pager.nextL = 'css;a.next_page';
+ curSite.pager.replaceE = 'css;.pagination';
+ curSite.pager.scrollD = 3000;
+ }
+ }},
pager: {
- type: 2,
- nextL: 'css;button.load-button.next-page',
- nextText: 'Show more results',
- scrollD: 1500
+ type: 1,
+ nextL: '//div[@class="paginate-container"]//a[contains(text(), "Next")]',
+ pageE: 'css;#js-pjax-container .position-relative div[class^="col-lg-"] > div:not(.position-relative):not(.paginate-container)',
+ insertP: ['css;.paginate-container', 1],
+ replaceE: 'css;.paginate-container',
+ scrollD: 3000
}
- }, // 学术
- acs: {
- host: ['pubs.acs.org','onlinelibrary.wiley.com'],
- functionS: function() {if (indexOF('/doSearch')) {curSite = DBSite.acs;}},
- history: true,
+ }, // Github - 用户 Star 列表
+ github_issues: {
pager: {
type: 1,
- nextL: 'css;a.pagination__btn--next',
- pageE: 'css;ul.items-results > *',
+ nextL: 'css;a.next_page',
+ pageE: 'css;.js-navigation-container.js-active-navigation-container > div[id^="issue_"]',
replaceE: 'css;.pagination',
scrollD: 3000
}
- }, // 学术
- x_mol: {
- host: 'www.x-mol.com',
- functionS: function() {if (indexOF('/search/q') || indexOF('/paper/')) {curSite = DBSite.x_mol;}},
- history: true,
+ }, // Github - Issues 列表 / PR 列表
+ github_discussions: {
pager: {
type: 1,
- nextL: () => getNextP('css;.pagination li.active+li > a', 'pageIndex=', /pageIndex=\d+/),
- pageE: 'css;.magazine-senior-search-results-list > ul > li, .magazine-model-content-new > ul > li',
- insertP: ['css;.magazine-senior-search-results-list > ul, .magazine-model-content-new > ul', 3],
+ nextL: 'css;a.next_page',
+ pageE: 'css;#repo-content-pjax-container div[data-discussion-hovercards-enabled] > div',
replaceE: 'css;.pagination',
- scrollD: 2000
+ scrollD: 3000
}
- }, // 学术
- sciencedirect: {
- host: 'www.sciencedirect.com',
- functionS: function() {locationC = true; if (lp == '/search') {curSite = DBSite.sciencedirect; setTimeout(function(){insStyle('html, body {height: ' + (document.documentElement.scrollHeight || document.body.scrollHeight) + 'px;}')}, 2000)}},
- insStyle: 'footer {display: none !important;}',
- history: true,
- iframe: true,
+ }, // Github - Discussions 列表
+ github_releases: {
pager: {
- type: 5,
- nextL: 'css;a[data-aa-name="srp-next-page"]',
- scrollD: 2000
+ type: 1,
+ nextL: 'css;a.next_page',
+ pageE: 'css;#repo-content-pjax-container > div[data-pjax] > div:not(.paginate-container)',
+ replaceE: 'css;.pagination',
+ scrollD: 3000
}
- }, // 学术
- nsfc: {
- host: ['output.nsfc.gov.cn', 'kd.nsfc.gov.cn'],
- functionS: function() {if (indexOF('/conclusionProject/')) curSite = DBSite.nsfc;},
- insStyle: '#pageNoUl {display: none !important;}',
+ }, // Github - Releases 列表
+ github_tags: {
pager: {
- type: 4,
- nextL: nsfc_nextL,
- insertP: ['css;#pageNoUl', 1],
- insertE: nsfc_insertE,
- scrollD: 1500
+ type: 1,
+ nextL: '//div[@class="pagination"]/a[contains(text(), "Next")]',
+ pageE: 'css;.Box-body > div.Box-row',
+ replaceE: 'css;.pagination',
+ scrollD: 3000
}
- }, // 国家自然科学基金
- cqvip: {
- host: 'www.cqvip.com',
- functionS: function() {if (indexOF('/search')) {curSite = DBSite.cqvip;}},
- history: true,
+ }, // Github - Tags 列表
+ github_commits: {
pager: {
- type: 6,
- nextL: '//ul[@class="pagenum"]//a[text()="下一页"]',
- pageE: 'css;ul.prolist:last-child > li',
- replaceE: 'css;ul.pagenum',
- loadTime: 1000,
- scrollD: 2000
+ type: 1,
+ nextL: '//div[@class="paginate-container"]//a[contains(text(), "Older")]',
+ pageE: 'css;div.js-navigation-container > div',
+ replaceE: 'css;.paginate-container',
+ scrollD: 3000
}
- }, // 维普网
- wanfangdata: {
- host: 's.wanfangdata.com.cn',
- functionS: function() {locationC = true; curSite = DBSite.wanfangdata;},
- insStyle: '#zkFooter {display: none !important;}',
- history: true,
- iframe: true,
+ }, // Github - Commits 列表
+ github_notifications: {
+ pager: {
+ type: 1,
+ nextL: 'css;nav.paginate-container > a[aria-label="Next"]',
+ pageE: 'css;li.notifications-list-item',
+ replaceE: 'css;nav.paginate-container, .js-notifications-list-paginator-counts',
+ scrollD: 3000
+ }
+ }, // Github - Notifications 列表
+ github_search_repositories: {
+ pager: {
+ pageE: 'css;ul.repo-list > li',
+ }
+ }, //Github - Search 列表
+ github_search_code: {
+ pager: {
+ pageE: 'css;.code-list-item',
+ }
+ }, // Github - Search 列表 - Code
+ github_search_commits: {
+ pager: {
+ pageE: 'css;#commit_search_results > div',
+ }
+ }, // Github - Search 列表 - Commit
+ github_search_issues: {
+ pager: {
+ pageE: 'css;.issue-list-item',
+ }
+ }, // Github - Search 列表 - Issues
+ github_search_discussions: {
+ pager: {
+ pageE: 'css;.discussion-list-item',
+ }
+ }, // Github - Search 列表 - Discussions
+ github_search_registrypackages: {
+ pager: {
+ pageE: 'css;#package_search_results > div',
+ }
+ }, // Github - Search 列表 - Package
+ github_search_marketplace: {
pager: {
- type: 5,
- nextL: () => getNextP('css;.pager.active+span.pager', 'p=', /p=\d+/),
- scrollD: 2000
+ pageE: 'css;#marketplace_search_results > div:first-child > div',
}
- }, // 万方数据知识服务平台
- google_scholar: {
+ }, // Github - Search 列表 - Marketplace
+ github_search_topics: {
pager: {
- type: 1,
- nextL: '//a[./span[contains(@class, "next")]]',
- pageE: 'css;#gs_res_ccl_mid > *',
- replaceE: 'id("gs_n")',
- scriptT: 1,
- scrollD: 2000
+ pageE: 'css;.topic-list-item',
}
- }, // 谷歌学术
- bing_academic: {
- insStyle: 'li.aca_algo_count {display: none !important;}',
+ }, // Github - Search 列表 - Topics
+ github_search_wikis: {
pager: {
- type: 1,
- nextL: 'css;a.sb_pagN',
- pageE: 'css;#b_results > li.aca_algo',
- replaceE: 'css;#b_results .b_pag',
- scrollD: 1000
+ pageE: 'css;#wiki_search_results > div:first-child > div',
}
- }, // 必应学术
- baidu_xueshu: {
- host: 'xueshu.baidu.com',
- functionS: function() {if (lp == '/s') {
- curSite = DBSite.baidu_xueshu;
- } else if (indexOF('journal/navigation')) {
- curSite = DBSite.baidu_xueshu_journal;
- } else if (indexOF('paper/show')) {
- curSite = DBSite.baidu_xueshu_paper;
- }},
- history: true,
+ }, // Github - Search 列表 - wiki
+ github_search_users: {
pager: {
- type: 1,
- nextL: 'id("page")/a[./i[@class="c-icon-pager-next"]]',
- pageE: 'css;#bdxs_result_lists > div.result',
- replaceE: 'css;#page',
- scrollD: 1000
+ pageE: 'css;#user_search_results > div:first-child > div',
}
- }, // 百度学术
- baidu_xueshu_journal: {
+ }, // Github - Search 列表 - user
+ oi_wiki: {
+ host: 'oi-wiki.org',
+ insStyle: 'blockquote.page-copyright, h2#__comments, form#gitalk-form {display: none !important;} article.md-content__inner{min-height: 700px;}',
history: true,
pager: {
type: 1,
- nextL: 'css;a.res-page-next',
- pageE: 'css;#journaldetail > div',
- replaceE: 'css;.res-page',
- scrollD: 1000
+ nextL: 'css;li.md-nav__item.md-nav__item--active.md-nav__item--nested li.md-nav__item--active+li a',
+ pageE: 'css;article.md-content__inner',
+ insertP: ['css;article.md-content__inner', 6],
+ replaceE: 'css;.md-sidebar.md-sidebar--primary',
+ scrollD: 1300
}
- }, // 百度学术
- baidu_xueshu_paper: {
+ }, // OI Wiki
+ guokr: {
+ host: 'www.guokr.com',
pager: {
type: 2,
- nextL: 'css;div:not([style*="display: none"]) > .more_btn',
+ nextL: 'css;div[class*="LoadMoreWrap"]',
+ interval: 1500,
+ scrollD: 1500
+ }
+ }, // 果壳网
+ expreview: {
+ host: 'www.expreview.com',
+ pager: {
+ type: 2,
+ nextL: 'css;#show_article_red_1SHOW',
+ interval: 1500,
+ scrollD: 1500
+ }
+ }, // 超能网
+ landian: {
+ host: 'www.landian.vip',
+ pager: {
+ type: 2,
+ nextL: 'css;.load-more > button',
nextText: '加载更多',
- scrollD: 1000
+ scrollD: 1300
}
- }, // 百度学术
- so_xueshu: {
- host: 'xueshu.so.com',
- functionS: function() {if (lp == '/s') {curSite = DBSite.so_xueshu;}},
+ }, // 蓝点网
+ ithome: {
+ host: 'www.ithome.com',
pager: {
- type: 1,
- nextL: 'css;a#snext',
- pageE: 'css;ul.list > li',
- replaceE: 'css;#page',
- scrollD: 1000
+ type: 2,
+ nextL: 'css;a.more',
+ interval: 1500,
+ scrollD: 1500
}
- }, // 360 学术
- cadtutor: {
- host: 'www.cadtutor.net',
- functionS: function() {
- if (indexOF('/forum/forum/')) {
- curSite = DBSite.cadtutor;
- } else if (indexOF('/forum/topic/') && GM_getValue('menu_discuz_thread_page')) {
- curSite = DBSite.cadtutor_post;
- } else if (indexOF('/forum/search/')) {
- curSite = DBSite.cadtutor_search;
- }},
+ }, // IT之家
+ _36kr: {
+ host: ['36kr.com', 'www.36kr.com'],
+ functionS: function() {if (lp != '/' && !indexOF('/p/') && !indexOF('/newsflashes/')) {curSite = DBSite._36kr;}},
pager: {
- type: 1,
- nextL: 'css;a[rel="next"]',
- pageE: 'css;ol.ipsDataList > li:not([data-rowid])~li',
- replaceE: 'css;ul.ipsPagination',
- scrollD: 2000
+ type: 2,
+ nextL: 'css;.kr-loading-more-button.show',
+ nextText: '查看更多',
+ scrollD: 1500
}
- }, // CADTutor - 列表页
- cadtutor_post: {
+ }, // 36氪
+ _36kr_m: {
+ host: 'm.36kr.com',
pager: {
- type: 1,
- nextL: 'css;a[rel="next"]',
- pageE: 'css;#elPostFeed > form > *:not(input):not(.after-first-post)',
- replaceE: 'css;ul.ipsPagination',
- scrollD: 2000
+ type: 2,
+ nextL: 'css;.kr-loading-more-button-default',
+ nextText: '查看更多',
+ scrollD: 1500
}
- }, // CADTutor - 帖子内
- cadtutor_search: {
+ }, // 36氪 - 手机版
+ zhutix: {
+ host: 'zhutix.com',
+ functionS: function() {if (getCSS('#post-list')) {
+ curSite = DBSite.zhutix;
+ } else {
+ curSite = DBSite.zhutix_list;
+ }},
pager: {
type: 1,
- nextL: 'css;a[rel="next"]',
- pageE: 'css;ol.ipsStream > li',
- replaceE: 'css;ul.ipsPagination',
- scrollD: 2000
+ nextL: '//li[@class="next-page"]/a | //div[@class="btn-pager"]/a[contains(text(), "❯")]',
+ pageE: 'css;#post-list > ul > li',
+ replaceE: 'css;.pagination, .b2-pagenav.post-nav',
+ scrollD: 1500
}
- }, // CADTutor - 搜索页
- theswamp: {
- host: 'www.theswamp.org',
- functionS: function() {
- if (!location.search) return
- if (indexOF('board=', 's')) {
- curSite = DBSite.theswamp;
- } else if (indexOF('topic=', 's') && GM_getValue('menu_discuz_thread_page')) {
- curSite = DBSite.theswamp_post;
- }},
+ }, // 致美化
+ zhutix_list: {
pager: {
type: 1,
- nextL: 'css;.pagelinks > strong+a',
- pageE: 'css;#messageindex tbody > tr:not([class])',
- replaceE: 'css;.pagelinks',
- scrollD: 2000
+ nextL: 'css;li.next-page a',
+ pageE: 'css;#primary-home > div:not(.pagination)',
+ replaceE: 'css;.pagination',
+ scrollD: 1500
}
- }, // TheSwamp - 列表页
- theswamp_post: {
+ }, // 致美化 - 文章列表
+ lanzou: {
+ host: /\.lanzou[a-z]\./,
+ hiddenPN: true,
pager: {
- type: 1,
- nextL: 'css;.pagelinks > strong+a',
- pageE: 'css;#forumposts form > *',
- replaceE: 'css;.pagelinks',
- scrollD: 2000
+ type: 2,
+ nextL: 'css;#filemore',
+ nextTextOf: '更多',
+ isHidden: true,
+ scrollD: 800
}
- }, // TheSwamp - 帖子内
+ }, // 蓝奏云 - 分享链接列表
+ lanzou_: {
+ host: 'pc.woozooo.com',
+ iframe: true,
+ hiddenPN: true,
+ pager: {
+ type: 2,
+ nextL: 'css;#filemore > span[onclick]',
+ nextText: '显示更多文件',
+ isHidden: true,
+ scrollD: 800
+ }
+ }, // 蓝奏云 - 后台
wikihow: {
host: ['www.wikihow.com', 'zh.wikihow.com'],
functionS: function() {if (indexOF('/Category:')) {
@@ -4499,19 +4469,6 @@ function: {
scrollD: 3000
}
}, // 指南 - 搜索页
- oi_wiki: {
- host: 'oi-wiki.org',
- insStyle: 'blockquote.page-copyright, h2#__comments, form#gitalk-form {display: none !important;} article.md-content__inner{min-height: 700px;}',
- history: true,
- pager: {
- type: 1,
- nextL: 'css;li.md-nav__item.md-nav__item--active.md-nav__item--nested li.md-nav__item--active+li a',
- pageE: 'css;article.md-content__inner',
- insertP: ['css;article.md-content__inner', 6],
- replaceE: 'css;.md-sidebar.md-sidebar--primary',
- scrollD: 1300
- }
- }, // 编程竞赛
afreecatv: {
host: 'www.afreecatv.com',
pager: {
@@ -4520,7 +4477,7 @@ function: {
interval: 2000,
scrollD: 1000
}
- }, // 直播
+ }, // 直播
greasyfork: {
host: 'greasyfork.org',
functionS: function() {if (indexOF(/\/scripts$/) || indexOF('/scripts/by-site/')) {
@@ -5064,7 +5021,69 @@ function: {
replaceE: 'css;.pages, .list_page',
scrollD: 1000
}
- } // King爱模 - 分类页
+ }, // King爱模 - 分类页
+ cadtutor: {
+ host: 'www.cadtutor.net',
+ functionS: function() {
+ if (indexOF('/forum/forum/')) {
+ curSite = DBSite.cadtutor;
+ } else if (indexOF('/forum/topic/') && GM_getValue('menu_discuz_thread_page')) {
+ curSite = DBSite.cadtutor_post;
+ } else if (indexOF('/forum/search/')) {
+ curSite = DBSite.cadtutor_search;
+ }},
+ pager: {
+ type: 1,
+ nextL: 'css;a[rel="next"]',
+ pageE: 'css;ol.ipsDataList > li:not([data-rowid])~li',
+ replaceE: 'css;ul.ipsPagination',
+ scrollD: 2000
+ }
+ }, // CADTutor - 列表页
+ cadtutor_post: {
+ pager: {
+ type: 1,
+ nextL: 'css;a[rel="next"]',
+ pageE: 'css;#elPostFeed > form > *:not(input):not(.after-first-post)',
+ replaceE: 'css;ul.ipsPagination',
+ scrollD: 2000
+ }
+ }, // CADTutor - 帖子内
+ cadtutor_search: {
+ pager: {
+ type: 1,
+ nextL: 'css;a[rel="next"]',
+ pageE: 'css;ol.ipsStream > li',
+ replaceE: 'css;ul.ipsPagination',
+ scrollD: 2000
+ }
+ }, // CADTutor - 搜索页
+ theswamp: {
+ host: 'www.theswamp.org',
+ functionS: function() {
+ if (!location.search) return
+ if (indexOF('board=', 's')) {
+ curSite = DBSite.theswamp;
+ } else if (indexOF('topic=', 's') && GM_getValue('menu_discuz_thread_page')) {
+ curSite = DBSite.theswamp_post;
+ }},
+ pager: {
+ type: 1,
+ nextL: 'css;.pagelinks > strong+a',
+ pageE: 'css;#messageindex tbody > tr:not([class])',
+ replaceE: 'css;.pagelinks',
+ scrollD: 2000
+ }
+ }, // TheSwamp - 列表页
+ theswamp_post: {
+ pager: {
+ type: 1,
+ nextL: 'css;.pagelinks > strong+a',
+ pageE: 'css;#forumposts form > *',
+ replaceE: 'css;.pagelinks',
+ scrollD: 2000
+ }
+ } // TheSwamp - 帖子内
};
// 生成 SiteTypeID
setSiteTypeID();
From 0fe3636be5e2509b72946a0990de981c0307bdc6 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Tue, 30 Nov 2021 10:08:38 +0800
Subject: [PATCH 0016/1615] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E6=89=A7?=
=?UTF-8?q?=E8=A1=8C=E4=B8=A4=E6=AC=A1=E7=9A=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Zhihu-Enhanced.user.js | 1500 +---------------------------------------
1 file changed, 1 insertion(+), 1499 deletions(-)
diff --git a/Zhihu-Enhanced.user.js b/Zhihu-Enhanced.user.js
index 257bb12e2..64b871805 100644
--- a/Zhihu-Enhanced.user.js
+++ b/Zhihu-Enhanced.user.js
@@ -1,1504 +1,6 @@
// ==UserScript==
// @name 知乎增强
-// @version 1.8.1
-// @author X.I.U
-// @description 移除登录弹窗、屏蔽首页视频、默认收起回答、快捷收起当前回答/评论(左键两侧空白处)、快捷回到顶部(右键两侧空白处)、屏蔽用户 (发布的内容)、屏蔽关键词(标题/评论)、屏蔽盐选内容、净化标题消息、展开问题描述、置顶显示时间、完整问题时间、区分问题文章、直达问题按钮、默认高清原图、默认站外直链
-// @match *://www.zhihu.com/*
-// @match *://zhuanlan.zhihu.com/*
-// @icon https://static.zhihu.com/heifetz/favicon.ico
-// @grant GM_xmlhttpRequest
-// @grant GM_registerMenuCommand
-// @grant GM_unregisterMenuCommand
-// @grant GM_openInTab
-// @grant GM_getValue
-// @grant GM_setValue
-// @grant GM_notification
-// @grant GM_info
-// @license GPL-3.0 License
-// @run-at document-end
-// @incompatible safari
-// @namespace https://greasyfork.org/scripts/4122051
-// @supportURL https://github.com/XIU2/UserScript
-// @homepageURL https://github.com/XIU2/UserScript
-// ==/UserScript==
-
-'use strict';
-var menu_ALL = [
- ['menu_defaultCollapsedAnswer', '默认收起回答', '默认收起回答', true],
- ['menu_collapsedAnswer', '一键收起回答', '一键收起回答', true],
- ['menu_collapsedNowAnswer', '收起当前回答/评论 (点击两侧空白处)', '收起当前回答/评论', true],
- ['menu_backToTop', '快捷回到顶部 (右键两侧空白处)', '快捷回到顶部', true],
- ['menu_blockUsers', '屏蔽指定用户', '屏蔽指定用户', true],
- ['menu_customBlockUsers', '自定义屏蔽用户', '自定义屏蔽用户', ['故事档案局', '盐选推荐', '盐选科普', '盐选成长计划', '知乎盐选会员', '知乎盐选创作者', '盐选心理', '盐选健康必修课', '盐选奇妙物语', '盐选生活馆', '盐选职场', '盐选文学甄选', '盐选作者小管家', '盐选博物馆', '盐选点金', '盐选测评室', '盐选科技前沿', '盐选会员精品']],
- ['menu_blockKeywords', '屏蔽指定关键词', '屏蔽指定关键词', true],
- ['menu_customBlockKeywords', '自定义屏蔽关键词', '自定义屏蔽关键词', []],
- ['menu_blockType', '屏蔽指定类别 (视频/文章等)', '勾选 = 屏蔽该类别的信息流', ''],
- ['menu_blockTypeVideo', '视频 [首页、搜索页]', '视频(首页、搜索页)', true],
- ['menu_blockTypeArticle', '文章 [首页、搜索页]', '文章(首页、搜索页)', false],
- ['menu_blockTypeTopic', '话题 [搜索页]', '话题(搜索页)', false],
- ['menu_blockTypeSearch', '杂志文章、相关搜索等 [搜索页]', '相关搜索、杂志等(搜索页)', false],
- ['menu_blockYanXuan', '屏蔽盐选内容', '屏蔽盐选内容', false],
- ['menu_cleanTitles', '净化标题消息 (标题中的私信/消息)', '净化标题提醒', false],
- ['menu_questionRichTextMore', '展开问题描述', '展开问题描述', false],
- ['menu_publishTop', '置顶显示时间', '置顶显示时间', true],
- ['menu_allTime', '完整显示时间', '完整显示时间', true],
- ['menu_typeTips', '区分问题文章', '区分问题文章', true],
- ['menu_toQuestion', '直达问题按钮', '直达问题按钮', true],
- ['menu_directLink', '默认站外直链', '默认站外直链', true]
-], menu_ID = [];
-for (let i=0;i menu_ALL.length){ // 如果菜单ID数组多于菜单数组,说明不是首次添加菜单,需要卸载所有脚本菜单
- for (let i=0;i.zhihuE_SettingRoot {position: absolute;top: 50%;left: 50%;-webkit-transform: translate(-50%, -50%);-moz-transform: translate(-50%, -50%);-ms-transform: translate(-50%, -50%);-o-transform: translate(-50%, -50%);transform: translate(-50%, -50%);width: auto;min-width: 400px;max-width: 600px;height: auto;min-height: 150px;max-height: 400px;color: #535353;background-color: #fff;border-radius: 3px;}
-.zhihuE_SettingBackdrop_1 {position: fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 203;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;-webkit-box-pack: center;-ms-flex-pack: center;justify-content: center;overflow-x: hidden;overflow-y: auto;-webkit-transition: opacity .3s ease-out;transition: opacity .3s ease-out;}
-.zhihuE_SettingBackdrop_2 {position: absolute;top: 0;right: 0;bottom: 0;left: 0;z-index: 0;background-color: rgba(18,18,18,.65);-webkit-transition: background-color .3s ease-out;transition: background-color .3s ease-out;}
-.zhihuE_SettingRoot .zhihuE_SettingHeader {padding: 10px 20px;color: #fff;font-weight: bold;background-color: #3994ff;border-radius: 3px 3px 0 0;}
-.zhihuE_SettingRoot .zhihuE_SettingMain {padding: 10px 20px;border-radius: 0 0 3px 3px;}
-.zhihuE_SettingHeader span {float: right;cursor: pointer;}
-.zhihuE_SettingMain input {margin: 10px 6px 10px 0;cursor: pointer;vertical-align:middle}
-.zhihuE_SettingMain label {margin-right: 20px;user-select: none;cursor: pointer;vertical-align:middle}
-.zhihuE_SettingMain hr {border: 0.5px solid #f4f4f4;}
-[data-theme="dark"] .zhihuE_SettingRoot {color: #adbac7;background-color: #343A44;}
-[data-theme="dark"] .zhihuE_SettingHeader {color: #d0d0d0;background-color: #2D333B;}
-[data-theme="dark"] .zhihuE_SettingMain hr {border: 0.5px solid #2d333b;}
- `
- document.body.insertAdjacentHTML('beforeend', _html); // 插入网页末尾
- setTimeout(function() { // 延迟 100 毫秒,避免太快
- // 关闭按钮 点击事件
- document.querySelector('.zhihuE_SettingClose').onclick = function(){this.parentElement.parentElement.parentElement.remove();document.querySelector('.zhihuE_SettingStyle').remove();}
- // 点击周围空白处 = 点击关闭按钮
- document.querySelector('.zhihuE_SettingBackdrop_2').onclick = function(event){if (event.target == this) {document.querySelector('.zhihuE_SettingClose').click();};}
- // 复选框 点击事件
- document.getElementsByName('zhihuE_Setting').forEach(function (checkBox) {
- checkBox.addEventListener('click', function(){if (this.checked) {GM_setValue(this.value, true);} else {GM_setValue(this.value, false);}});
- })
- }, 100)
-}
-
-
-// 添加收起回答观察器
-function getCollapsedAnswerObserver() {
- if (!window._collapsedAnswerObserver) {
- const observer = new MutationObserver(mutations => {
- for (const mutation of mutations) {
- if (mutation.target.hasAttribute('script-collapsed')) return
- if (!mutation.target.classList.contains('RichContent')) continue
- for (const addedNode of mutation.addedNodes) {
- if (addedNode.nodeType != Node.ELEMENT_NODE) continue
- const button = addedNode.querySelector('.ContentItem-actions.Sticky [data-zop-retract-question]');
- if (button) {
- mutation.target.setAttribute('script-collapsed', '');
- button.click();
- return
- }
- }
- }
- })
-
- observer.start = function() {
- if (!this._active) {
- this.observe(document, { childList: true, subtree: true });
- this._active = true;
- }
- }
- observer.end = function() {
- if (this._active) {
- this.disconnect();
- }
- }
-
- window.addEventListener('locationchange', function() {
- observer[location.href.indexOf('/answer/') === -1 ? 'start' : 'end']();
- })
- window._collapsedAnswerObserver = observer;
- }
- return window._collapsedAnswerObserver
-}
-
-
-// 默认收起回答
-function defaultCollapsedAnswer() {
- if (!menu_value('menu_defaultCollapsedAnswer')) return
- const observer = getCollapsedAnswerObserver();
- if (location.href.indexOf('/answer/') === -1) {
- observer.start();
- }
-}
-
-
-// 一键收起回答(全部)
-function collapsedAnswer() {
- if (!menu_value('menu_collapsedAnswer')) return
- if (document.querySelector('.CornerAnimayedFlex')) {
- document.head.appendChild(document.createElement('style')).textContent = '.CornerButton{margin-bottom:8px !important;}.CornerButtons{bottom:45px !important;}';
- document.querySelector('.CornerAnimayedFlex').insertAdjacentHTML('afterBegin', '');
- document.getElementById('collapsed-button').onclick = function () {
- if (location.pathname === '/' || location.pathname === '/hot' || location.pathname === '/follow') {
- document.querySelectorAll('.ContentItem-rightButton').forEach(function (el) {
- if (el.hasAttribute('data-zop-retract-question')) {
- el.click()
- }
- });
- } else {
- document.querySelectorAll('[script-collapsed]').forEach(function(scriptCollapsed) {
- scriptCollapsed.querySelectorAll('.ContentItem-actions [data-zop-retract-question], .ContentItem-actions.Sticky [data-zop-retract-question]').forEach(function(button) {
- button.click();
- })
- })
- document.querySelectorAll('.RichContent:not([script-collapsed]) .ContentItem-actions.Sticky [data-zop-retract-question]').forEach(function(button) {
- let el = button.parentElement;
- while (!el.classList.contains('RichContent')) {
- el = el.parentElement;
- }
- if (el) {
- el.setAttribute('script-collapsed', '');
- }
- button.click();
- })
- const observer = getCollapsedAnswerObserver();
- observer.start();
- if (!menu_value('menu_defaultCollapsedAnswer') && !observer._disconnectListener) {
- window.addEventListener('locationchange', function() {
- observer.end();
- window._collapsedAnswerObserver = null;
- })
- observer._disconnectListener = true;
- }
- }
- }
- }
-}
-
-
-// 收起当前回答、评论(监听点击事件,点击网页两侧空白处)
-function collapsedNowAnswer(selectors) {
- backToTop(selectors) // 快捷回到顶部
- if (!menu_value('menu_collapsedNowAnswer')) return
- document.querySelector(selectors).onclick = function(event){
- if (event.target == this) {
- // 下面这段主要是 [收起回答],顺便 [收起评论](如果展开了的话)
- let rightButton = document.querySelector('.ContentItem-actions.Sticky.RichContent-actions.is-fixed.is-bottom')
- // 悬浮在底部的 [收起回答](此时正在浏览回答内容 [中间区域])
- if (rightButton) {
- // 固定的 [收起评论](先看看是否展开评论)
- let commentCollapseButton = rightButton.querySelector('button.Button.ContentItem-action.Button--plain.Button--withIcon.Button--withLabel:first-of-type')
- if (commentCollapseButton && commentCollapseButton.textContent.indexOf('收起评论') > -1) commentCollapseButton.click();
- // 再去收起回答
- rightButton = rightButton.querySelector('.ContentItem-rightButton[data-zop-retract-question]')
- if (rightButton) rightButton.click();
- // 固定在回答底部的 [收起回答](此时正在浏览回答内容 [尾部区域])
- } else {
- let answerCollapseButton_ = false;
- for (let el of document.querySelectorAll('.ContentItem-rightButton[data-zop-retract-question]')) { // 遍历所有回答底部的 [收起] 按钮
- if (isElementInViewport(el)) { // 判断该 [收起] 按钮是否在可视区域内
- // 固定的 [收起评论](先看看是否展开评论,即存在 [收起评论] 按钮)
- let commentCollapseButton = el.parentNode.querySelector('button.Button.ContentItem-action.Button--plain.Button--withIcon.Button--withLabel:first-of-type')
- // 如果展开了评论,就收起评论
- if (commentCollapseButton && commentCollapseButton.textContent.indexOf('收起评论') > -1) commentCollapseButton.click();
- el.click() // 再去收起回答
- answerCollapseButton_ = true; // 如果找到并点击收起了,就没必要执行下面的代码了(可视区域中没有 [收起回答] 时)
- break
- }
- }
- // 针对完全看不到 [收起回答] 按钮时(如 [头部区域],以及部分明明很长却不显示悬浮横条的回答)
- if (!answerCollapseButton_) {
- for (let el of document.querySelectorAll('.List-item, .Card.AnswerCard')) { // 遍历所有回答主体元素
- if (isElementInViewport_(el)) { // 判断该回答是否在可视区域内
- // 固定的 [收起评论](先看看是否展开评论,即存在 [收起评论] 按钮)
- let commentCollapseButton = el.parentNode.querySelector('button.Button.ContentItem-action.Button--plain.Button--withIcon.Button--withLabel:first-of-type')
- // 如果展开了评论,就收起评论
- if (commentCollapseButton && commentCollapseButton.textContent.indexOf('收起评论') > -1) commentCollapseButton.click();
- let answerCollapseButton__ = document.querySelector('.ContentItem-rightButton[data-zop-retract-question]');
- if (answerCollapseButton__) answerCollapseButton__.click() // 再去收起回答
- break
- }
- }
- }
- }
-
- // 下面这段只针对 [收起评论](如果展开了的话)
- let commentCollapseButton_ = false, commentCollapseButton__ = false;
- // 悬浮的 [收起评论](此时正在浏览评论内容 [中间区域])
- let commentCollapseButton = document.querySelector('.CommentCollapseButton')
- if (commentCollapseButton) {
- commentCollapseButton.click();
- } else { // 固定的 [收起评论](此时正在浏览评论内容 [头部区域])
- let commentCollapseButton_1 = document.querySelectorAll('.ContentItem-actions > button.Button.ContentItem-action.Button--plain.Button--withIcon.Button--withLabel:first-of-type, .ContentItem-action > button.Button.Button--plain.Button--withIcon.Button--withLabel:first-of-type')
- if (commentCollapseButton_1.length > 0) {
- for (let el of commentCollapseButton_1) {
- if (el.textContent.indexOf('收起评论') > -1) {
- if (isElementInViewport(el)) {
- el.click()
- commentCollapseButton_ = true // 如果找到并点击了,就没必要执行下面的代码了(可视区域中没有 [收起评论] 时)
- break
- }
- }
- }
- }
- if (commentCollapseButton_ == false) { // 可视区域中没有 [收起评论] 时(此时正在浏览评论内容 [头部区域] + [尾部区域](不上不下的,既看不到固定的 [收起评论] 又看不到悬浮的 [收起评论])),需要判断可视区域中是否存在评论元素
- let commentCollapseButton_1 = document.querySelectorAll('.NestComment')
- if (commentCollapseButton_1.length > 0) {
- for (let el of commentCollapseButton_1) {
- if (isElementInViewport(el)) {
- let commentCollapseButton = findParentElement(el, 'ContentItem AnswerItem').querySelector('.ContentItem-actions > button.Button.ContentItem-action.Button--plain.Button--withIcon.Button--withLabel:first-of-type')
- if (commentCollapseButton.textContent.indexOf('收起评论') > -1) {
- commentCollapseButton.click()
- commentCollapseButton__ = true // 如果找到并点击了,就没必要执行下面的代码了(可视区域中没有 评论元素 时)
- break
- }
- }
- }
- }
- if (commentCollapseButton__ == false) { // 如果上面的都没找到,那么就尝试寻找评论末尾的 [评论回复框]
- let commentCollapseButton_2 = document.querySelectorAll('.CommentsV2-footer.CommentEditorV2--normal .CommentEditorV2-inputWrap')
- if (commentCollapseButton_2.length > 0) {
- for (let el of commentCollapseButton_2) {
- if (isElementInViewport(el)) {
- let commentCollapseButton = findParentElement(el, 'ContentItem AnswerItem').querySelector('.ContentItem-actions > button.Button.ContentItem-action.Button--plain.Button--withIcon.Button--withLabel:first-of-type')
- //console.log(commentCollapseButton)
- if (commentCollapseButton.textContent.indexOf('收起评论') > -1) {
- commentCollapseButton.click()
- break
- }
- }
- }
- }
- }
- }
- }
- }
- }
-}
-
-
-// 回到顶部(监听点击事件,鼠标右键点击网页两侧空白处)
-function backToTop(selectors) {
- if (!menu_value('menu_backToTop')) return
- document.querySelector(selectors).oncontextmenu = function(event){
- if (event.target == this) {
- event.preventDefault();
- window.scrollTo(0,0)
- }
- }
-}
-
-
-//获取元素是否在可视区域(完全可见)
-function isElementInViewport(el) {
- let rect = el.getBoundingClientRect();
- return (
- rect.top >= 0 &&
- rect.left >= 0 &&
- rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&
- rect.right <= (window.innerWidth || document.documentElement.clientWidth)
- );
-}
-//获取元素是否在可视区域(部分可见)
-function isElementInViewport_(el) {
- let rect = el.getBoundingClientRect();
- return (
- rect.top <= (window.innerHeight || document.documentElement.clientHeight) &&
- rect.left <= (window.innerWidth || document.documentElement.clientWidth)
- );
-}
-
-
-// 自定义屏蔽用户
-function customBlockUsers() {
- let nowBlockUsers = '';
- menu_value('menu_customBlockUsers').forEach(function(item){nowBlockUsers += '|' + item})
- let newBlockUsers = prompt('编辑 [自定义屏蔽用户]\n(不同用户名之间使用 "|" 分隔,例如:用户A|用户B|用户C )', nowBlockUsers.replace('|',''));
- if (newBlockUsers === '') {
- GM_setValue('menu_customBlockUsers', []);
- registerMenuCommand(); // 重新注册脚本菜单
- } else if (newBlockUsers != null) {
- GM_setValue('menu_customBlockUsers', newBlockUsers.split('|'));
- registerMenuCommand(); // 重新注册脚本菜单
- }
-};
-
-
-// 屏蔽指定用户
-function blockUsers(type) {
- if (!menu_value('menu_blockUsers')) return
- if (!menu_value('menu_customBlockUsers') || menu_value('menu_customBlockUsers').length < 1) return
- switch(type) {
- case 'index':
- blockUsers_('.Card.TopstoryItem.TopstoryItem--old.TopstoryItem-isRecommend', 'Card TopstoryItem TopstoryItem--old TopstoryItem-isRecommend');
- break;
- case 'question':
- blockUsers_question();
- break;
- case 'search':
- blockUsers_search();
- break;
- case 'topic':
- blockUsers_('.List-item.TopicFeedItem', 'List-item TopicFeedItem');
- break;
- case 'people':
- blockUsers_button_people(); // 添加屏蔽用户按钮(用户主页)
- break;
- }
- blockUsers_comment(); // 评论区
- blockUsers_button(); // 加入黑名单按钮
-
- function blockUsers_(className1, className2) {
- // 前几条因为是直接加载的,而不是动态插入网页的,所以需要单独判断
- function blockKeywords_now() {
- document.querySelectorAll(className1).forEach(function(item1){
- let item = item1.querySelector('.ContentItem.AnswerItem, .ContentItem.ArticleItem'); // 用户名所在元素
- if (item) {
- for (const keyword of menu_value('menu_customBlockUsers')) { // 遍历用户名黑名单
- if (item.dataset.zop.indexOf('authorName":"' + keyword + '",') > -1) { // 找到就删除该信息流
- console.log(item.dataset.zop);
- item1.hidden = true;
- break;
- }
- }
- }
- })
- }
-
- blockKeywords_now();
- window.addEventListener('locationchange', function(){
- setTimeout(blockKeywords_now, 500); // 网页 URL 变化后再次执行
- })
-
- // 这个是监听网页插入事件,用来判断后续网页动态插入的元素
- const callback = (mutationsList, observer) => {
- for (const mutation of mutationsList) {
- for (const target of mutation.addedNodes) {
- if (target.nodeType != 1) return
- if (target.className === className2) {
- let item = target.querySelector('.ContentItem.AnswerItem, .ContentItem.ArticleItem'); // 用户名所在元素
- if (item) {
- for (const keyword of menu_value('menu_customBlockUsers')) { // 遍历用户名黑名单
- if (item.dataset.zop.indexOf('authorName":"' + keyword + '",') > -1) { // 找到就删除该信息流
- console.log(item.dataset.zop);
- target.hidden = true;
- break;
- }
- }
- }
- }
- }
- }
- };
- const observer = new MutationObserver(callback);
- observer.observe(document, { childList: true, subtree: true });
- }
-
-
- function blockUsers_question() {
- const blockUsers_question_ = (mutationsList, observer) => {
- for (const mutation of mutationsList) {
- for (const target of mutation.addedNodes) {
- if (target.nodeType != 1) return
- if (target.className === 'List-item' || target.className === 'Card AnswerCard') {
- let item1 = target.querySelector('.ContentItem.AnswerItem');
- if (item1) {
- menu_value('menu_customBlockUsers').forEach(function(item2){ // 遍历用户黑名单
- if (item1.dataset.zop.indexOf('authorName":"' + item2 + '",') > -1) { // 找到就删除该回答
- console.log(item1.dataset.zop)
- target.hidden = true;
- }
- })
- }
- }
- }
- }
- };
-
- const blockUsers_question_answer_ = (mutationsList, observer) => {
- for (const mutation of mutationsList) {
- for (const target of mutation.addedNodes) {
- if (target.nodeType != 1) return
- target.querySelectorAll('.List-item, .Card.AnswerCard').forEach(function(item){
- let item1 = item.querySelector('.ContentItem.AnswerItem');
- if (item1) {
- menu_value('menu_customBlockUsers').forEach(function(item2){ // 遍历用户黑名单
- if (item1.dataset.zop.indexOf('authorName":"' + item2 + '",') > -1) { // 找到就删除该回答
- console.log(item1.dataset.zop)
- item.hidden = true;
- }
- })
- }
- })
- }
- }
- };
-
- if (location.pathname.indexOf('/answer/') > -1) { // 回答页(就是只有三个回答的页面)
- const observer = new MutationObserver(blockUsers_question_answer_);
- observer.observe(document, { childList: true, subtree: true });
- } else { // 问题页(可以显示所有回答的页面)
- const observer = new MutationObserver(blockUsers_question_);
- observer.observe(document, { childList: true, subtree: true });
- }
-
- // 针对的是打开网页后直接加载的前面几个回答(上面哪些是针对动态加载的回答)
- document.querySelectorAll('.List-item, .Card.AnswerCard').forEach(function(item){
- let item1 = item.querySelector('.ContentItem.AnswerItem');
- if (item1) {
- menu_value('menu_customBlockUsers').forEach(function(item2){ // 遍历用户黑名单
- if (item1.dataset.zop.indexOf('authorName":"' + item2 + '",') > -1) { // 找到就删除该回答
- console.log(item1.dataset.zop)
- item.hidden = true;
- }
- })
- }
- })
- }
-
- function blockUsers_search() {
- function blockUsers_now() {
- if (location.search.indexOf('type=content') === -1) return // 目前只支持搜索页的 [综合]
- document.querySelectorAll('.Card.SearchResult-Card[data-za-detail-view-path-module="AnswerItem"], .Card.SearchResult-Card[data-za-detail-view-path-module="PostItem"]').forEach(function(item1){
- let item = item1.querySelector('.RichText.ztext.CopyrightRichText-richText b'); // 标题所在元素
- if (item) {
- for (const keyword of menu_value('menu_customBlockUsers')) { // 遍历关键词黑名单
- if (item.textContent === keyword) { // 找到就删除该信息流
- console.log(item.textContent);
- item1.hidden = true;
- break;
- }
- }
- }
- })
- }
-
- setTimeout(blockUsers_now, 500);
- window.addEventListener('locationchange', function(){
- setTimeout(blockUsers_now, 500); // 网页 URL 变化后再次执行
- })
-
- const callback = (mutationsList, observer) => {
- if (location.search.indexOf('type=content') === -1) return // 目前只支持搜索页的 [综合]
- for (const mutation of mutationsList) {
- for (const target of mutation.addedNodes) {
- if (target.nodeType != 1) return
- if (target.className === 'Card SearchResult-Card' && (target.dataset.zaDetailViewPathModule === 'AnswerItem' || target.dataset.zaDetailViewPathModule === 'PostItem')) {
- let item = target.querySelector('.RichText.ztext.CopyrightRichText-richText b'); // 用户名所在元素
- if (item) {
- for (const keyword of menu_value('menu_customBlockUsers')) { // 遍历用户名黑名单
- if (item.textContent === keyword) { // 找到就删除该信息流
- console.log(item.textContent);
- target.hidden = true;
- break;
- }
- }
- }
- }
- }
- }
- };
- const observer = new MutationObserver(callback);
- observer.observe(document, { childList: true, subtree: true });
- }
-
- function blockUsers_comment() {
- const callback = (mutationsList, observer) => {
- for (const mutation of mutationsList) {
- for (const target of mutation.addedNodes) {
- if (target.nodeType != 1) return
- let item = target.querySelector('img.Avatar.UserLink-avatar')
- if (item) {
- menu_value('menu_customBlockUsers').forEach(function(item1){ // 遍历用户黑名单
- if (item.alt === item1) { // 找到就删除该搜索结果
- if (findParentElement(item, 'NestComment--rootComment', true)) {
- findParentElement(item, 'NestComment--rootComment', true).hidden = true;;
- } else if (findParentElement(item, 'NestComment--child', true)){
- findParentElement(item, 'NestComment--child', true).hidden = true;;
- } else if (findParentElement(item, 'NestComment', true)){
- findParentElement(item, 'NestComment', true).hidden = true;;
- } else if (findParentElement(item, 'CommentItemV2', true)){
- findParentElement(item, 'CommentItemV2', true).hidden = true;;
- } else if (findParentElement(item, 'CommentItemV2 CommentItemV2--highlighted', true)){
- findParentElement(item, 'CommentItemV2 CommentItemV2--highlighted', true).hidden = true;;
- }
- }
- })
-
- // 添加屏蔽用户按钮(点赞、回复等按钮后面)
- if (item) {
- let footer = findParentElement(item, 'CommentItemV2-meta', true).parentElement.querySelector('.CommentItemV2-metaSibling > .CommentItemV2-footer'),
- userid = item.parentElement;
- if (userid && footer && !footer.lastElementChild.dataset.name) {
- userid = userid.href.split('/')[4];
- footer.insertAdjacentHTML('beforeend',``);
- footer.lastElementChild.onclick = function(){blockUsers_button_add(this.dataset.name, this.dataset.userid, false)}
- }
- }
- }
- }
- }
- };
- const observer = new MutationObserver(callback);
- observer.observe(document, { childList: true, subtree: true });
- }
-
- // 添加屏蔽用户按钮(用户信息悬浮框中)
- function blockUsers_button() {
- const callback = (mutationsList, observer) => {
- for (const mutation of mutationsList) {
- for (const target of mutation.addedNodes) {
- if (target.nodeType != 1) return
- //console.log(target, target.className)
- if (target.className && (target.className.indexOf('Popover-content Popover-content--top HoverCard-popoverTarget') > -1 || target.className.indexOf('Popover-content Popover-content--bottom HoverCard-popoverTarget') > -1) || target.querySelector('.Popover-content.Popover-content--top.HoverCard-popoverTarget') || target.querySelector('.Popover-content.Popover-content--bottom.HoverCard-popoverTarget')) {
- let item = target.querySelector('.MemberButtonGroup.ProfileButtonGroup.HoverCard-buttons'),
- item1 = target.querySelector('a.UserLink-link'),
- name = item1.textContent,
- userid = item1.href.split('/')[4];
- if (item && !target.querySelector('button[data-name][data-userid]')) {
- item.insertAdjacentHTML('beforeend', ``);
- item.lastElementChild.onclick = function(){blockUsers_button_add(this.dataset.name, this.dataset.userid, false)}
- }
- }
- }
- }
- };
- const observer = new MutationObserver(callback);
- observer.observe(document, { childList: true, subtree: true });
- }
-
- // 添加屏蔽用户按钮(用户主页)
- function blockUsers_button_people() {
- let item = document.querySelector('.MemberButtonGroup.ProfileButtonGroup.ProfileHeader-buttons'), // 获取按钮元素位置
- name = document.querySelector('.ProfileHeader-name').firstChild.textContent, // 获取用户名
- users = menu_value('menu_customBlockUsers'), // 读取屏蔽列表
- userid = location.href.split('/')[4];
- for (let num = 0;num取消屏蔽`);
- item.lastElementChild.onclick = function(){blockUsers_button_del(this.dataset.name, this.dataset.userid, true)}
- return
- }
- };
- if (item) {
- item.insertAdjacentHTML('beforeend', ``);
- item.lastElementChild.onclick = function(){blockUsers_button_add(this.dataset.name, this.dataset.userid, true)}
- }
- }
-
- // 屏蔽用户按钮绑定事件(添加)
- function blockUsers_button_add(name, userid, reload) {
- if (!name || !userid) return
- let users = menu_value('menu_customBlockUsers'), // 读取屏蔽列表
- index = users.indexOf(name);
- if (index === -1) {
- users.push(name); // 追加用户名
- GM_setValue('menu_customBlockUsers', users); // 写入屏蔽列表
- // 加入知乎自带的黑名单(和本脚本互补~
- GM_xmlhttpRequest({url: `https://www.zhihu.com/api/v4/members/${userid}/actions/block`,method: 'POST',timeout: 2000});
- // 是否刷新本页
- if (reload) {
- setTimeout(function(){location.reload()}, 200); // 刷新网页,延迟 200 毫秒,避免知乎反应慢~
- } else {
- GM_notification({text: `该用户已被屏蔽~\n刷新网页后生效~`, timeout: 3000});
- }
- } else {
- GM_notification({text: `该用户已经被屏蔽啦,无需重复屏蔽~`, timeout: 3000});
- }
- }
-
-
- // 屏蔽用户按钮绑定事件(删除)
- function blockUsers_button_del(name, userid, reload) {
- if (!name || !userid) return
- let users = menu_value('menu_customBlockUsers'), // 读取屏蔽列表
- index = users.indexOf(name);
- if (index > -1) {
- users.splice(index, 1); // 移除用户名
- GM_setValue('menu_customBlockUsers', users); // 写入屏蔽列表
- // 移除知乎自带的黑名单
- GM_xmlhttpRequest({url: `https://www.zhihu.com/api/v4/members/${userid}/actions/block`,method: 'DELETE',timeout: 2000});
- // 是否刷新本页
- if (reload) {
- setTimeout(function(){location.reload()}, 200); // 刷新网页,延迟 200 毫秒,避免知乎反应慢~
- } else {
- GM_notification({text: `该用户已取消屏蔽啦~\n刷新网页后生效~`, timeout: 3000});
- }
- } else {
- GM_notification({text: `没有在屏蔽列表中找到该用户...`, timeout: 3000});
- }
- }
-}
-
-
-// 自定义屏蔽关键词(标题)
-function customBlockKeywords() {
- let nowBlockKeywords = '';
- menu_value('menu_customBlockKeywords').forEach(function(item){nowBlockKeywords += '|' + item})
- let newBlockKeywords = prompt('编辑 [自定义屏蔽关键词]\n(不同关键词之间使用 "|" 分隔,例如:关键词A|关键词B|关键词C \n(关键词不区分大小写,支持表情如:[捂脸]|[飙泪笑]', nowBlockKeywords.replace('|',''));
- if (newBlockKeywords === '') {
- GM_setValue('menu_customBlockKeywords', []);
- registerMenuCommand(); // 重新注册脚本菜单
- } else if (newBlockKeywords != null) {
- GM_setValue('menu_customBlockKeywords', newBlockKeywords.split('|'));
- registerMenuCommand(); // 重新注册脚本菜单
- }
-};
-
-
-// 屏蔽指定关键词
-function blockKeywords(type) {
- if (!menu_value('menu_blockKeywords')) return
- if (!menu_value('menu_customBlockKeywords') || menu_value('menu_customBlockKeywords').length < 1) return
- switch(type) {
- case 'index':
- blockKeywords_('.Card.TopstoryItem.TopstoryItem--old.TopstoryItem-isRecommend', 'Card TopstoryItem TopstoryItem--old TopstoryItem-isRecommend');
- break;
- case 'topic':
- blockKeywords_('.List-item.TopicFeedItem', 'List-item TopicFeedItem');
- break;
- case 'people':
- blockKeywords_('.List-item', 'List-item');
- break;
- case 'search':
- blockKeywords_search();
- break;
- case 'comment':
- blockKeywords_comment();
- break;
- }
-
-
- function blockKeywords_(className1, className2) {
- // 前几条因为是直接加载的,而不是动态插入网页的,所以需要单独判断
- function blockKeywords_now() {
- if (location.pathname === '/hot') {
- document.querySelectorAll('.HotItem').forEach(function(item1){blockKeywords_1(item1, 'h2.HotItem-title');})
- } else {
- document.querySelectorAll(className1).forEach(function(item1){blockKeywords_1(item1, 'h2.ContentItem-title meta[itemprop="name"], meta[itemprop="headline"]');})
- }
- }
-
- blockKeywords_now();
- window.addEventListener('locationchange', function(){
- setTimeout(blockKeywords_now, 500); // 网页 URL 变化后再次执行
- })
-
- // 这个是监听网页插入事件,用来判断后续网页动态插入的元素
- const callback = (mutationsList, observer) => {
- for (const mutation of mutationsList) {
- for (const target of mutation.addedNodes) {
- if (target.nodeType != 1) return
- if (target.className === className2) {blockKeywords_1(target, 'h2.ContentItem-title meta[itemprop="name"], meta[itemprop="headline"]');}
- }
- }
- };
- const observer = new MutationObserver(callback);
- observer.observe(document, { childList: true, subtree: true });
- }
-
-
- function blockKeywords_search() {
- function blockKeywords_now() {
- if (location.search.indexOf('type=content') === -1) return // 目前只支持搜索页的 [综合]
- document.querySelectorAll('.HotLanding-contentItem, .Card.SearchResult-Card[data-za-detail-view-path-module="AnswerItem"], .Card.SearchResult-Card[data-za-detail-view-path-module="PostItem"]').forEach(function(item1){blockKeywords_1(item1, 'a[data-za-detail-view-id]');})
- }
-
- setTimeout(blockKeywords_now, 500);
- window.addEventListener('locationchange', function(){
- setTimeout(blockKeywords_now, 500); // 网页 URL 变化后再次执行
- })
-
- const callback = (mutationsList, observer) => {
- if (location.search.indexOf('type=content') === -1) return // 目前只支持搜索页的 [综合]
- for (const mutation of mutationsList) {
- for (const target of mutation.addedNodes) {
- if (target.nodeType != 1) return
- if (target.className === 'Card SearchResult-Card' && (target.dataset.zaDetailViewPathModule === 'AnswerItem' || target.dataset.zaDetailViewPathModule === 'PostItem')) {blockKeywords_1(target, 'a[data-za-detail-view-id]');}
- }
- }
- };
- const observer = new MutationObserver(callback);
- observer.observe(document, { childList: true, subtree: true });
- }
-
-
- function blockKeywords_comment() {
- function filterComment(comment) {
- let content = comment.querySelector('.RichText'); // 寻找评论文字所在元素
- let texts = [content.textContent.toLowerCase()]; // 因为要针对评论中的表情,所以需要整个数组并全部转为小写(用来不区分大小写)
- for (let i = 0; i < content.children.length; i++) { // 该条针对的是评论中的表情
- let emoticonValue = content.children[i].getAttribute('data-zhihu-emoticon'); // 确定是表情就将其添加到稍后遍历的数组中
- if (emoticonValue) {
- texts.push(emoticonValue)
- }
- }
-
- let keywords = menu_value('menu_customBlockKeywords');
- for (const text of texts) {
- for (const keyword of keywords) { // 遍历关键词黑名单
- if (text.indexOf(keyword.toLowerCase()) > -1) { // 找到就删除该评论
- console.log(text);
- content.textContent = '[该评论已屏蔽]';
- break;
- }
- }
- }
- }
-
- const callback = (mutationsList, observer) => {
- for (const mutation of mutationsList) {
- for (const target of mutation.addedNodes) {
- if (target.nodeType != 1) return
- for (const node of target.querySelectorAll('*')) {
- if (node.className === 'CommentItemV2-metaSibling') filterComment(node);
- }
- }
- }
- };
- const observer = new MutationObserver(callback);
- observer.observe(document, { childList: true, subtree: true });
- }
-
- function blockKeywords_1(item1, css) {
- let item = item1.querySelector(css); // 标题所在元素
- if (item) {
- for (const keyword of menu_value('menu_customBlockKeywords')) { // 遍历关键词黑名单
- let text = item.content || item.textContent;
- if (text.toLowerCase().indexOf(keyword.toLowerCase()) > -1) { // 找到就删除该信息流
- console.log(text);
- item1.hidden = true;
- item1.style.display = 'none';
- break;
- }
- }
- }
- }
-}
-
-
-// 屏蔽指定类别(视频/文章等)
-function blockType(type) {
- let name;
- // 一开始加载的信息流 + 添加标签样式
- if (type === 'search') {
- if (!menu_value('menu_blockTypeVideo') && !menu_value('menu_blockTypeArticle') && !menu_value('menu_blockTypeTopic') && !menu_value('menu_blockTypeSearch')) return
- if (menu_value('menu_blockTypeSearch') && location.pathname === '/search') setTimeout(function(){document.querySelector('.RelevantQuery').parentElement.parentElement.hidden = true;;}, 1000)
- name = 'h2.ContentItem-title a, a.KfeCollection-PcCollegeCard-link, h2.SearchTopicHeader-Title a'
- addSetInterval_(name);
- } else {
- if (!menu_value('menu_blockTypeVideo') && !menu_value('menu_blockTypeArticle')) return
- // 移除相关搜索
- if (menu_value('menu_blockTypeVideo')) document.lastChild.appendChild(document.createElement('style')).textContent = `nav.TopstoryTabs > a[aria-controls="Topstory-zvideo"] {display: none;}`;
- name = 'h2.ContentItem-title a'
- document.querySelectorAll(name).forEach(function(item){blockType_(item);})
- }
-
- // 后续加载的信息流
- const observer = new MutationObserver(mutationsList => {
- for (const mutation of mutationsList) {
- for (const target of mutation.addedNodes) {
- if (target.nodeType != 1) return
- blockType_(target.querySelector(name));
- }
- }
- });
- observer.observe(document, { childList: true, subtree: true });
-
- window.addEventListener('locationchange', function(){
- addSetInterval_(name);
- // 移除相关搜索
- if (menu_value('menu_blockTypeSearch') && location.pathname === '/search' && location.search.indexOf('type=content') > -1) setTimeout(function(){document.querySelector('.RelevantQuery').parentElement.parentElement.hidden = true;}, 1500)
- })
-
- function blockType_(titleA) {
- if (!titleA) return // 判断是否为真
- if (location.pathname === '/search') { // 搜索页
- if (location.search.indexOf('type=content') === -1) return // 仅限搜索页的 [综合]
- if (titleA.href.indexOf('/zvideo/') > -1) { // 如果是视频
- if (menu_value('menu_blockTypeVideo')) findParentElement(titleA, 'Card').hidden = true;
- } else if (titleA.href.indexOf('zhuanlan.zhihu.com') > -1) { // 如果是文章
- if (menu_value('menu_blockTypeArticle')) findParentElement(titleA, 'Card SearchResult-Card').hidden = true;
- } else if (titleA.href.indexOf('/topic/') > -1) { // 如果是话题
- if (menu_value('menu_blockTypeTopic')) findParentElement(titleA, 'Card SearchResult-Card').hidden = true;
- } else if (titleA.href.indexOf('/market/') > -1) { // 如果是杂志文章等乱七八糟的
- if (menu_value('menu_blockTypeArticle')) findParentElement(titleA, 'Card SearchResult-Card').hidden = true;
- }
- } else { // 首页
- if (titleA.href.indexOf('/zvideo/') > -1) { // 如果是视频
- if (menu_value('menu_blockTypeVideo')) findParentElement(titleA, 'Card TopstoryItem TopstoryItem--old TopstoryItem-isRecommend').hidden = true;
- } else if (titleA.href.indexOf('/answer/') > -1) { // 如果是问题(视频回答)
- if (findParentElement(titleA, 'ContentItem AnswerItem').querySelector('.VideoAnswerPlayer')) {
- if (menu_value('menu_blockTypeVideo')) findParentElement(titleA, 'Card TopstoryItem TopstoryItem--old TopstoryItem-isRecommend').hidden = true;
- }
- } else if (titleA.href.indexOf('zhuanlan.zhihu.com') > -1) { // 如果是文章
- if (menu_value('menu_blockTypeArticle')) findParentElement(titleA, 'Card TopstoryItem TopstoryItem--old TopstoryItem-isRecommend').hidden = true;
- }
- }
- }
-
- function addSetInterval_(A) {
- let timer = setInterval(function(){
- let aTag = document.querySelectorAll(A);
- if (aTag.length > 0) {
- clearInterval(timer);
- aTag.forEach(function(item){blockType_(item);})
- }
- });
- }
-}
-
-
-// 寻找父元素
-function findParentElement(item, className, type = false) {
- if (item.parentElement) {
- //console.log(item.parentElement)
- if (type) { // true = 完全一致,false = 包含即可
- if (item.parentElement.className && item.parentElement.className === className) {
- //console.log(item.parentElement.className)
- return item.parentElement;
- } else {
- let temp = findParentElement(item.parentElement, className, true)
- if (temp) return temp
- }
- } else {
- if (item.parentElement.className && item.parentElement.className.indexOf(className) > -1) {
- return item.parentElement;
- } else {
- let temp = findParentElement(item.parentElement, className)
- if (temp) return temp
- }
- }
- }
- return
-}
-
-
-// 屏蔽盐选内容
-function blockYanXuan() {
- if (!menu_value('menu_blockYanXuan')) return
- const blockYanXuan_question = (mutationsList, observer) => {
- for (const mutation of mutationsList) {
- for (const target of mutation.addedNodes) {
- if (target.nodeType != 1) return
- if (target.className === 'List-item' || target.className === 'Card AnswerCard') {
- if (target.querySelector('.KfeCollection-AnswerTopCard-Container, .KfeCollection-PurchaseBtn')) {
- target.hidden = true;
- }
- }
- }
- }
- };
-
- const blockYanXuan_question_answer = (mutationsList, observer) => {
- for (const mutation of mutationsList) {
- for (const target of mutation.addedNodes) {
- if (target.nodeType != 1) return
- target.querySelectorAll('.List-item, .Card.AnswerCard').forEach(function(item){
- if (item.querySelector('.KfeCollection-AnswerTopCard-Container, .KfeCollection-PurchaseBtn')) {
- item.hidden = true;
- }
- })
- }
- }
- };
-
- if (location.pathname.indexOf('/answer/') > -1) { // 回答页(就是只有三个回答的页面)
- const observer = new MutationObserver(blockYanXuan_question_answer);
- observer.observe(document, { childList: true, subtree: true });
- } else { // 问题页(可以显示所有回答的页面)
- const observer = new MutationObserver(blockYanXuan_question);
- observer.observe(document, { childList: true, subtree: true });
- }
-
- // 针对的是打开网页后直接加载的前面几个回答(上面哪些是针对动态加载的回答)
- document.querySelectorAll('.List-item, .Card.AnswerCard').forEach(function(item){
- if (item.querySelector('.KfeCollection-AnswerTopCard-Container, .KfeCollection-PurchaseBtn')) {
- item.hidden = true;
- }
- })
-}
-
-
-// 区分问题文章
-function addTypeTips() {
- if (!menu_value('menu_typeTips')) return
- let style = `font-weight: bold;font-size: 13px;padding: 1px 4px 0;border-radius: 2px;display: inline-block;vertical-align: top;margin: ${(location.pathname === '/search') ? '2' : '4'}px 4px 0 0;`
- document.body.appendChild(document.createElement('style')).textContent = `/* 区分问题文章 */
-.AnswerItem .ContentItem-title a:not(.zhihu_e_toQuestion)::before {content:'问题';color: #f68b83;background-color: #f68b8333;${style}}
-.TopstoryQuestionAskItem .ContentItem-title a:not(.zhihu_e_toQuestion)::before {content:'问题';color: #ff5a4e;background-color: #ff5a4e33;${style}}
-.ZVideoItem .ContentItem-title a::before, .ZvideoItem .ContentItem-title a::before {content:'视频';color: #00BCD4;background-color: #00BCD433;${style}}
-.ArticleItem .ContentItem-title a::before {content:'文章';color: #2196F3;background-color: #2196F333;${style}}`;
-}
-
-
-// 直达问题按钮
-function addToQuestion() {
- if (!menu_value('menu_toQuestion')) return
-
- // 一开始加载的信息流 + 添加按钮样式
- if (location.pathname === '/search') {
- document.lastChild.appendChild(document.createElement('style')).textContent = `a.zhihu_e_toQuestion {font-size: 13px !important;font-weight: normal !important;padding: 1px 6px 0 !important;border-radius: 2px !important;display: inline-block !important;vertical-align: top !important;height: 20.67px !important;line-height: 20.67px !important;margin-top: 2px !important;}`;
- addSetInterval_('h2.ContentItem-title a:not(.zhihu_e_tips)');
- } else {
- document.lastChild.appendChild(document.createElement('style')).textContent = `a.zhihu_e_toQuestion {font-size: 13px !important;font-weight: normal !important;padding: 1px 6px 0 !important;border-radius: 2px !important;display: inline-block !important;vertical-align: top !important;margin-top: 4px !important;}`;
- document.querySelectorAll('h2.ContentItem-title a:not(.zhihu_e_tips)').forEach(function(item){addTypeTips_(item);})
- }
-
- // 后续加载的信息流
- const observer = new MutationObserver(mutationsList => {
- for (const mutation of mutationsList) {
- for (const target of mutation.addedNodes) {
- if (target.nodeType != 1) return
- addTypeTips_(target.querySelector('h2.ContentItem-title a:not(.zhihu_e_tips)'));
- }
- }
- });
- observer.observe(document, { childList: true, subtree: true });
-
- window.addEventListener('locationchange', function(){
- addSetInterval_('h2.ContentItem-title a:not(.zhihu_e_tips)');
- })
-
- function addTypeTips_(titleA) {
- if (!titleA) return // 判断是否为真
- if (titleA.parentElement.querySelector('a.zhihu_e_toQuestion')) return // 判断是否已添加
- if (titleA.textContent.indexOf('?') != -1) { // 把问题末尾英文问好 [?] 的替换为中文问好 [?],这样按钮与标题之间的间距就刚刚好~
- titleA.innerHTML = titleA.innerHTML.replace('?', "?")
- }
- if (/answer\/\d+/.test(titleA.href)) { // 如果是指向回答的问题(而非指向纯问题的链接)
- titleA.insertAdjacentHTML('afterend', `直达问题`);
- }
- }
-
- function addSetInterval_(A) {
- let timer = setInterval(function(){
- let aTag = document.querySelectorAll(A);
- if (aTag.length > 0) {
- clearInterval(timer);
- aTag.forEach(function(item){addTypeTips_(item);})
- }
- });
- }
-}
-
-
-// 展开问题描述
-function questionRichTextMore() {
- if (!menu_value('menu_questionRichTextMore')) return
- let button = document.querySelector('button.QuestionRichText-more');
- if (button) button.click()
-}
-
-
-// 知乎免登录
-function removeLogin() {
- const removeLoginModal = (mutationsList, observer) => {
- for (const mutation of mutationsList) {
- for (const target of mutation.addedNodes) {
- if (target.nodeType != 1) return
- if (target.querySelector('.signFlowModal')) {
- let button = target.querySelector('.Button.Modal-closeButton.Button--plain');
- if (button) button.click();
- }
- }
- }
- };
-
- // 未登录时才会监听并移除登录弹窗
- if(location.hostname === 'zhuanlan.zhihu.com') { // 如果是文章页
- if (!document.querySelector('button.ColumnPageHeader-MenuToggler')) { // 未登录
- const observer = new MutationObserver(removeLoginModal);
- observer.observe(document, { childList: true, subtree: true });
- } else {
- cleanTitles(); // 净化标题消息
- }
- } else { // 不是文章页
- if (document.querySelector('button.AppHeader-login')) { // 未登录
- const observer = new MutationObserver(removeLoginModal);
- observer.observe(document, { childList: true, subtree: true });
- document.lastElementChild.appendChild(document.createElement('style')).textContent = '.Question-mainColumnLogin, button.AppHeader-login {display: none !important;}'; // 屏蔽问题页中间的登录提示
- document.querySelector('button.AppHeader-login').insertAdjacentHTML('afterend', ''); // [登录] 按钮跳转至登录页面
- } else {
- cleanTitles(); // 净化标题消息
- }
- }
-}
-
-
-// 净化标题消息
-function cleanTitles() {
- if (!menu_value('menu_cleanTitles')) return
-
- // 方案一
- const elTitle = document.head.querySelector('title');
- const original = elTitle.textContent;
- const observer = new MutationObserver(function() {
- if (elTitle.textContent != original) { // 避免重复执行
- elTitle.textContent = original;
- }
- });
- observer.observe(elTitle, { childList: true });
-
- // 方案二
- // if (Reflect.getOwnPropertyDescriptor(document, 'title')) {
- // const elTitle = document.head.querySelector('title');
- // const original = elTitle.textContent;
- // const observer = new MutationObserver(function() {
- // if (elTitle.textContent != original) { // 避免重复执行
- // elTitle.textContent = original;
- // }
- // });
- // observer.observe(elTitle, { childList: true });
- // } else {
- // const title = document.title;
- // Reflect.defineProperty(document, 'title', {
- // set: () => {},
- // get: () => title,
- // });
- // }
-}
-
-
-// 快捷关闭悬浮评论(监听点击事件,点击网页两侧空白处)
-function closeFloatingComments() {
- const closeFloatingCommentsModal = (mutationsList, observer) => {
- for (const mutation of mutationsList) {
- for (const target of mutation.addedNodes) {
- if (target.nodeType != 1) return
- if (target.querySelector('.Modal-backdrop')) {
- document.querySelector('.Modal-backdrop').onclick = function(event){
- if (event.target == this) {
- let button = document.querySelector('.Button.Modal-closeButton.Button--plain');
- if (button) button.click();
- }
- }
- }
- }
- }
- };
- const observer = new MutationObserver(closeFloatingCommentsModal);
- observer.observe(document, { childList: true, subtree: true });
-}
-
-
-// 监听 XMLHttpRequest 事件
-/*function EventXMLHttpRequest() {
- var _send = window.XMLHttpRequest.prototype.send
- function sendReplacement(data) {
- addTypeTips();
- return _send.apply(this, arguments);
- }
- window.XMLHttpRequest.prototype.send = sendReplacement;
-}*/
-
-
-// 自定义 locationchange 事件(用来监听 URL 变化)
-function addLocationchange() {
- history.pushState = ( f => function pushState(){
- var ret = f.apply(this, arguments);
- window.dispatchEvent(new Event('pushstate'));
- window.dispatchEvent(new Event('locationchange'));
- return ret;
- })(history.pushState);
-
- history.replaceState = ( f => function replaceState(){
- var ret = f.apply(this, arguments);
- window.dispatchEvent(new Event('replacestate'));
- window.dispatchEvent(new Event('locationchange'));
- return ret;
- })(history.replaceState);
-
- window.addEventListener('popstate',()=>{
- window.dispatchEvent(new Event('locationchange'))
- });
-}
-
-
-// [完整显示时间 + 置顶显示时间] 功能修改自:https://greasyfork.org/scripts/402808(从 JQuery 改为原生 JavaScript,且优化了代码)
-// 完整显示时间 + 置顶显示时间 - 首页
-function topTime_index() {
- let topTime = document.querySelectorAll('.TopstoryItem');if (!topTime) return
- topTime.forEach(function(_this) {
- let ContentItemTime = _this.querySelector('.ContentItem-time');if (!ContentItemTime) return
- if (!(ContentItemTime.classList.contains('full')) && ContentItemTime.querySelector('span') && ContentItemTime.querySelector('span').innerText != null) {
- // 完整显示时间
- topTime_allTime(ContentItemTime)
- // 发布时间置顶
- topTime_publishTop(ContentItemTime, _this, 'ContentItem-meta')
- }
- });
-}
-
-
-// 完整显示时间 + 置顶显示时间 - 回答页
-function topTime_question() {
- let topTime = document.querySelectorAll('.ContentItem.AnswerItem');if (!topTime) return
- topTime.forEach(function(_this) {
- let ContentItemTime = _this.querySelector('.ContentItem-time');if (!ContentItemTime) return
- if (!(ContentItemTime.classList.contains('full')) && ContentItemTime.querySelector('span') && ContentItemTime.querySelector('span').innerText != null) {
- // 完整显示时间
- topTime_allTime(ContentItemTime)
- // 发布时间置顶
- topTime_publishTop(ContentItemTime, _this, 'ContentItem-meta')
- }
-
- });
-
- // 问题创建时间
- if (!(document.querySelector('.QuestionPage .QuestionHeader-side p')) && location.href.indexOf("log") == -1) { // 没有执行过 且 非问题日志页
- let createtime = document.querySelector('.QuestionPage>[itemprop~=dateCreated]').getAttribute('content');
- let modifiedtime = document.querySelector('.QuestionPage>[itemprop~=dateModified]').getAttribute('content');
- createtime = getUTC8(new Date(createtime));
- modifiedtime = getUTC8(new Date(modifiedtime));
- // 添加到问题页右上角
- document.querySelector('.QuestionPage .QuestionHeader-side').insertAdjacentHTML('beforeEnd', '创建时间: ' + createtime + '
最后编辑: ' + modifiedtime + '
');
- }
-}
-
-
-// 完整显示时间 + 置顶显示时间 - 搜索结果页
-function topTime_search() {
- let topTime = document.querySelectorAll('.ContentItem.AnswerItem, .ContentItem.ArticleItem');if (!topTime) return
- topTime.forEach(function(_this) {
- let ContentItemTime = _this.querySelector('.ContentItem-time');if (!ContentItemTime) return
- if (!(ContentItemTime.classList.contains('full')) && ContentItemTime.querySelector('span') && ContentItemTime.querySelector('span').innerText != null) {
- // 完整显示时间
- topTime_allTime(ContentItemTime)
- // 发布时间置顶
- topTime_publishTop(ContentItemTime, _this, 'SearchItem-meta')
- }
-
- });
-}
-
-
-// 完整显示时间 + 置顶显示时间 - 用户主页
-function topTime_people() {
- let topTime = document.querySelectorAll('.ContentItem.AnswerItem, .ContentItem.ArticleItem');if (!topTime) return
- topTime.forEach(function(_this) {
- let ContentItemTime = _this.querySelector('.ContentItem-time');if (!ContentItemTime) return
- if (!(ContentItemTime.classList.contains('full')) && ContentItemTime.querySelector('span') && ContentItemTime.querySelector('span').innerText != null) {
- // 完整显示时间
- topTime_allTime(ContentItemTime)
- // 发布时间置顶
- topTime_publishTop(ContentItemTime, _this, 'ContentItem-meta')
- }
-
- });
-}
-
-
-// 完整显示时间 + 置顶显示时间 - 专栏/文章
-function topTime_zhuanlan() {
- let ContentItemTime = document.querySelector('.ContentItem-time');if (!ContentItemTime) return
- // 完整显示时间
- if (menu_value('menu_allTime')) {
- if (ContentItemTime.innerText.indexOf('编辑于') > -1 && !(ContentItemTime.classList.contains('doneeeeee'))) {
- let bianjiyu = ContentItemTime.innerText;
- ContentItemTime.click();
- ContentItemTime.innerText = (ContentItemTime.innerText + "," + bianjiyu)
- ContentItemTime.classList.add("doneeeeee");
- }
- }
-
- //发布时间置顶
- if (menu_value('menu_publishTop') && !(document.querySelector('.Post-Header > .ContentItem-time')) && !(document.querySelector('.ContentItem-meta > .ContentItem-time'))) {
- ContentItemTime.style.cssText = 'padding:0px 0px 0px 0px; margin-top: 14px'
- let temp_time = ContentItemTime.cloneNode(true);
- // ContentItemTime.style.display = 'none';
- if (location.href.indexOf("column") > -1){
- document.querySelector('.ContentItem-meta').insertAdjacentElement('beforeEnd', temp_time);
- } else {
- document.querySelector('.Post-Header').insertAdjacentElement('beforeEnd', temp_time);
- }
- }
-}
-
-
-// 完整显示时间
-function topTime_allTime(ContentItemTime) {
- if (!menu_value('menu_allTime')) return
- if (ContentItemTime.innerText.indexOf("发布于") == -1 && ContentItemTime.innerText.indexOf("编辑于") > -1) { //只有 "编辑于" 时增加具体发布时间 data-tooltip
- let data_tooltip = ContentItemTime.querySelector('span').getAttribute('data-tooltip');
- let oldtext = ContentItemTime.querySelector('span').innerText;
- ContentItemTime.querySelector('span').innerText = data_tooltip + "," + oldtext;
- ContentItemTime.classList.add('full');
- } else if (ContentItemTime.innerText.indexOf("发布于") > -1 && ContentItemTime.innerText.indexOf("编辑于") == -1) { //只有 "发布于" 时替换为具体发布时间 data-tooltip
- let data_tooltip = ContentItemTime.querySelector('span').getAttribute('data-tooltip');
- ContentItemTime.querySelector('span').innerText = data_tooltip;
- ContentItemTime.classList.add('full');
- }
-}
-
-
-// 发布时间置顶
-function topTime_publishTop(ContentItemTime, _this, class_) {
- if (!menu_value('menu_publishTop')) return
- if (!ContentItemTime.parentNode.classList.contains(class_)) {
- let temp_time = ContentItemTime.cloneNode(true);
- //_this.querySelector('.RichContent .ContentItem-time').style.display = 'none';
- _this.querySelector('.' + class_).insertAdjacentElement('beforeEnd', temp_time);
- }
-}
-
-
-// UTC 标准时转 UTC+8 北京时间,来自:https://greasyfork.org/zh-CN/scripts/402808
-function getUTC8(datetime) {
- let month = (datetime.getMonth() + 1) < 10 ? "0" + (datetime.getMonth() + 1) : (datetime.getMonth() + 1);
- let date = datetime.getDate() < 10 ? "0" + datetime.getDate() : datetime.getDate();
- let hours = datetime.getHours() < 10 ? "0" + datetime.getHours() : datetime.getHours();
- let minutes = datetime.getMinutes() < 10 ? "0" + datetime.getMinutes() : datetime.getMinutes();
- let seconds = datetime.getSeconds() < 10 ? "0" + datetime.getSeconds() : datetime.getSeconds();
- return (datetime.getFullYear() + "-" + month + "-" + date + "\xa0\xa0" + hours + ":" + minutes + ":" + seconds);
-}
-
-
-// 默认站外直链,修改自:https://greasyfork.org/scripts/402808(从 JQuery 改为原生 JavaScript)
-function directLink () {
- let link, equal, colon, externalHref, protocol, path, newHref;
- // 文字链接
- link = document.querySelectorAll('a[class*="external"]')
- if (link) {
- link.forEach(function (_this) {
- if (_this.getElementsByTagName('span').length > 0) {
- newHref = _this.innerText;
- _this.setAttribute('href', newHref);
- } else if (_this.href.indexOf("link.zhihu.com/?target=") > -1) {
- externalHref = _this.href;
- newHref = externalHref.substring(externalHref = _this.href.indexOf('link.zhihu.com/?target=') + 'link.zhihu.com/?target='.length);
- _this.setAttribute('href', decodeURIComponent(newHref));
- } else {
- externalHref = _this.href;
- if (externalHref.lastIndexOf("https%3A")) {
- newHref = _this.href.substring(_this.href.lastIndexOf("https%3A"));
- } else if (externalHref.lastIndexOf("http%3A%2F%2F")) {
- newHref = _this.href.substring(_this.href.lastIndexOf("http%3A"));
- }
- _this.setAttribute('href', decodeURIComponent(newHref));
- }
- });
- }
-
- // 卡片链接
- link = document.querySelectorAll('a[class*="LinkCard"]:not([class*="MCNLinkCard"]):not([class*="ZVideoLinkCard"])')
- if (link) {
- link.forEach(function (_this) {
- if (_this.getElementsByTagName('LinkCard-title').length > 0 && _this.getElementsByTagName('LinkCard-title')[0].indexOf("http") > -1) {
- newHref = _this.getElementsByTagName('LinkCard-title').innerText;
- _this.setAttribute('href', newHref);
- } else if (_this.href.indexOf("link.zhihu.com/?target=") > -1) {
- externalHref = _this.href;
- newHref = externalHref.substring(externalHref = _this.href.indexOf("link.zhihu.com/?target=") + "link.zhihu.com/?target=".length);
- _this.setAttribute('href', decodeURIComponent(newHref));
- } else {
- externalHref = _this.href;
- if (externalHref.lastIndexOf("https%3A")) {
- newHref = _this.href.substring(_this.href.lastIndexOf("https%3A"));
- } else if (externalHref.lastIndexOf("http%3A%2F%2F")) {
- newHref = _this.href.substring(_this.href.lastIndexOf("http%3A"));
- }
- _this.setAttribute('href', decodeURIComponent(newHref));
- }
- });
- }
-
- // 旧版视频卡片链接
- link = document.querySelectorAll('a.VideoCard-link')
- if (link) {
- link.forEach(function (_this) {
- if (_this.href.indexOf('link.zhihu.com/?target=') > -1) {
- externalHref = _this.href;
- equal = externalHref.lastIndexOf('http');
- colon = externalHref.lastIndexOf('%3A');
- protocol = externalHref.substring(equal, colon);
- path = externalHref.substring(colon + 5, externalHref.length);
- newHref = protocol + '://' + path;
- _this.setAttribute('href', decodeURIComponent(newHref));
- }
- });
- }
-}
-
-
-// 默认高清原图,修改自:https://greasyfork.org/scripts/402808(从 JQuery 改为原生 JavaScript)
-function originalPic(){
- let pic = document.getElementsByTagName('img');if (!pic) return
- Array.from(pic).forEach(function(pic1){
- if (pic1.getAttribute('data-original') != undefined && pic1.className != 'comment_sticker') {
- if (pic1.getAttribute('src') != pic1.getAttribute('data-original')) {
- pic1.setAttribute('src', pic1.getAttribute('data-original'))
- }
- }
- });
-}
-
-
-// 默认折叠邀请,修改自:https://greasyfork.org/scripts/402808(从 JQuery 改为原生 JavaScript)
-function questionInvitation(){
- let timer = setInterval(function(){
- let QuestionInvitation = document.querySelector('.QuestionInvitation-content');if (!QuestionInvitation) return
- clearInterval(timer);
- QuestionInvitation.style.display = 'none';
- document.querySelector('.QuestionInvitation-title').innerHTML = document.querySelector('.QuestionInvitation-title').innerText + ' 展开/折叠'
- // 点击事件(展开/折叠)
- document.querySelector('.Topbar').onclick = function(){
- let QuestionInvitation = document.querySelector('.QuestionInvitation-content')
- if (QuestionInvitation.style.display == 'none') {
- QuestionInvitation.style.display = ''
- } else {
- QuestionInvitation.style.display = 'none'
- }
- }
- });
-}
-
-
-(function() {
- addLocationchange();
- removeLogin(); // 移除登录弹窗
- setInterval(originalPic,100); // 默认高清原图
- if (menu_value('menu_directLink')) setInterval(directLink, 100); // 默认站外直链
- window.addEventListener('locationchange', function(){ // 针对的是从单个回答页跳转到完整回答页时
- if (location.pathname.indexOf('question') > -1 && location.pathname.indexOf('waiting') === -1 && location.pathname.indexOf('/answer/') === -1) { // 回答页 //
- setTimeout(function(){
- collapsedNowAnswer('.QuestionPage'); // 收起当前回答 + 快捷返回顶部
- collapsedNowAnswer('.Question-main'); // 收起当前回答 + 快捷返回顶部
- questionRichTextMore(); // 展开问题描述
- blockUsers('question'); // 屏蔽指定用户
- blockYanXuan(); // 屏蔽盐选内容
- }, 300);
- }
- })
-
- if (GM_info.scriptHandler === 'Violentmonkey') { // Violentmonkey 比 Tampermonkey 加载更早,会导致一些元素还没加载,因此需要延迟一会儿
- setTimeout(start, 300);
- } else {
- start();
- }
-
- function start(){
- if (location.hostname != 'zhuanlan.zhihu.com') collapsedAnswer(); // 一键收起回答
- if (location.hostname != 'zhuanlan.zhihu.com') questionInvitation(); //默认折叠邀请
- closeFloatingComments(); // 快捷关闭悬浮评论(监听点击事件,点击网页两侧空白处)
- blockKeywords('comment'); // 屏蔽指定关键词(评论)
- if (location.pathname.indexOf('question') > -1) { // 回答页 //
- if (location.pathname.indexOf('waiting') == -1) {
- collapsedNowAnswer('.QuestionPage'); // 收起当前回答 + 快捷返回顶部
- collapsedNowAnswer('.Question-main'); // 收起当前回答 + 快捷返回顶部
- questionRichTextMore(); // 展开问题描述
- blockUsers('question'); // 屏蔽指定用户
- blockYanXuan(); // 屏蔽盐选内容
- defaultCollapsedAnswer(); // 默认收起回答
- }
- setInterval(topTime_question, 300); // 置顶显示时间
- } else if (location.pathname === '/search') { // 搜索结果页 //
- collapsedNowAnswer('main div'); // 收起当前回答 + 快捷返回顶部
- collapsedNowAnswer('.Search-container'); // 收起当前回答 + 快捷返回顶部
- setInterval(topTime_search, 300); // 置顶显示时间
- addTypeTips(); // 区分问题文章
- addToQuestion(); // 直达问题按钮
- blockUsers('search'); // 屏蔽指定用户
- blockKeywords('search'); // 屏蔽指定关键词
- blockType('search'); // 屏蔽指定类别(视频/文章等)
- } else if (location.pathname.indexOf('/topic/') > -1) { // 话题页 //
- if (location.pathname.indexOf('/hot') > -1 || location.href.indexOf('/top-answers') > -1) { // 仅限 [讨论] [精华]
- collapsedNowAnswer('main.App-main'); // 收起当前回答 + 快捷返回顶部
- collapsedNowAnswer('.ContentLayout'); // 收起当前回答 + 快捷返回顶部
- setInterval(topTime_people, 300); // 置顶显示时间
- addTypeTips(); // 区分问题文章
- addToQuestion(); // 直达问题按钮
- blockUsers('topic'); // 屏蔽指定用户
- blockKeywords('topic'); // 屏蔽指定关键词
- }
- } else if (location.hostname === 'zhuanlan.zhihu.com'){ // 文章 //
- backToTop('article.Post-Main.Post-NormalMain'); // 快捷返回顶部
- backToTop('div.Post-Sub.Post-NormalSub'); // 快捷返回顶部
- setInterval(topTime_zhuanlan, 300); // 置顶显示时间
- blockUsers(); // 屏蔽指定用户
- } else if (location.pathname.indexOf('/column/') > -1) { // 专栏 //
- collapsedNowAnswer('main div'); // 收起当前回答 + 快捷返回顶部
- setInterval(topTime_zhuanlan, 300); // 置顶显示时间
- blockUsers(); // 屏蔽指定用户
- } else if (location.pathname.indexOf('/people/') > -1 || location.href.indexOf('org') > -1) { // 用户主页 //
- if (location.pathname.split('/').length === 3) addTypeTips();addToQuestion(); // 区分问题文章、直达问题按钮
- collapsedNowAnswer('main div'); // 收起当前回答 + 快捷返回顶部
- collapsedNowAnswer('.Profile-main'); // 收起当前回答 + 快捷返回顶部
- setInterval(topTime_people, 300); // 置顶显示时间
- blockUsers('people'); // 屏蔽指定用户
- blockKeywords('people'); // 屏蔽指定关键词
- } else { // 首页 //
- collapsedNowAnswer('main div'); // 收起当前回答 + 快捷返回顶部
- collapsedNowAnswer('.Topstory-container'); // 收起当前回答 + 快捷返回顶部
- setInterval(topTime_index, 300); // 置顶显示时间
- addTypeTips(); // 区分问题文章
- addToQuestion(); // 直达问题按钮
- blockUsers('index'); // 屏蔽指定用户
- blockKeywords('index'); // 屏蔽指定关键词
- blockType(); // 屏蔽指定类别(视频/文章等)
- // 解决屏蔽视频后,因为首页信息流太少而没有滚动条导致无法加载更多内容的问题
- if (menu_value('menu_blockTypeVideo')) document.lastElementChild.appendChild(document.createElement('style')).textContent = '.Topstory-container{min-height: 1500px;}';
- }
- }
-})();// ==UserScript==
-// @name 知乎增强
-// @version 1.8.1
+// @version 1.8.2
// @author X.I.U
// @description 移除登录弹窗、屏蔽首页视频、默认收起回答、快捷收起当前回答/评论(左键两侧空白处)、快捷回到顶部(右键两侧空白处)、屏蔽用户 (发布的内容)、屏蔽关键词(标题/评论)、屏蔽盐选内容、净化标题消息、展开问题描述、置顶显示时间、完整问题时间、区分问题文章、直达问题按钮、默认高清原图、默认站外直链
// @match *://www.zhihu.com/*
From 5de420fd7cf5915b3bfeee0ff5b45527cd106377 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Tue, 30 Nov 2021 10:08:55 +0800
Subject: [PATCH 0017/1615] =?UTF-8?q?=E8=A1=A5=E5=85=85=20[=E5=9C=A8?=
=?UTF-8?q?=E7=BA=BF=E4=B9=8B=E5=AE=B6]=E3=80=81[=E6=A8=B1=E8=8A=B1?=
=?UTF-8?q?=E5=8A=A8=E6=BC=AB]=20=E5=85=B6=E4=BB=96=E5=9F=9F=E5=90=8D;=20?=
=?UTF-8?q?=E4=BC=98=E5=8C=96=20=E5=85=B6=E4=BB=96=E8=A7=84=E5=88=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 83 ++++++++++++++++++++++++------------------------
1 file changed, 41 insertions(+), 42 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index c4802d3b2..564172c98 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -104,11 +104,11 @@ pager: {
insertE: 用来插入元素的函数
5 = 插入 iframe 方式来加载下一页,无限套娃(适用于:部分动态加载内容的网站,需要允许 iframe 且支持通过 GET/POST 直接打开下一页)
- insStyle: 加载 iframe 前要插入的 CSS Style 样式
- iframe: 这个必须加到 page{} 外面
- forceTarget: 强制新标签页打开链接
+ insStyle: 加载 iframe 前要插入的 CSS Style 样式(比如为了悬浮的样式与下一页的重叠,隐藏网页底部间距提高阅读连续性)
+ iframe: 这个必须加到 pager{} 外面(这样才会在该域名的 iframe 框架下运行脚本)
+ forceTarget: 强制新标签页打开链接(适用于一些使用 pjax 技术的链接)
- 6 = 通过 iframe 获取下一页动态加载内容插入本页,只有一个娃(适用于:部分动态加载内容的网站,与上面不同的是,该模式适合简单的网页)
+ 6 = 通过 iframe 获取下一页动态加载内容插入本页,只有一个娃(适用于:部分动态加载内容的网站,与上面不同的是,该模式适合简单的网页,没有复杂事件什么的)
loadTime: 预留的网页加载时间,确保网页内容加载完成
forceTarget: 强制新标签页打开链接
@@ -157,7 +157,7 @@ function: {
discuz_guide: {
pager: {
type: 1,
- nextL: '//a[contains(@class, "nxt") or contains(@class, "next")][not(contains(@href, "javascript"))]',
+ nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
pageE: 'css;#threadlist table > tbody[id^="normalthread_"]',
replaceE: 'css;.pg, .pages',
scrollD: 1000
@@ -166,7 +166,7 @@ function: {
discuz_waterfall: {
pager: {
type: 1,
- nextL: '//a[contains(@class, "nxt") or contains(@class, "next")][not(contains(@href, "javascript"))]',
+ nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
pageE: 'css;#waterfall > li',
replaceE: 'css;.pg, .pages',
scrollD: 1000
@@ -176,7 +176,7 @@ function: {
insStyle: '.pgbtn {display: none;}',
pager: {
type: 1,
- nextL: '//a[contains(@class, "nxt") or contains(@class, "next")][not(contains(@href, "javascript"))]',
+ nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
pageE: 'css;#postlist > div[id^="post_"]',
replaceE: 'css;.pg, .pages',
scrollD: 1000
@@ -189,7 +189,7 @@ function: {
discuz_search: {
pager: {
type: 1,
- nextL: '//a[contains(@class, "nxt") or contains(@class, "next")][not(contains(@href, "javascript"))]',
+ nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
pageE: 'css;#threadlist > ul',
replaceE: 'css;.pg, .pages',
scrollD: 1000
@@ -198,7 +198,7 @@ function: {
discuz_youspace: {
pager: {
type: 1,
- nextL: '//a[contains(@class, "nxt") or contains(@class, "next")][not(contains(@href, "javascript"))]',
+ nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
pageE: 'css;tbody > tr:not(.th)',
replaceE: 'css;.pg, .pages',
scrollD: 1000
@@ -207,7 +207,7 @@ function: {
discuz_collection: {
pager: {
type: 1,
- nextL: '//a[contains(@class, "nxt") or contains(@class, "next")][not(contains(@href, "javascript"))]',
+ nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
pageE: 'css;#ct .bm_c table > tbody',
replaceE: 'css;.pg, .pages',
scrollD: 1000
@@ -412,7 +412,7 @@ function: {
history: true,
pager: {
type: 1,
- nextL: '//a[contains(@class,"sb_pagN")]',
+ nextL: 'css;a.sb_pagN',
pageE: 'css;#b_results > li:not(.b_msg):not([class="b_ans"]):not(.b_pag):not(#mfa_root)',
replaceE: 'css;#b_results > .b_pag',
scrollD: 1500
@@ -464,7 +464,7 @@ function: {
history: true,
pager: {
type: 1,
- nextL: '//div[contains(@class, "-pagination")]/a[contains(string(), "下一页")]',
+ nextL: '//div[contains(@class, "-pagination")]/a[string()="下一页"]',
pageE: 'css;div[class*="-result-list"] > .result-content[data-i]',
replaceE: 'css;div[class*="-pagination"]',
scrollD: 1500
@@ -625,7 +625,7 @@ function: {
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, .topic_list_box.topic-fixed {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: 5,
- nextL: '//li[contains(@class,"pb_list_pager")]/a[contains(text(),"下一页")]',
+ nextL: '//li[contains(@class,"pb_list_pager")]/a[text()="下一页"]',
insStyle: 'ul.tbui_aside_float_bar, .core_title_wrap_bright.tbui_follow_fixed.core_title_absolute_bright {display: none !important;}',
scrollD: 1500
}
@@ -754,7 +754,7 @@ function: {
}},
pager: {
type: 1,
- nextL: '//div[contains(@class, "pages")]/div[@class="links"]/a[contains(text(), "下一页")]',
+ nextL: '//div[contains(@class, "pages")]/div[@class="links"]/a[text()="下一页"]',
pageE: 'css;.tab-bbs-list > tbody:not(:first-of-type)',
replaceE: '//div[contains(@class, "pages")]',
scrollD: 1500
@@ -823,9 +823,8 @@ function: {
}},
pager: {
type: 1,
- nextL: '//a[@class="page_current"]/following-sibling::a[1]',
+ nextL: 'css;a.page_current+a.page_normal',
pageE: 'css;.cell.item',
- //insertP: ['//div[@id="Main"]//div[@class="box"]//div[@class="cell"][last()]', 1],
replaceE: 'css;#Main > .box > .cell[style]:not(.item) > table',
scrollD: 1500
},
@@ -837,7 +836,7 @@ function: {
v2ex_notifications: {
pager: {
type: 1,
- nextL: '//a[@class="page_current"]/following-sibling::a[1]',
+ nextL: 'css;a.page_current+a.page_normal',
pageE: 'css;#notifications > div',
replaceE: 'css;#Main > .box > .cell[style] > table',
scrollD: 1500
@@ -850,7 +849,7 @@ function: {
v2ex_replies: {
pager: {
type: 1,
- nextL: '//a[@class="page_current"]/following-sibling::a[1]',
+ nextL: 'css;a.page_current+a.page_normal',
pageE: '//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]',
insertP: ['//div[@id="Main"]//div[@class="box"]//div[@class="cell"][last()]', 1],
replaceE: 'css;#Main > .box > .cell[style] > table',
@@ -864,7 +863,7 @@ function: {
v2ex_go: {
pager: {
type: 1,
- nextL: '//a[@class="page_current"]/following-sibling::a[1]',
+ nextL: 'css;a.page_current+a.page_normal',
pageE: 'css;#TopicsNode > div',
replaceE: 'css;#Main > .box > .cell[style] > table',
scrollD: 1500
@@ -877,7 +876,7 @@ function: {
v2ex_balance: {
pager: {
type: 1,
- nextL: '//a[@class="page_current"]/following-sibling::a[1]',
+ nextL: 'css;a.page_current+a.page_normal',
pageE: 'css;#Main .box > div:not(.cell) > table > tbody > tr:not(:first-child)',
replaceE: 'css;#Main > .box > .cell[style] > table',
scrollD: 1000
@@ -987,7 +986,7 @@ function: {
}},
pager: {
type: 1,
- nextL: '//ul[contains(@class, "pagination")]//a[contains(text(), "▶")]',
+ nextL: '//a[@class="page-link" and text()="▶"]',
pageE: 'css;table.threadlist > tbody > tr',
replaceE: 'css;ul.pagination',
scrollD: 1500
@@ -996,7 +995,7 @@ function: {
pediy_thread: {
pager: {
type: 1,
- nextL: '//ul[contains(@class, "pagination")]//a[contains(text(), "▶")]',
+ nextL: '//a[@class="page-link" and text()="▶"]',
pageE: 'css;table.postlist > tbody > tr[data-pid]',
replaceE: 'css;ul.pagination',
scrollD: 1500
@@ -1012,7 +1011,7 @@ function: {
}},
pager: {
type: 1,
- nextL: '//div[@class="page_inner"]/a[contains(text(), "››")]',
+ nextL: '//div[@class="page_inner"]/a[text()="››"]',
pageE: 'css;ul#browserItemList > li',
replaceE: 'css;.page_inner',
scrollD: 1500
@@ -1021,7 +1020,7 @@ function: {
bangumitv_forum: {
pager: {
type: 1,
- nextL: '//div[@class="page_inner"]/a[contains(text(), "››")]',
+ nextL: '//div[@class="page_inner"]/a[text()="››"]',
pageE: 'css;.topic_list > tbody:last-of-type > tr.topic',
replaceE: 'css;.page_inner',
scrollD: 1500
@@ -1063,7 +1062,7 @@ function: {
}},
pager: {
type: 1,
- nextL: '//div[@class="fr i3_r"]/a[contains(text(), "后一页")]',
+ nextL: '//div[@class="fr i3_r"]/a[text()="后一页"]',
pageE: 'css;ul.main_List > li.i2:not(.h_bg)',
replaceE: 'css;ul.main_List > li.i3',
scrollD: 1000
@@ -1072,7 +1071,7 @@ function: {
kdslife_t: {
pager: {
type: 1,
- nextL: '//div[@class="pages"]/a[contains(text(), ">>")]',
+ nextL: '//div[@class="pages"]/a[text()=">>"]',
pageE: 'css;#reply_list_panel > *, script[src*="ui/js/kds.js"]',
insertP: ['css;#reply_list_panel', 3],
replaceE: 'css;.pages',
@@ -1221,7 +1220,7 @@ function: {
functionS: function() {if (indexOF('/forum')) {curSite = DBSite.lieyou;}},
pager: {
type: 1,
- nextL: '//div[contains(@class, "_pageNav")]/a[contains(text(), "下一页")]',
+ nextL: '//div[contains(@class, "_pageNav")]/a[text()="下一页"]',
pageE: 'css;ul.gb-bbs-list > li',
replaceE: 'css;._pageNav',
scrollD: 1000
@@ -1300,7 +1299,7 @@ function: {
}},
pager: {
type: 1,
- nextL: '//ul[contains(@class, "pagination")]//a[contains(text(), "下一页")]',
+ nextL: '//ul[contains(@class, "pagination")]//a[text()="下一页"]',
pageE: 'css;.h-threads-list > *, script[src$="/h.desktop.js"]',
insertP: ['css;.h-threads-list', 3],
replaceE: '//ul[contains(@class, "pagination")]',
@@ -1311,7 +1310,7 @@ function: {
adnmb3_t: {
pager: {
type: 1,
- nextL: '//ul[contains(@class, "pagination")]//a[contains(text(), "下一页")]',
+ nextL: '//ul[contains(@class, "pagination")]//a[text()="下一页"]',
pageE: 'css;.h-threads-list > .h-threads-item > .h-threads-item-replys, script[src$="/h.desktop.js"]',
insertP: ['css;.h-threads-list > .h-threads-item', 3],
replaceE: '//ul[contains(@class, "pagination")]',
@@ -1322,7 +1321,7 @@ function: {
adnmb3_mf: {
pager: {
type: 1,
- nextL: '//li[contains(@class, "pagination-next")]//a[contains(text(), "下一页")]',
+ nextL: '//li[contains(@class, "pagination-next")]//a[text()="下一页"]',
pageE: 'css;.h-middle > div[id^="threads_"], .h-middle > hr.h-middle > div[id^="threads_"], .h-middle > hr:nth-of-type(n+2), script[src$="/h.mobile.js"]',
insertP: ['css;#h-threads-pagination', 1],
replaceE: 'css;#h-threads-pagination',
@@ -1333,7 +1332,7 @@ function: {
adnmb3_mt: {
pager: {
type: 1,
- nextL: '//li[contains(@class, "pagination-next")]//a[contains(text(), "下一页")]',
+ nextL: '//li[contains(@class, "pagination-next")]//a[text()="下一页"]',
pageE: 'css;.h-threads-replylist > div, script[src$="/h.mobile.js"]',
insertP: ['css;.h-threads-replylist', 3],
replaceE: 'css;#h-threads-pagination',
@@ -1964,7 +1963,7 @@ function: {
functionS: function() {if (lp == '/search.php' || indexOF('/list/')) {curSite = DBSite.nfmovies;}},
pager: {
type: 1,
- nextL: '//ul[contains(@class, "myui-page")]/li/a[contains(text(), "下一页")]',
+ nextL: '//ul[contains(@class, "myui-page")]/li/a[text()="下一页"]',
pageE: 'css;ul.myui-vodlist > li',
replaceE: 'css;ul.myui-page',
scrollD: 1500
@@ -1975,12 +1974,12 @@ function: {
}
}, // 奈菲影视
zxzj: {
- host: 'www.zxzj.me',
+ host: ['www.zxzj.me', 'www.zxzj.fun'],
functionS: function() {if (location.pathname != '/' && !indexOF('/detail/') && !indexOF('/video/')) {curSite = DBSite.zxzj;}},
insStyle: 'div.stui-page__all {display: none !important;}',
pager: {
type: 1,
- nextL: '//ul[contains(@class, "stui-page__item")]//a[contains(text(), "下一页")]',
+ nextL: '//ul[contains(@class, "stui-page__item")]//a[text()="下一页"]',
pageE: 'css;ul.stui-vodlist > li',
replaceE: 'css;ul.stui-page__item',
scrollD: 1000
@@ -2025,7 +2024,7 @@ function: {
functionS: function() {if (indexOF('/vodtype/')) {curSite = DBSite.zhenbuka;}},
pager: {
type: 1,
- nextL: '//ul[contains(@class, "stui-page")]/li/a[contains(text(), "下一页")]',
+ nextL: '//ul[contains(@class, "stui-page")]/li/a[text()="下一页"]',
pageE: 'css;ul.stui-vodlist > li',
replaceE: 'css;ul.stui-page',
scrollD: 1500
@@ -2099,7 +2098,7 @@ function: {
}},
pager: {
type: 1,
- nextL: '//div[contains(@class, "page")]/a[contains(text(), ">")]',
+ nextL: '//div[contains(@class, "page")]/a[text()=">"]',
pageE: 'css;.index-tj > ul > li',
replaceE: 'css;.page',
scrollD: 1000
@@ -2111,10 +2110,10 @@ function: {
}, // 漫岛动漫
yxdm: {
host: 'www.yxdm.li',
- functionS: function() {if (indexOF('/search') || indexOF('/category')) {curSite = DBSite.yxdm;}},
+ functionS: function() {if (indexOF('/search') || indexOF('/category') || indexOF('/resource')) {curSite = DBSite.yxdm;}},
pager: {
type: 1,
- nextL: '//a[@class="nextPage" or contains(text(), "下一页")]',
+ nextL: '//a[@class="nextPage" or text()="下一页"]',
pageE: 'css;.dhnew > ul > li',
replaceE: 'css;.pagelist',
scrollD: 2000
@@ -2125,7 +2124,7 @@ function: {
functionS: function() {if (indexOF('/search') || indexOF('/type')) {curSite = DBSite.nicotv;}},
pager: {
type: 1,
- nextL: '//ul[contains(@class, "pagination ")]//a[contains(text(), "»")]',
+ nextL: '//ul[contains(@class, "pagination ")]//a[text()="»"]',
pageE: 'css;ul.list-unstyled > li',
replaceE: 'css;ul.pagination ',
scrollD: 1000
@@ -2136,7 +2135,7 @@ function: {
}
}, // 妮可动漫
yhdm: {
- host: 'www.imomoe.la',
+ host: ['www.imomoe.la', 'www.imomoe.live'],
functionS: function() {if (indexOF('/list/')) {
curSite = DBSite.yhdm;
} else if (lp == '/so.asp' || lp == '/search.asp') {
@@ -2144,7 +2143,7 @@ function: {
}},
pager: {
type: 1,
- nextL: '//div[@class="pages"]/a[contains(text(), "下一页")]',
+ nextL: '//div[@class="pages"]/a[text()="下一页"]',
pageE: 'css;#contrainer > .img> ul > li',
replaceE: 'css;.pages',
scrollD: 1000
@@ -2153,7 +2152,7 @@ function: {
yhdm_: {
pager: {
type: 1,
- nextL: '//div[@class="pages"]/a[contains(text(), "下一页")]',
+ nextL: '//div[@class="pages"]/a[text()="下一页"]',
pageE: 'css;#contrainer .fire .pics > ul > li',
replaceE: 'css;.pages',
scrollD: 1000
From 6632ed1f1b5dcafbf5caf43a33c4c6c506b7a622 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Tue, 30 Nov 2021 11:36:50 +0800
Subject: [PATCH 0018/1615] README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index fe87db994..69febc4f1 100644
--- a/README.md
+++ b/README.md
@@ -50,7 +50,7 @@
- 如果 GreasyFork 访问速度太慢,可以选择点击 **\[备用\]** 后弹出扩展提示,再去点击 **\[安装\]** 即可。
> _其他基于 **Chromium** 内核的浏览器(如国内套皮浏览器)一般都可以使用 Chrome 扩展。_
-> _请确保使用 **Tampermonkey** 扩展,其他的用户脚本管理器可能导致**无法正常使用**脚本。_
+> _请确保使用 **Tampermonkey 正式版** 扩展,其他的用户脚本管理器可能导致**无法正常使用**脚本。_
> _**不会离线安装 .crx 扩展?[Chrome、Edge 重新开启隐藏的 [拖入安装 .crx 扩展] 功能!](https://zhuanlan.zhihu.com/p/276027099)**_
From ab6897e7b23f6e051855500a443408ded1edb1e5 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Tue, 30 Nov 2021 22:38:53 +0800
Subject: [PATCH 0019/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E7=B4=A0?=
=?UTF-8?q?=E6=9D=90=E4=B8=AD=E5=9B=BD]=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 | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 564172c98..6d23f17d4 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 3.9.1
+// @version 3.9.2
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -1471,6 +1471,26 @@ function: {
pF: [0, 'img[data-original]', 'data-original']
}
}, // 昵图网
+ sccnn: {
+ host: 'www.sccnn.com',
+ pager: {
+ type: 1,
+ nextL: '//ul[@class="listpage"]//a[text()=">"]',
+ pageE: 'css;td[valign="TOP"]:not([width]) tr[valign="Middle"]',
+ replaceE: 'css;ul.listpage',
+ scrollD: 1000
+ }
+ }, // 素材中国
+ sccnn_so: {
+ host: 'so.sccnn.com',
+ pager: {
+ type: 1,
+ nextL: 'css;font[color="Red"]+a.F16',
+ pageE: '//tr[@valign="Top"][1]/preceding-sibling::tr',
+ replaceE: '//tr[@valign="Top"][last()]',
+ scrollD: 1000
+ }
+ }, // 素材中国
pixabay: {
host: 'pixabay.com',
pager: {
From 6dd0d7fcfca6df9299684f3b6114ec9b3ede7975 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Wed, 1 Dec 2021 10:37:35 +0800
Subject: [PATCH 0020/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E7=B2=BE?=
=?UTF-8?q?=E5=93=81=E7=BE=8E=E5=A5=B3]=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 | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 6d23f17d4..2603cbe4d 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 3.9.2
+// @version 3.9.3
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -5041,6 +5041,27 @@ function: {
scrollD: 1000
}
}, // King爱模 - 分类页
+ jpmn8: {
+ host: 'www.jpmn8.com',
+ functionS: function() {if (indexOF(/\/\d+\.html/)) {curSite = DBSite.jpmn8;} else if (location.pathname != '/') {curSite = DBSite.jpmn8_list;}},
+ insStyle: 'img[onload] {min-height: 500px;}',
+ pager: {
+ type: 1,
+ nextL: '//div[@class="pagination1"]//a[text()="下一页"]',
+ pageE: 'css;img[onload]',
+ replaceE: 'css;.pagination1',
+ scrollD: 3000
+ }
+ }, // 精品美女 - 图片页
+ jpmn8_list: {
+ pager: {
+ type: 1,
+ nextL: '//div[@class="pagination1"]//a[text()="下一页"]',
+ pageE: 'css;article.excerpt',
+ replaceE: 'css;.pagination1',
+ scrollD: 1500
+ }
+ }, // 精品美女 - 分类页
cadtutor: {
host: 'www.cadtutor.net',
functionS: function() {
From 7de8b483189a7bd85a1bf851278c3034c97f16fb Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Wed, 1 Dec 2021 11:05:42 +0800
Subject: [PATCH 0021/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E7=A7=BB?=
=?UTF-8?q?=E9=99=A4=E9=AB=98=E4=BA=AE=E9=93=BE=E6=8E=A5]=20=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Zhihu-Enhanced.user.js | 33 +++++++++++++++++++++++++++++----
1 file changed, 29 insertions(+), 4 deletions(-)
diff --git a/Zhihu-Enhanced.user.js b/Zhihu-Enhanced.user.js
index 64b871805..d01e79f98 100644
--- a/Zhihu-Enhanced.user.js
+++ b/Zhihu-Enhanced.user.js
@@ -1,8 +1,8 @@
// ==UserScript==
// @name 知乎增强
-// @version 1.8.2
+// @version 1.8.3
// @author X.I.U
-// @description 移除登录弹窗、屏蔽首页视频、默认收起回答、快捷收起当前回答/评论(左键两侧空白处)、快捷回到顶部(右键两侧空白处)、屏蔽用户 (发布的内容)、屏蔽关键词(标题/评论)、屏蔽盐选内容、净化标题消息、展开问题描述、置顶显示时间、完整问题时间、区分问题文章、直达问题按钮、默认高清原图、默认站外直链
+// @description 移除登录弹窗、屏蔽首页视频、默认收起回答、快捷收起当前回答/评论(左键两侧空白处)、快捷回到顶部(右键两侧空白处)、屏蔽用户 (发布的内容)、屏蔽关键词(标题/评论)、移除高亮链接、屏蔽盐选内容、净化标题消息、展开问题描述、置顶显示时间、完整问题时间、区分问题文章、直达问题按钮、默认高清原图、默认站外直链
// @match *://www.zhihu.com/*
// @match *://zhuanlan.zhihu.com/*
// @icon https://static.zhihu.com/heifetz/favicon.ico
@@ -37,6 +37,7 @@ var menu_ALL = [
['menu_blockTypeArticle', '文章 [首页、搜索页]', '文章(首页、搜索页)', false],
['menu_blockTypeTopic', '话题 [搜索页]', '话题(搜索页)', false],
['menu_blockTypeSearch', '杂志文章、相关搜索等 [搜索页]', '相关搜索、杂志等(搜索页)', false],
+ ['menu_removeHighlightLink', '移除高亮链接', '移除高亮链接', true],
['menu_blockYanXuan', '屏蔽盐选内容', '屏蔽盐选内容', false],
['menu_cleanTitles', '净化标题消息 (标题中的私信/消息)', '净化标题提醒', false],
['menu_questionRichTextMore', '展开问题描述', '展开问题描述', false],
@@ -930,6 +931,27 @@ function findParentElement(item, className, type = false) {
}
+// 移除高亮链接
+function removeHighlightLink() {
+ if (!menu_value('menu_removeHighlightLink')) return
+ const callback = (mutationsList, observer) => {
+ for (const mutation of mutationsList) {
+ for (const target of mutation.addedNodes) {
+ if (target.nodeType != 1 || target.tagName != 'A') break
+ if (target.dataset.zaNotTrackLink && target.href.indexOf('https://www.zhihu.com/search?q=') > -1) {
+ target.parentElement.replaceWith(target.textContent);
+ }
+ }
+ }
+ };
+ const observer = new MutationObserver(callback);
+ observer.observe(document, { childList: true, subtree: true });
+
+ // 针对的是打开网页后直接加载的前面几个回答(上面哪些是针对动态加载的回答)
+ document.querySelectorAll('span > a[data-za-not-track-link][href^="https://www.zhihu.com/search?q="]').forEach(e => e.parentElement.replaceWith(e.textContent))
+}
+
+
// 屏蔽盐选内容
function blockYanXuan() {
if (!menu_value('menu_blockYanXuan')) return
@@ -1434,8 +1456,11 @@ function questionInvitation(){
}
function start(){
- if (location.hostname != 'zhuanlan.zhihu.com') collapsedAnswer(); // 一键收起回答
- if (location.hostname != 'zhuanlan.zhihu.com') questionInvitation(); //默认折叠邀请
+ removeHighlightLink(); // 移除高亮链接
+ if (location.hostname != 'zhuanlan.zhihu.com') {
+ collapsedAnswer(); // 一键收起回答
+ questionInvitation(); // 默认折叠邀请
+ }
closeFloatingComments(); // 快捷关闭悬浮评论(监听点击事件,点击网页两侧空白处)
blockKeywords('comment'); // 屏蔽指定关键词(评论)
if (location.pathname.indexOf('question') > -1) { // 回答页 //
From dfeb175fbab9b4732cb3f37fe54dd4451ac4d41a Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Wed, 1 Dec 2021 12:38:40 +0800
Subject: [PATCH 0022/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[F=20=E6=90=9C]?=
=?UTF-8?q?=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 | 31 ++++++++++++++++++++++++++++---
1 file changed, 28 insertions(+), 3 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 2603cbe4d..74cb2f565 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 3.9.3
+// @version 3.9.4
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -589,10 +589,27 @@ function: {
type: 1,
nextL: 'css;li.PartialWebPagination-next > a',
pageE: 'css;.PartialSearchResults.mid',
- replaceE: 'css;.PartialWebPagination ',
+ replaceE: 'css;.PartialWebPagination',
scrollD: 2000
}
}, // ASK 搜索
+ fsou: {
+ host: 'fsou.cc',
+ functionS: function() {if (lp == '/search') {curSite = DBSite.fsou;}},
+ history: true,
+ retry: 1000,
+ pager: {
+ type: 6,
+ nextL: () => getNextP('css;.selected.turn-page-text.turn-page-num', 'pageIndex=', /pageIndex=\d+/),
+ pageE: 'css;#search-result > div',
+ replaceE: 'css;.bottom-pagination',
+ loadTime: 1000,
+ scrollD: 3000
+ },
+ function: {
+ bF: fsou_bF
+ }
+ }, // F 搜
baidu_tieba: {
host: 'tieba.baidu.com',
functionS: function() {if (lp == '/f') {
@@ -5344,6 +5361,14 @@ function: {
}
+ // [F 搜] 的插入前函数(移除旧页码)
+ function fsou_bF(pageElems) {
+ let old = getCSS('.bottom-pagination')
+ if (old) old.remove();
+ return pageElems
+ }
+
+
// [SkrBT] 获取下一页地址
function skrbt_nextL() {
let page = getCSS('a[onclick][aria-label="Next"]');
@@ -6338,7 +6363,7 @@ function: {
// 暂停翻页
if (!pausePage) return
pausePage = false
-
+ console.log(src)
// 如果不存在,则创建一个 iframe
let iframe = document.getElementById('xiu_iframe');
if (!iframe) {
From 57998e5d782169db7d2b1ca6845f3d76f9416552 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Wed, 1 Dec 2021 13:48:12 +0800
Subject: [PATCH 0023/1615] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E4=BB=A3?=
=?UTF-8?q?=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
GithubEnhanced-High-Speed-Download.user.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/GithubEnhanced-High-Speed-Download.user.js b/GithubEnhanced-High-Speed-Download.user.js
index 9b39017f5..8a5a70491 100644
--- a/GithubEnhanced-High-Speed-Download.user.js
+++ b/GithubEnhanced-High-Speed-Download.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name Github 增强 - 高速下载
-// @version 1.7.0
+// @version 1.7.1
// @author X.I.U
// @description 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件、项目列表单文件快捷下载 (☁)
// @match *://github.com/*
@@ -37,8 +37,8 @@
}
const download_url = [
['https://pd.zwc365.com/seturl/https://github.com', '美国 1'],
- ['https://gh.api.99988866.xyz/https://github.com', '美国 2'],
- ['https://gh.xiu2.xyz/https://github.com', '美国 3'],
+ ['https://gh.xiu2.xyz/https://github.com', '美国 2'],
+ ['https://gh.api.99988866.xyz/https://github.com', '美国 3'],
['https://github.rc1844.workers.dev', '美国 4'],
['https://download.fastgit.org', '日本'],
['https://ghproxy.com/https://github.com', '韩国'],
@@ -168,7 +168,7 @@
}
for (let i=0;i${svg[0]}Download ZIP ${download_url[i][1]}`
+ _html += `${svg[0]}Download ZIP ${download_url[i][1]}`
}
html.insertAdjacentHTML('afterend', _html);
}
From 894e902541b6acf1793090e5af3d0fab91580670 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Wed, 1 Dec 2021 22:44:10 +0800
Subject: [PATCH 0024/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E7=BE=8E?=
=?UTF-8?q?=E5=A5=B3=E5=A5=97=E5=9B=BE]=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 | 67 +++++++++++++++++++++++++++++++++---------------
1 file changed, 46 insertions(+), 21 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 74cb2f565..781e74a29 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 3.9.4
+// @version 3.9.5
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -1488,26 +1488,6 @@ function: {
pF: [0, 'img[data-original]', 'data-original']
}
}, // 昵图网
- sccnn: {
- host: 'www.sccnn.com',
- pager: {
- type: 1,
- nextL: '//ul[@class="listpage"]//a[text()=">"]',
- pageE: 'css;td[valign="TOP"]:not([width]) tr[valign="Middle"]',
- replaceE: 'css;ul.listpage',
- scrollD: 1000
- }
- }, // 素材中国
- sccnn_so: {
- host: 'so.sccnn.com',
- pager: {
- type: 1,
- nextL: 'css;font[color="Red"]+a.F16',
- pageE: '//tr[@valign="Top"][1]/preceding-sibling::tr',
- replaceE: '//tr[@valign="Top"][last()]',
- scrollD: 1000
- }
- }, // 素材中国
pixabay: {
host: 'pixabay.com',
pager: {
@@ -1532,6 +1512,26 @@ function: {
scrollD: 1500
}
}, // 搜图神器 (免费无版权)
+ sccnn: {
+ host: 'www.sccnn.com',
+ pager: {
+ type: 1,
+ nextL: '//ul[@class="listpage"]//a[text()=">"]',
+ pageE: 'css;td[valign="TOP"]:not([width]) tr[valign="Middle"]',
+ replaceE: 'css;ul.listpage',
+ scrollD: 1000
+ }
+ }, // 素材中国
+ sccnn_so: {
+ host: 'so.sccnn.com',
+ pager: {
+ type: 1,
+ nextL: 'css;font[color="Red"]+a.F16',
+ pageE: '//tr[@valign="Top"][1]/preceding-sibling::tr',
+ replaceE: '//tr[@valign="Top"][last()]',
+ scrollD: 1000
+ }
+ }, // 素材中国 - 搜索页
iconfont: {
host: 'www.iconfont.cn',
functionS: function() {locationC = true; if (indexOF('/search/')) curSite = DBSite.iconfont;},
@@ -5037,6 +5037,31 @@ function: {
scrollD: 1500
}
}, // 美女写真 - 手机版 - 分类页
+ mnttz: {
+ host: 'www.mnttz.com',
+ functionS: function() {if (indexOF(/\/\d+\.html/)) {curSite = DBSite.mnttz;} else {curSite = DBSite.mnttz_list;}},
+ insStyle: 'img.content_img {min-height: 500px;}',
+ pager: {
+ type: 1,
+ nextL: 'css;.article-paging > span+a',
+ pageE: 'css;img.content_img',
+ replaceE: 'css;.article-paging',
+ scrollD: 3000
+ }
+ }, // 美女套图 - 图片页
+ mnttz_list: {
+ pager: {
+ type: 1,
+ nextL: 'css;li.next-page > a',
+ pageE: 'css;article.excerpt',
+ replaceE: 'css;.pagination',
+ scrollD: 1500
+ },
+ function: {
+ bF: src_bF,
+ pF: [0, 'img[data-src]', 'data-src']
+ }
+ }, // 美女套图 - 分类页
kingdom: {
host: ['kingdom-en.com', 'www.kingdom-en.com', 'm.kingdom-en.com'],
functionS: function() {if (indexOF(/\/\d+\.html/)) {curSite = DBSite.kingdom;} else {curSite = DBSite.kingdom_list;}},
From 2ea677b5dfc265e6911e6202d18d8890f9f39f66 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Thu, 2 Dec 2021 09:53:53 +0800
Subject: [PATCH 0025/1615] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E7=BB=86?=
=?UTF-8?q?=E8=8A=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
GithubEnhanced-High-Speed-Download.user.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/GithubEnhanced-High-Speed-Download.user.js b/GithubEnhanced-High-Speed-Download.user.js
index 8a5a70491..488267e1e 100644
--- a/GithubEnhanced-High-Speed-Download.user.js
+++ b/GithubEnhanced-High-Speed-Download.user.js
@@ -168,7 +168,7 @@
}
for (let i=0;i${svg[0]}Download ZIP ${download_url[i][1]}`
+ _html += `${svg[0]}Download ZIP ${download_url[i][1]}`
}
html.insertAdjacentHTML('afterend', _html);
}
From 8af1bf4be5b53f23e6993609bbadb441c647ed66 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Thu, 2 Dec 2021 14:12:12 +0800
Subject: [PATCH 0026/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[DuckDuckGo=20?=
=?UTF-8?q?=E5=A2=9E=E5=BC=BA]=20=E8=84=9A=E6=9C=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
DuckDuckGo-Enhanced.user.js | 145 ++++++++++++++++++++++++++++++++++++
README.md | 1 +
2 files changed, 146 insertions(+)
create mode 100644 DuckDuckGo-Enhanced.user.js
diff --git a/DuckDuckGo-Enhanced.user.js b/DuckDuckGo-Enhanced.user.js
new file mode 100644
index 000000000..6a243e268
--- /dev/null
+++ b/DuckDuckGo-Enhanced.user.js
@@ -0,0 +1,145 @@
+// ==UserScript==
+// @name DuckDuckGo 增强
+// @version 1.0.0
+// @author X.I.U
+// @description 屏蔽指定域名、修复图标加载、链接不携来源、快捷回到顶部(右键两侧空白处)
+// @match https://duckduckgo.com/*
+// @icon https://duckduckgo.com/favicon.ico
+// @grant GM_registerMenuCommand
+// @grant GM_unregisterMenuCommand
+// @grant GM_openInTab
+// @grant GM_getValue
+// @grant GM_setValue
+// @grant GM_notification
+// @license GPL-3.0 License
+// @run-at document-end
+// @namespace https://github.com/XIU2/UserScript
+// @supportURL https://github.com/XIU2/UserScript
+// @homepageURL https://github.com/XIU2/UserScript
+// ==/UserScript==
+
+(function() {
+ 'use strict';
+ var menu_ALL = [
+ ['menu_blockDomainBtn', '显示屏蔽按钮', '显示屏蔽按钮', true],
+ ['menu_blockDomain', '编辑屏蔽域名', '编辑屏蔽域名', []],
+ ['menu_backToTop', '快捷回到顶部', '快捷回到顶部', true]
+ ], menu_ID = [];
+ for (let i=0;i menu_ALL.length){for (let i=0;i {
+ for (const mutation of mutationsList) {
+ for (const target of mutation.addedNodes) {
+ if (target.nodeType != 1) break
+
+ // 屏蔽指定域名
+ if (target.dataset.domain && checkDomain(target.dataset.domain)) {target.remove(); break;}
+
+ // 修复图标加载
+ let img = target.querySelector('img.result__icon__img[data-src]'); // 寻找图标元素
+ if (img && !img.src) img.src = img.dataset.src
+
+ // 链接不携来源
+ addRel(target);
+
+ // 添加屏蔽按钮
+ addBlockDomainBtn(target, target.dataset.domain);
+ }
+ }
+ };
+ const observer = new MutationObserver(callback);
+ observer.observe(document, { childList: true, subtree: true });
+ }
+
+
+ // 检查域名是否存在黑名单中
+ function checkDomain(domain) {
+ let blockDomain = GM_getValue('menu_blockDomain');
+ for (let i=0; i屏蔽`);
+ doc.querySelector('button.blockDomainBtn').addEventListener('click', function(e) {
+ e.stopPropagation();
+ // 追加屏蔽域名
+ let blockDomain = GM_getValue('menu_blockDomain');
+ blockDomain.push(e.target.dataset.domain)
+ GM_setValue('menu_blockDomain', blockDomain);
+ // 隐藏该域名的所有搜索结果
+ document.querySelectorAll(`#links > div[data-domain="${e.target.dataset.domain}"]`).forEach(function(one){one.style.display = 'none'})
+ });
+ }
+ }
+
+
+ // 快捷回到顶部(右键两侧空白处)
+ function backToTop() {
+ if (!GM_getValue('menu_backToTop')) return
+ document.getElementById('web_content_wrapper').oncontextmenu = document.getElementById('links_wrapper').oncontextmenu = function(e){
+ if (e.target == this) {
+ e.preventDefault();
+ window.scrollTo(0,0);
+ }
+ }
+ }
+})();
\ No newline at end of file
diff --git a/README.md b/README.md
index 69febc4f1..0ffedf1d2 100644
--- a/README.md
+++ b/README.md
@@ -29,6 +29,7 @@
| [
](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://store.steampowered.com) | **DuckDuckGo 增强** | **屏蔽指定域名**、修复图标加载、链接不携来源、快捷回到... | **[安装](https://greasyfork.org/zh-CN/scripts/436428)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript/DuckDuckGo-Enhanced.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)** |
From 093c43cd4282008078f96a6e197e7eb55852ed2e Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Thu, 2 Dec 2021 18:12:34 +0800
Subject: [PATCH 0027/1615] README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 0ffedf1d2..c9b31f247 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@
## 如何安装/使用脚本?
-要使用任何脚本,首先需要浏览器安装 **Tampermonkey 脚本管理器扩展([Chrome](https://xiu.lanzoux.com/b073l8d1e)** / **[Firefox](https://addons.mozilla.org/firefox/addon/tampermonkey/)** / **[Edge](https://microsoftedge.microsoft.com/addons/detail/tampermonkey/iikmkjmpaadaobahmlepeloendndfphd?hl=zh-CN))。**
+要使用任何脚本,首先需要浏览器安装 **Tampermonkey 脚本管理器扩展([Chrome](https://xiu.lanzouo.com/b073l8d1e)** / **[Firefox](https://addons.mozilla.org/firefox/addon/tampermonkey/)** / **[Edge](https://microsoftedge.microsoft.com/addons/detail/tampermonkey/iikmkjmpaadaobahmlepeloendndfphd?hl=zh-CN))。**
- 点击表格 **\[安装\]** 进入 GreasyFork 网页,点击 **\[安装脚本\]** 后弹出扩展提示,再点击 **\[安装\]** 即可。
- 如果 GreasyFork 访问速度太慢,可以选择点击 **\[备用\]** 后弹出扩展提示,再去点击 **\[安装\]** 即可。
From f7d3473b62c0ec16cf940380997c5bbd6257b3ee Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Thu, 2 Dec 2021 18:23:26 +0800
Subject: [PATCH 0028/1615] =?UTF-8?q?=E8=A1=A5=E5=85=85=20=E6=96=B0?=
=?UTF-8?q?=E7=9A=84=E5=88=86=E4=BA=AB=E9=93=BE=E6=8E=A5=E5=9F=9F=E5=90=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Lanzou-Enhanced.user.js | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/Lanzou-Enhanced.user.js b/Lanzou-Enhanced.user.js
index 692f7388f..0213e53dc 100644
--- a/Lanzou-Enhanced.user.js
+++ b/Lanzou-Enhanced.user.js
@@ -1,11 +1,12 @@
// ==UserScript==
// @name 蓝奏云网盘增强
-// @version 1.3.5
+// @version 1.3.6
// @author X.I.U
// @description 刷新不回根目录、后退返回上一级、右键文件显示菜单、点击直接下载文件、自动显示更多文件、自定义分享链接域名、自动打开/复制分享链接、带密码的分享链接自动输密码、拖入文件自动显示上传框、输入密码后回车确认、调整描述(话说)编辑框初始大小
// @match *://*.lanzous.com/*
// @match *://*.lanzoux.com/*
// @match *://*.lanzoui.com/*
+// @match *://*.lanzouo.com/*
// @match *://pan.lanzou.com/*
// @match *://lanzou.com/u
// @match *://www.lanzou.com/account.php*
@@ -99,9 +100,7 @@
if (window.top.location.pathname === '/u' || window.top.location.pathname.indexOf('account.php') > -1 || window.top.location.pathname.indexOf('mydisk.php') > -1) { // 后台页
- if (window.top.location.href != 'https://pc.woozooo.com/mydisk.php') {
- window.top.location.href = "https://pc.woozooo.com/mydisk.php"
- }
+ if (window.top.location.href != 'https://pc.woozooo.com/mydisk.php') window.top.location.href = 'https://pc.woozooo.com/mydisk.php';
var mainframe;
iframe();
} else if (window.top.location.pathname.indexOf('%') > -1) { // > 带密码的分享链接页面
From aedf00b99d17b918c5b1dd4fda96a263be017364 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Thu, 2 Dec 2021 18:28:27 +0800
Subject: [PATCH 0029/1615] README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index c9b31f247..41ef43bb5 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@
## 如何安装/使用脚本?
-要使用任何脚本,首先需要浏览器安装 **Tampermonkey 脚本管理器扩展([Chrome](https://xiu.lanzouo.com/b073l8d1e)** / **[Firefox](https://addons.mozilla.org/firefox/addon/tampermonkey/)** / **[Edge](https://microsoftedge.microsoft.com/addons/detail/tampermonkey/iikmkjmpaadaobahmlepeloendndfphd?hl=zh-CN))。**
+要使用任何脚本,首先需要浏览器安装 **Tampermonkey 脚本管理器扩展([Chrome](https://pan.lanzouo.com/b073l8d1e)** / **[Firefox](https://addons.mozilla.org/firefox/addon/tampermonkey/)** / **[Edge](https://microsoftedge.microsoft.com/addons/detail/tampermonkey/iikmkjmpaadaobahmlepeloendndfphd?hl=zh-CN))。**
- 点击表格 **\[安装\]** 进入 GreasyFork 网页,点击 **\[安装脚本\]** 后弹出扩展提示,再点击 **\[安装\]** 即可。
- 如果 GreasyFork 访问速度太慢,可以选择点击 **\[备用\]** 后弹出扩展提示,再去点击 **\[安装\]** 即可。
From de697ff645244e243f02184c0208f200df748d52 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Fri, 3 Dec 2021 10:31:23 +0800
Subject: [PATCH 0030/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E4=BC=97?=
=?UTF-8?q?=E5=9B=BE=E7=BD=91]=E3=80=81[=E7=BB=BF=E8=BD=AF=E5=AE=B6?=
=?UTF-8?q?=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 | 70 +++++++++++++++++++++++++++++++++---------------
1 file changed, 48 insertions(+), 22 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 781e74a29..fd93f2a9a 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 3.9.5
+// @version 3.9.6
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -1488,6 +1488,21 @@ function: {
pF: [0, 'img[data-original]', 'data-original']
}
}, // 昵图网
+ ztupic: {
+ host: 'www.ztupic.com',
+ functionS: function() {if (lp != '/' && !indexOF('/sucai/')) {curSite = DBSite.ztupic;}},
+ pager: {
+ type: 1,
+ nextL: 'css;a.page-link[rel="next"]',
+ pageE: 'css;.floor_item',
+ replaceE: 'css;ul.pagination',
+ scrollD: 2000
+ },
+ function: {
+ bF: src_bF,
+ pF: [0, 'img[data-src]', 'data-src']
+ }
+ }, // 众图网
pixabay: {
host: 'pixabay.com',
pager: {
@@ -3761,6 +3776,17 @@ function: {
scrollD: 2000
}
}, // 小鱼儿 yr 系统 - 搜索页
+ downg: {
+ host: 'www.downg.com',
+ functionS: function() {if (indexOF('/new/')) {curSite = DBSite.downg;}},
+ pager: {
+ type: 1,
+ nextL: 'css;a.nextpage',
+ pageE: 'css;.ApdList > ul.ApdLi',
+ replaceE: 'css;.pagination',
+ scrollD: 1500
+ }
+ }, // 绿软家园
sordum: {
host: 'www.sordum.org',
pager: {
@@ -4995,6 +5021,27 @@ function: {
scrollD: 2000
}
}, // 秀人美女 - 搜索页
+ jpmn8: {
+ host: 'www.jpmn8.com',
+ functionS: function() {if (indexOF(/\/\d+\.html/)) {curSite = DBSite.jpmn8;} else if (location.pathname != '/') {curSite = DBSite.jpmn8_list;}},
+ insStyle: 'img[onload] {min-height: 500px;}',
+ pager: {
+ type: 1,
+ nextL: '//div[@class="pagination1"]//a[text()="下一页"]',
+ pageE: 'css;img[onload]',
+ replaceE: 'css;.pagination1',
+ scrollD: 3000
+ }
+ }, // 精品美女 - 图片页
+ jpmn8_list: {
+ pager: {
+ type: 1,
+ nextL: '//div[@class="pagination1"]//a[text()="下一页"]',
+ pageE: 'css;article.excerpt',
+ replaceE: 'css;.pagination1',
+ scrollD: 1500
+ }
+ }, // 精品美女 - 分类页
ku137: {
host: 'www.ku137.net',
functionS: function() {if (indexOF(/\/\d+\.html/)) {curSite = DBSite.ku137;} else if (location.pathname != '/') {curSite = DBSite.ku137_list;}},
@@ -5083,27 +5130,6 @@ function: {
scrollD: 1000
}
}, // King爱模 - 分类页
- jpmn8: {
- host: 'www.jpmn8.com',
- functionS: function() {if (indexOF(/\/\d+\.html/)) {curSite = DBSite.jpmn8;} else if (location.pathname != '/') {curSite = DBSite.jpmn8_list;}},
- insStyle: 'img[onload] {min-height: 500px;}',
- pager: {
- type: 1,
- nextL: '//div[@class="pagination1"]//a[text()="下一页"]',
- pageE: 'css;img[onload]',
- replaceE: 'css;.pagination1',
- scrollD: 3000
- }
- }, // 精品美女 - 图片页
- jpmn8_list: {
- pager: {
- type: 1,
- nextL: '//div[@class="pagination1"]//a[text()="下一页"]',
- pageE: 'css;article.excerpt',
- replaceE: 'css;.pagination1',
- scrollD: 1500
- }
- }, // 精品美女 - 分类页
cadtutor: {
host: 'www.cadtutor.net',
functionS: function() {
From 1a80c215747851979607cf56fc380884e817a614 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Fri, 3 Dec 2021 22:07:14 +0800
Subject: [PATCH 0031/1615] =?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 | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index fd93f2a9a..ee44f49d0 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 3.9.6
+// @version 3.9.7
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -158,7 +158,7 @@ function: {
pager: {
type: 1,
nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
- pageE: 'css;#threadlist table > tbody[id^="normalthread_"]',
+ pageE: 'id("threadlist")//table[./tbody[contains(@id, "normalthread_")]]/tbody[not(@id="separatorline")]',
replaceE: 'css;.pg, .pages',
scrollD: 1000
}
@@ -199,7 +199,7 @@ function: {
pager: {
type: 1,
nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
- pageE: 'css;tbody > tr:not(.th)',
+ pageE: 'css;form:not([action^="search.php?"]) tbody > tr:not(.th)',
replaceE: 'css;.pg, .pages',
scrollD: 1000
}
From e6efc09e76e29432552d6353bcc0b78a8bea49f5 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sat, 4 Dec 2021 17:00:09 +0800
Subject: [PATCH 0032/1615] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[Pixiv]=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 | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index ee44f49d0..b4a9b5074 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 3.9.7
+// @version 3.9.8
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -1364,7 +1364,6 @@ function: {
forceTarget();
} else if (indexOF('/tags/')/* && self == top*/) {
curSite = DBSite.pixiv;
- if (!indexOF('/novels'))insStyle('a[href^="/premium/lead/lp"], div[class*="-0 "] > div[class*="-4 "] > section:first-of-type {display: none}');
} else if (indexOF('/users/') && indexOF(/\/(artworks|illustrations|manga)/)) {
curSite = DBSite.pixiv_user;
} else if (indexOF('/artworks/')) {
@@ -1372,7 +1371,7 @@ function: {
}
},
forceTarget: true,
- insStyle: 'ul[class*="-1 "] > li {display: inline !important;} #root{margin-bottom: -175px;} ul > li > button[class^="sc-"][style="background-color: rgb(0, 0, 0);"] {display: none !important;}',
+ insStyle: 'ul[class*="-1 "] > li {display: inline !important;} #root{margin-bottom: -175px;} ul > li > button[class^="sc-"][style="background-color: rgb(0, 0, 0);"], a[href^="/premium/lead/lp"] {display: none !important;}',
history: true,
iframe: true,
pager: {
@@ -1386,7 +1385,7 @@ function: {
}, // Pixiv - 分类页
pixiv_user: {
forceTarget: true,
- insStyle: 'ul[class*="-1 "] > li {display: inline !important;} #root{margin-bottom: -125px;} ul > li > button[class^="sc-"][style="background-color: rgb(0, 0, 0);"] {display: none !important;}',
+ insStyle: 'ul[class*="-1 "] > li {display: inline !important;} #root{margin-bottom: -125px;} ul > li > button[class^="sc-"][style="background-color: rgb(0, 0, 0);"], a[href^="/premium/lead/lp"] {display: none !important;}',
history: true,
pager: {
type: 5,
From a99ff26db940941c0a1c423c0180aa8768766850 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sat, 4 Dec 2021 18:19:54 +0800
Subject: [PATCH 0033/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E5=B1=8F?=
=?UTF-8?q?=E8=94=BD=E6=8C=87=E5=AE=9A=E7=B1=BB=E5=88=AB]=20=E5=AF=B9?=
=?UTF-8?q?=E5=9B=9E=E7=AD=94=E9=A1=B5=E8=A7=86=E9=A2=91=E5=9B=9E=E7=AD=94?=
=?UTF-8?q?=E7=9A=84=E6=94=AF=E6=8C=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Zhihu-Enhanced.user.js | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/Zhihu-Enhanced.user.js b/Zhihu-Enhanced.user.js
index d01e79f98..bd0baa7c5 100644
--- a/Zhihu-Enhanced.user.js
+++ b/Zhihu-Enhanced.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 知乎增强
-// @version 1.8.3
+// @version 1.8.4
// @author X.I.U
// @description 移除登录弹窗、屏蔽首页视频、默认收起回答、快捷收起当前回答/评论(左键两侧空白处)、快捷回到顶部(右键两侧空白处)、屏蔽用户 (发布的内容)、屏蔽关键词(标题/评论)、移除高亮链接、屏蔽盐选内容、净化标题消息、展开问题描述、置顶显示时间、完整问题时间、区分问题文章、直达问题按钮、默认高清原图、默认站外直链
// @match *://www.zhihu.com/*
@@ -843,10 +843,15 @@ function blockType(type) {
if (menu_value('menu_blockTypeSearch') && location.pathname === '/search') setTimeout(function(){document.querySelector('.RelevantQuery').parentElement.parentElement.hidden = true;;}, 1000)
name = 'h2.ContentItem-title a, a.KfeCollection-PcCollegeCard-link, h2.SearchTopicHeader-Title a'
addSetInterval_(name);
- } else {
+ } else if (type === 'question') { // 问题页
+ if (!menu_value('menu_blockTypeVideo')) return
+ document.lastChild.appendChild(document.createElement('style')).textContent = `.VideoAnswerPlayer, .VideoAnswerPlayer-video, .VideoAnswerPlayer-iframe {display: none !important;}`;
+ name = '.VideoAnswerPlayer'
+ document.querySelectorAll(name).forEach(function(item){blockType_(item);})
+ } else { // 首页
if (!menu_value('menu_blockTypeVideo') && !menu_value('menu_blockTypeArticle')) return
// 移除相关搜索
- if (menu_value('menu_blockTypeVideo')) document.lastChild.appendChild(document.createElement('style')).textContent = `nav.TopstoryTabs > a[aria-controls="Topstory-zvideo"] {display: none;}`;
+ if (menu_value('menu_blockTypeVideo')) document.lastChild.appendChild(document.createElement('style')).textContent = `nav.TopstoryTabs > a[aria-controls="Topstory-zvideo"] {display: none !important;}`;
name = 'h2.ContentItem-title a'
document.querySelectorAll(name).forEach(function(item){blockType_(item);})
}
@@ -881,6 +886,8 @@ function blockType(type) {
} else if (titleA.href.indexOf('/market/') > -1) { // 如果是杂志文章等乱七八糟的
if (menu_value('menu_blockTypeArticle')) findParentElement(titleA, 'Card SearchResult-Card').hidden = true;
}
+ } else if (location.pathname.indexOf('/question/') > -1) { // 问题页
+ if (menu_value('menu_blockTypeVideo')) findParentElement(titleA, 'List-item').hidden = true;
} else { // 首页
if (titleA.href.indexOf('/zvideo/') > -1) { // 如果是视频
if (menu_value('menu_blockTypeVideo')) findParentElement(titleA, 'Card TopstoryItem TopstoryItem--old TopstoryItem-isRecommend').hidden = true;
@@ -1470,6 +1477,7 @@ function questionInvitation(){
questionRichTextMore(); // 展开问题描述
blockUsers('question'); // 屏蔽指定用户
blockYanXuan(); // 屏蔽盐选内容
+ blockType('question'); // 屏蔽指定类别(视频/文章等)
defaultCollapsedAnswer(); // 默认收起回答
}
setInterval(topTime_question, 300); // 置顶显示时间
From 28605ea4c6f6030c9d52559622bb7cbb161db72e Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sat, 4 Dec 2021 21:38:41 +0800
Subject: [PATCH 0034/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E5=8A=A8?=
=?UTF-8?q?=E6=BC=AB=E6=88=8F=E8=AF=B4]=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 | 44 +++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 43 insertions(+), 1 deletion(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index b4a9b5074..967715a53 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 3.9.8
+// @version 3.9.9
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -2888,6 +2888,39 @@ function: {
scrollD: 1000
}
}, //动漫之家 - 日漫 - 最新更新
+ acgn: {
+ host: 'comic.acgn.cc',
+ functionS: function() {
+ if (indexOF('/view-')) {
+ curSite = DBSite.acgn;
+ acgn_aF();
+ } else if (indexOF('/cate-') || indexOF('/pinyin-')) {
+ curSite = DBSite.acgn_list;
+ }
+ },
+ insStyle: '.img1 {cursor: initial !important;}',
+ history: true,
+ pager: {
+ type: 1,
+ nextL: 'css;#next_chapter',
+ pageE: 'css;.pic[_src]',
+ replaceE: 'css;[class^="display_"]',
+ interval: 2000,
+ scrollD: 2000
+ },
+ function: {
+ aF: acgn_aF
+ }
+ }, // 动漫戏说
+ acgn_list: {
+ pager: {
+ type: 1,
+ nextL: 'css;a[rel="next"]',
+ pageE: 'css;ul#display > li',
+ replaceE: 'css;#pagination',
+ scrollD: 1000
+ }
+ }, // 动漫戏说 - 分类页
copymanga: {
host: /copymanga\./,
functionS: function() {if (indexOF('/chapter/')) {
@@ -5856,6 +5889,15 @@ function: {
}
+ // [动漫戏说] 插入后函数(加载图片)
+ function acgn_aF() {
+ let old = getAllCSS('.pic[_src][id]'), _img = '';
+ if (old.length > 0) {
+ for (let now of old) {now.outerHTML = `})
`;}
+ }
+ }
+
+
// [漫画星球] 插入数据
function mhxqiu_insertE(pageElems, type) {
if (!pageElems) return
From ce21f606ed4d31869119f91cc0b53c54bc112e7e Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sun, 5 Dec 2021 15:46:44 +0800
Subject: [PATCH 0035/1615] =?UTF-8?q?=E8=A1=A5=E5=85=85=20[=E7=99=BE?=
=?UTF-8?q?=E5=BA=A6=E8=B4=B4=E5=90=A7]=20=E5=85=B6=E4=BB=96=E5=9F=9F?=
=?UTF-8?q?=E5=90=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 967715a53..55b87ba59 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 3.9.9
+// @version 4.0.0
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -611,8 +611,9 @@ function: {
}
}, // F 搜
baidu_tieba: {
- host: 'tieba.baidu.com',
- functionS: function() {if (lp == '/f') {
+ host: ['tieba.baidu.com', 'jump2.bdimg.com'],
+ functionS: function() {if (location.hostname == 'jump2.bdimg.com') location.hostname = 'tieba.baidu.com';
+ if (lp == '/f') {
baidu_tieba_1(); // 右侧悬浮发帖按钮点击事件(解决自动翻页导致无法发帖的问题)
curSite = DBSite.baidu_tieba;
} else if (indexOF('/p/') && GM_getValue('menu_discuz_thread_page')) {
From 5826a9064feba237a7f69fbd99b15a04ab464db6 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Mon, 6 Dec 2021 10:15:55 +0800
Subject: [PATCH 0036/1615] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[StackOverflow]?=
=?UTF-8?q?=20=E8=A7=84=E5=88=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 55b87ba59..4da71f759 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 4.0.0
+// @version 4.0.1
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -4073,7 +4073,7 @@ function: {
}, // 国家自然科学基金
stackoverflow: {
host: 'stackoverflow.com',
- functionS: function() {if (indexOF('/questions')) {
+ functionS: function() {if (indexOF('/questions') && !indexOF(/\/questions\/\d+\//)) {
curSite = DBSite.stackoverflow;
} else if (lp == '/search') {
curSite = DBSite.stackoverflow_search;
@@ -4087,7 +4087,7 @@ function: {
nextL: 'css;a[rel="next"]',
pageE: 'css;#questions > div',
replaceE: 'css;.pager',
- scrollD: 1500
+ scrollD: 2000
}
}, // StackOverflow - Questions
stackoverflow_tags: {
@@ -4096,7 +4096,7 @@ function: {
nextL: 'css;a[rel="next"]',
pageE: 'css;#tags-browser > div',
replaceE: 'css;.pager',
- scrollD: 1500
+ scrollD: 2000
}
}, // StackOverflow - Tags
stackoverflow_users: {
@@ -4105,7 +4105,7 @@ function: {
nextL: 'css;a[rel="next"]',
pageE: 'css;#user-browser > div:first-child > div',
replaceE: 'css;.pager',
- scrollD: 1500
+ scrollD: 2000
}
}, // StackOverflow - Users
stackoverflow_search: {
@@ -4114,7 +4114,7 @@ function: {
nextL: 'css;a[rel="next"]',
pageE: 'css;.js-search-results > div:first-child > div',
replaceE: 'css;.pager',
- scrollD: 1500
+ scrollD: 2000
}
}, // StackOverflow - Search
segmentfault: {
From e71aed5e7a607e8b04560d3161129a3d79bccdd9 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Mon, 6 Dec 2021 15:38:48 +0800
Subject: [PATCH 0037/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E9=85=B7?=
=?UTF-8?q?=E7=A7=91=E7=A0=94]=20=E6=94=AF=E6=8C=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 36 +++++++++++++++++++++++++++++++++++-
1 file changed, 35 insertions(+), 1 deletion(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 4da71f759..e04d2fc56 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 4.0.1
+// @version 4.0.2
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -4071,6 +4071,18 @@ function: {
scrollD: 1500
}
}, // 国家自然科学基金
+ coolkeyan: {
+ host: 'www.coolkeyan.com',
+ functionS: function() {if (location.hash.indexOf('/project/') > -1) curSite = DBSite.coolkeyan;},
+ insStyle: '.q-img {height: auto !important;} .q-img__image {max-height: 1000px !important;} .row.q-my-sm.q-gutter-sm {display: none !important;}',
+ pager: {
+ type: 4,
+ nextL: coolkeyan_nextL,
+ insertP: ['//div[contains(@class, "q-img__image")][last()]', 4],
+ insertE: coolkeyan_insertE,
+ scrollD: 1500
+ }
+ }, // 酷科研
stackoverflow: {
host: 'stackoverflow.com',
functionS: function() {if (indexOF('/questions') && !indexOF(/\/questions\/\d+\//)) {
@@ -6199,6 +6211,28 @@ function: {
}
+
+ // [酷科研] 获取下一页地址
+ function coolkeyan_nextL() {
+ if (!getCSS('.q-img__image')) return
+ let id = getCSS('.q-breadcrumbs--last > span.q-breadcrumbs__el'), data
+ if (id && id.textContent) {id=parseInt(id.textContent)} else {return}
+ if (!document.nowPageNum) document.nowPageNum = 2
+ data = `ratify_no=${id}&index=${document.nowPageNum}`
+ if (data === curSite.pageUrl) return
+ curSite.pageUrl = data
+ getPageElems_(location.origin + '/api/funds/nsfc/creport?' + data, 'json', 'GET'); // 访问下一页 URL 获取
+ }
+ // [酷科研] 插入数据
+ function coolkeyan_insertE(pageElems, type) {
+ if (!pageElems || pageElems == {}) {curSite.SiteTypeID = 0; return}
+ if (!pageElems.url) {curSite.SiteTypeID = 0; return} else {document.nowPageNum++}
+ pageNum.now = pageNum._now + 1
+ getCSS('.q-img>div[style*="padding-bottom"]').style.paddingBottom = `${(document.nowPageNum * 1000) - 1000}px`
+ getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), ``);
+ }
+
+
// --------------------------------------------------------
From ac2ef9af64ce14ee2b6cf744018fb8378ef9c032 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Mon, 6 Dec 2021 17:49:38 +0800
Subject: [PATCH 0038/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[MrCong]?=
=?UTF-8?q?=E3=80=81[BuonDua]=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 | 53 +++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 52 insertions(+), 1 deletion(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index e04d2fc56..7ee904c54 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 4.0.2
+// @version 4.0.3
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -4978,6 +4978,57 @@ function: {
scrollD: 2000
}
}, // MM131 - 手机版 - 首页
+ mrcong: {
+ host: 'mrcong.com',
+ functionS: function() {if (lp == '/' || indexOF('/tag/')) {curSite = DBSite.mrcong_list;} else {curSite = DBSite.mrcong;}},
+ pager: {
+ type: 1,
+ nextL: 'css;.post-page-numbers.current+a.post-page-numbers',
+ pageE: 'css;#fukie2 > p > img',
+ replaceE: 'css;.page-link',
+ scrollD: 3000
+ }
+ }, // MrCong - 图片页
+ mrcong_list: {
+ pager: {
+ type: 3,
+ nextL: 'css;.current+a.page',
+ pageE: 'css;article.item-list',
+ scrollE: 'css;.pagination',
+ replaceE: 'css;.pagination',
+ scrollD: 2000
+ }
+ }, // MrCong - 分类页
+ buondua: {
+ host: 'buondua.com',
+ functionS: function() {if (indexOF(/-photos-\d+/)) {curSite = DBSite.buondua;} else {curSite = DBSite.buondua_list;}},
+ pager: {
+ type: 3,
+ nextL: '//nav[@class="pagination"]//span[./a[contains(@class, "is-current")]]/following-sibling::span[1]/a',
+ pageE: 'css;.article-fulltext > p',
+ scrollE: 'css;nav.pagination',
+ replaceE: 'css;nav.pagination',
+ scrollD: 1500
+ },
+ function: {
+ bF: src_bF,
+ pF: [0, 'img[data-src]', 'data-src']
+ }
+ }, // Buon Dua - 图片页
+ buondua_list: {
+ pager: {
+ type: 3,
+ nextL: 'css;.pagination-next',
+ pageE: 'css;.items-row.column, .collection-item.column',
+ scrollE: 'css;nav.pagination',
+ replaceE: 'css;nav.pagination',
+ scrollD: 1200
+ },
+ function: {
+ bF: src_bF,
+ pF: [0, 'img[data-src]', 'data-src']
+ }
+ }, // Buon Dua - 分类页
fnvshen: {
host: 'www.fnvshen.com',
functionS: function() {
From 8c4d2b9fb22b2f068aa6d913a104857bf509e0ad Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Tue, 7 Dec 2021 17:12:24 +0800
Subject: [PATCH 0039/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[Github=20-=20?=
=?UTF-8?q?=E9=A6=96=E9=A1=B5(=E7=99=BB=E5=BD=95=E5=90=8E)]=20=E6=94=AF?=
=?UTF-8?q?=E6=8C=81;=20=E8=A1=A5=E5=85=85=20[Github]=20=E9=95=9C=E5=83=8F?=
=?UTF-8?q?=E5=9F=9F=E5=90=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 7ee904c54..d2886fc0b 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 4.0.3
+// @version 4.0.4
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -4288,10 +4288,12 @@ function: {
scrollD: 1000
}
}, // Gitee - Search 列表
- github_star: {
- host: 'github.com',
+ github: {
+ host: ['github.com', 'hub.fastgit.org'],
functionS: function() {locationC = true;
- if (indexOF('tab=stars', 's')) {
+ if (lp == '/') {
+ curSite = DBSite.github;
+ } else if (indexOF('tab=stars', 's')) {
curSite = DBSite.github_star;
} else if (indexOF(/\/issues$/) || indexOF(/\/pulls$/)) {
curSite = DBSite.github_issues;
@@ -4323,6 +4325,14 @@ function: {
curSite.pager.scrollD = 3000;
}
}},
+ pager: {
+ type: 2,
+ nextL: 'css;.ajax-pagination-btn',
+ nextText: 'More',
+ scrollD: 2500
+ }
+ }, // Github - 首页
+ github_star: {
pager: {
type: 1,
nextL: '//div[@class="paginate-container"]//a[contains(text(), "Next")]',
From 7df850d85bc71745ea55d7ded84998e25497e063 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Tue, 7 Dec 2021 17:20:37 +0800
Subject: [PATCH 0040/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[Github=20-=20?=
=?UTF-8?q?=E7=94=A8=E6=88=B7=E9=A1=B9=E7=9B=AE=E5=88=97=E8=A1=A8=E9=A1=B5?=
=?UTF-8?q?]=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 | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index d2886fc0b..3dbaeda8d 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 4.0.4
+// @version 4.0.5
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -4295,6 +4295,8 @@ function: {
curSite = DBSite.github;
} else if (indexOF('tab=stars', 's')) {
curSite = DBSite.github_star;
+ } else if (indexOF('tab=repositories', 's')) {
+ curSite = DBSite.github_repositories;
} else if (indexOF(/\/issues$/) || indexOF(/\/pulls$/)) {
curSite = DBSite.github_issues;
} else if (indexOF(/\/discussions$/) || indexOF('/discussions/categories')) {
@@ -4342,6 +4344,15 @@ function: {
scrollD: 3000
}
}, // Github - 用户 Star 列表
+ github_repositories: {
+ pager: {
+ type: 1,
+ nextL: '//div[@class="paginate-container"]//a[contains(text(), "Next")]',
+ pageE: 'css;#user-repositories-list > ul > li',
+ replaceE: 'css;.paginate-container',
+ scrollD: 3000
+ }
+ }, // Github - 用户 项目 列表
github_issues: {
pager: {
type: 1,
From 97a3c1fa16beea8791a5982226dc40cc9cad09ff Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Wed, 8 Dec 2021 10:50:27 +0800
Subject: [PATCH 0041/1615] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20[Raw=20=E5=BF=AB?=
=?UTF-8?q?=E6=8D=B7=E4=B8=8B=E8=BD=BD(=E2=98=81)]=20=E5=8A=9F=E8=83=BD;?=
=?UTF-8?q?=20=E4=BC=98=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
---
GithubEnhanced-High-Speed-Download.user.js | 28 ++++++++++------------
1 file changed, 12 insertions(+), 16 deletions(-)
diff --git a/GithubEnhanced-High-Speed-Download.user.js b/GithubEnhanced-High-Speed-Download.user.js
index 488267e1e..aa2d4e781 100644
--- a/GithubEnhanced-High-Speed-Download.user.js
+++ b/GithubEnhanced-High-Speed-Download.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name Github 增强 - 高速下载
-// @version 1.7.1
+// @version 1.7.2
// @author X.I.U
// @description 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件、项目列表单文件快捷下载 (☁)
// @match *://github.com/*
@@ -55,11 +55,11 @@
],
raw_url = [
['https://raw.githubusercontent.com', 'Github 原生',''],
- ['https://cdn.jsdelivr.net','中国国内', '注意:该加速源存在缓存机制(24小时),所以文件可能不是最新。
注意:当前分支所有文件总文件大小超过 50MB 时,该加速源不可用。
注意:当前分支名为版本号格式时(如 v1.2.3),该高速下载链接因格式限制不可用。'],
+ ['https://cdn.jsdelivr.net/gh','中国国内', '注意:该加速源存在缓存机制(24小时),所以文件可能不是最新。
注意:当前分支所有文件总文件大小超过 50MB 时,该加速源不可用。
注意:当前分支名为版本号格式时(如 v1.2.3),该高速下载链接因格式限制不可用。'],
['https://ghproxy.fsou.cc/https://github.com', '中国香港 1', ''],
- ['https://pd.zwc365.com/seturl/https://github.com', '中国香港 2'],
+ ['https://pd.zwc365.com/seturl/https://raw.githubusercontent.com', '中国香港 2'],
['https://raw.fastgit.org','日本东京 1', '注意:单个文件太大时可能会提示超时(实时获取中),请重试。'],
- ['https://cdn.staticaly.com','日本东京 2', '注意:该加速是全球 Anycast CDN,国内一般分配到日本节点。']
+ ['https://cdn.staticaly.com/gh','日本东京 2', '注意:该加速是全球 Anycast CDN,国内一般分配到日本节点。']
],
svg = [
'',
@@ -224,13 +224,12 @@
let html = document.getElementById('raw-url');if (!html) return
let href = location.href.replace(`https://${location.host}`,''),
href2 = href.replace('/blob/','/'),
- href3 = document.getElementById('raw-url').getAttribute('href'),
url = [
- raw_url[1][0] + '/gh' + href.replace('/blob/','@'),
+ raw_url[1][0] + href.replace('/blob/','@'),
raw_url[2][0] + href,
- raw_url[3][0] + href3,
+ raw_url[3][0] + href2,
raw_url[4][0] + href2,
- raw_url[5][0] + '/gh' + href.replace('/blob/','/')
+ raw_url[5][0] + href2
],
_html = ``;
for (let i=0;i
Date: Wed, 8 Dec 2021 11:05:10 +0800
Subject: [PATCH 0042/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E7=AC=94?=
=?UTF-8?q?=E8=B6=A3=E9=98=81=20-=20=E6=89=8B=E6=9C=BA=E7=89=88]=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 | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 3dbaeda8d..011eb1c18 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 4.0.5
+// @version 4.0.6
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -344,6 +344,7 @@ function: {
}, // WordPress 的 Begin 主题 - 搜索页
biquge: {
functionS: function() {if (indexOF(/\d+\/\d+\.html/)) {curSite = DBSite.biquge;}},
+ insStyle: 'img {display: none !important;}',
history: true,
pager: {
type: 1,
@@ -354,6 +355,19 @@ function: {
scrollD: 1500
}
}, // 笔趣阁 模板的小说网站
+ biquge_m: {
+ functionS: function() {if (indexOF(/\d+\/\d+\.html/)) {curSite = DBSite.biquge_m;}},
+ insStyle: 'img {display: none !important;}',
+ history: true,
+ pager: {
+ type: 1,
+ nextL: '//a[contains(text(), "下一章") or contains(text(), "下一页")]',
+ pageE: 'css;#chaptercontent, .chaptercontent, #BookText',
+ insertP: ['css;#chaptercontent, .chaptercontent, #BookText', 6],
+ replaceE: '//*[./a[contains(text(), "下一章") or contains(text(), "下一页")]]',
+ scrollD: 1500
+ }
+ }, // 笔趣阁 - 手机版 模板的小说网站
baidu: {
host: 'www.baidu.com',
functionS: function() {locationC = true; if (lp == '/s') {curSite = DBSite.baidu;} else if (indexOF('/s')) {location.hostname = 'm.baidu.com';}},
@@ -5341,6 +5355,8 @@ function: {
DBSite.begin.functionS(); break;
case 200: // < 所有使用 笔趣阁 模板的小说网站 >
DBSite.biquge.functionS(); break;
+ case 201: // < 所有使用 笔趣阁 - 手机版 模板的小说网站 >
+ DBSite.biquge_m.functionS(); break;
}
}
@@ -6440,6 +6456,8 @@ function: {
console.info('[自动无缝翻页] - 使用 WordPress 主题的网站'); return 103;
} else if (getCSS('meta[name="description"][content*="小说"], meta[name="description"][content*="章节"], meta[name="description"][content*="阅读"]') && getCSS('#content') && getXpath('//a[contains(text(), "下一章") or contains(text(), "下一页")]')) {
console.info('[自动无缝翻页] - <笔趣阁> 模板的小说网站'); return 200;
+ } else if (getCSS('meta[name="description"][content*="小说"], meta[name="description"][content*="章节"], meta[name="description"][content*="阅读"]') && getCSS('#chaptercontent, .chaptercontent, #BookText') && getXpath('//a[contains(text(), "下一章") or contains(text(), "下一页")]')) {
+ console.info('[自动无缝翻页] - <笔趣阁 - 手机版> 模板的小说网站'); return 201;
} else if (self != top) {
return -1;
}
From 63363956883485d8d9772b60ee61aba47c767767 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Wed, 8 Dec 2021 11:10:43 +0800
Subject: [PATCH 0043/1615] =?UTF-8?q?=E5=90=88=E5=B9=B6=20[=E7=AC=94?=
=?UTF-8?q?=E8=B6=A3=E9=98=81]=E3=80=81[=E7=AC=94=E8=B6=A3=E9=98=81=20-=20?=
=?UTF-8?q?=E6=89=8B=E6=9C=BA=E7=89=88]=20=E8=A7=84=E5=88=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 23 +++--------------------
1 file changed, 3 insertions(+), 20 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 011eb1c18..697ab29d1 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -349,25 +349,12 @@ function: {
pager: {
type: 1,
nextL: '//a[contains(text(), "下一章") or contains(text(), "下一页")]',
- pageE: 'css;#content',
- insertP: ['css;#content', 6],
+ pageE: 'css;#content, #chaptercontent, .chaptercontent, #BookText',
+ insertP: ['css;#content, #chaptercontent, .chaptercontent, #BookText', 6],
replaceE: '//*[./a[contains(text(), "下一章") or contains(text(), "下一页")]]',
scrollD: 1500
}
}, // 笔趣阁 模板的小说网站
- biquge_m: {
- functionS: function() {if (indexOF(/\d+\/\d+\.html/)) {curSite = DBSite.biquge_m;}},
- insStyle: 'img {display: none !important;}',
- history: true,
- pager: {
- type: 1,
- nextL: '//a[contains(text(), "下一章") or contains(text(), "下一页")]',
- pageE: 'css;#chaptercontent, .chaptercontent, #BookText',
- insertP: ['css;#chaptercontent, .chaptercontent, #BookText', 6],
- replaceE: '//*[./a[contains(text(), "下一章") or contains(text(), "下一页")]]',
- scrollD: 1500
- }
- }, // 笔趣阁 - 手机版 模板的小说网站
baidu: {
host: 'www.baidu.com',
functionS: function() {locationC = true; if (lp == '/s') {curSite = DBSite.baidu;} else if (indexOF('/s')) {location.hostname = 'm.baidu.com';}},
@@ -5355,8 +5342,6 @@ function: {
DBSite.begin.functionS(); break;
case 200: // < 所有使用 笔趣阁 模板的小说网站 >
DBSite.biquge.functionS(); break;
- case 201: // < 所有使用 笔趣阁 - 手机版 模板的小说网站 >
- DBSite.biquge_m.functionS(); break;
}
}
@@ -6454,10 +6439,8 @@ function: {
console.info('[自动无缝翻页] - 使用 WordPress 主题的网站'); return 102;
} else if (getCSS('link[href*="themes/begin" i], script[src*="themes/begin" i], img[src*="themes/begin" i]')) {
console.info('[自动无缝翻页] - 使用 WordPress 主题的网站'); return 103;
- } else if (getCSS('meta[name="description"][content*="小说"], meta[name="description"][content*="章节"], meta[name="description"][content*="阅读"]') && getCSS('#content') && getXpath('//a[contains(text(), "下一章") or contains(text(), "下一页")]')) {
+ } else if (getCSS('meta[name="description"][content*="小说"], meta[name="description"][content*="章节"], meta[name="description"][content*="阅读"]') && getCSS('#content, #chaptercontent, .chaptercontent, #BookText') && getXpath('//a[contains(text(), "下一章") or contains(text(), "下一页")]')) {
console.info('[自动无缝翻页] - <笔趣阁> 模板的小说网站'); return 200;
- } else if (getCSS('meta[name="description"][content*="小说"], meta[name="description"][content*="章节"], meta[name="description"][content*="阅读"]') && getCSS('#chaptercontent, .chaptercontent, #BookText') && getXpath('//a[contains(text(), "下一章") or contains(text(), "下一页")]')) {
- console.info('[自动无缝翻页] - <笔趣阁 - 手机版> 模板的小说网站'); return 201;
} else if (self != top) {
return -1;
}
From 612c95a2a72cba01f549d174e60cece5106372b4 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Wed, 8 Dec 2021 16:40:30 +0800
Subject: [PATCH 0044/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E7=BE=8E?=
=?UTF-8?q?=E5=A5=B3=E5=9B=BE=E7=89=87]=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 | 46 +++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 45 insertions(+), 1 deletion(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 697ab29d1..8faf439da 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 4.0.6
+// @version 4.0.7
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -5160,6 +5160,50 @@ function: {
scrollD: 1500
}
}, // 精品美女 - 分类页
+ ku66: {
+ host: 'www.ku66.net',
+ functionS: function() {if (/\/\d+\.html/.test(location.pathname)) {curSite = DBSite.ku66;} else {curSite = DBSite.ku66_list;}},
+ insStyle: '.content img {min-height: 500px;}',
+ pager: {
+ type: 1,
+ nextL: '//div[@class="NewPages"]//a[text()="下一页"]',
+ pageE: 'css;.content > img',
+ insertP: ['css;.content', 3],
+ replaceE: 'css;.NewPages',
+ scrollD: 4000
+ }
+ }, // 美女图片 - 图片页
+ ku66_list: {
+ pager: {
+ type: 1,
+ nextL: '//div[@class="NewPages"]//a[text()="下一页"]',
+ pageE: 'css;.TypeList > ul > li',
+ insertP: ['css;.TypeList > ul', 3],
+ replaceE: 'css;.NewPages',
+ scrollD: 1000
+ }
+ }, // 美女图片 - 分类页
+ ku66_m: {
+ host: 'm.ku66.net',
+ functionS: function() {if (/\/\d+\.html/.test(location.pathname)) {curSite = DBSite.ku66_m;} else {curSite = DBSite.ku66_m_list;}},
+ insStyle: '.ArticleImageBox img {min-height: 200px;}',
+ pager: {
+ type: 1,
+ nextL: '//div[@class="article_page"]//a[text()="下一页"]',
+ pageE: 'css;.ArticleImageBox > *',
+ replaceE: 'css;.article_page',
+ scrollD: 4000
+ }
+ }, // 美女图片 - 手机版 - 图片页
+ ku66_m_list: {
+ pager: {
+ type: 1,
+ nextL: '//div[@class="article_page"]//a[text()="下一页"]',
+ pageE: 'css;.PictureList > ul > li',
+ replaceE: 'css;.article_page',
+ scrollD: 1000
+ }
+ }, // 美女图片 - 手机版 - 分类页
ku137: {
host: 'www.ku137.net',
functionS: function() {if (indexOF(/\/\d+\.html/)) {curSite = DBSite.ku137;} else if (location.pathname != '/') {curSite = DBSite.ku137_list;}},
From 96c1eb5e7dcc18e8e538119d3c7792c86258460f Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Thu, 9 Dec 2021 12:48:55 +0800
Subject: [PATCH 0045/1615] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20[=E5=9B=BE?=
=?UTF-8?q?=E9=9B=86=E8=B0=B7]=20=E5=9F=9F=E5=90=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 8faf439da..0d7b44ebb 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,11 +1,12 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 4.0.7
+// @version 4.0.8
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
// @connect www.xuexiniu.com
// @connect bbs.xuexiniu.com
+// @connect www.tujigu.net
// @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+o4yfhrGAdZsxHaqZt6dNce9KXYFSPfGWS68JFqTXSqO7+MCaTqETGTwxSeeoRCOoPT2YUIhFC2jbQF/uwUatU6rPbVUM5T+OfHUO3dWKv6kSsGUIOD6PEPr+fswnanpecFZYVQhFAyjPS9Tj4xw2rcU+pJApEutWsvRjaBW8NUShilkE1JIqlUPfi6VMLNFTBVr+7KYKqJ8uEjlM+dJrR5K0L7eB+9hTd2CFrWYt33h0jH3O5Nj37TBGtgZUBkUN/6q4dQ7UmsnlW450//gU5PPRq460uQXAu+j//i99A/+UdUMoXqbMNkz2OnUkixlF4u9spe/HMTULyEaA7jXkoT2fEbQIXi838DJ4cRDXHkEjc2b0MPHdptZubGpBUbM0UfKQpBRDmKWRSD3tTMk87gddA2WGe4+dkzMD0CyQ5qP/4XVDCAvfkaLMvHamzEClpQzGDF46iuJOH1CaKr2tDZRfzhQ0Ru24NYsYrCM4/jDb+FiHdi3XU/0s3vr7WsGKxcfyPSy+bxi0UqJ8f/IriiE2vrnuWsLefQk8NoO4AMBBB9/XjDI6hQCjdTxq9WCaQ6ULaDFrIeKr3oIlv70Olz2K1xlAVaSUQojD786nKi9e5A3LBHMHn0W+LUUaS1FI9q+iZZWLhHdq/FxFbWSSfsIDIQwVw4g/GK2OuuhloNMzaCaF+DNBJtQfX8LFYigElX0OkQtZKHVy3jqwDlqWncCzPI3nU4t+2FWrH+OLHzHpRl3109memTOhqDi9NfkefHEKvWLTO+VKD68Qf4G27CueFWhJ/Df+0lVFcXJOJYnobm1ZjsJUxuFjyDjK/GNK2gND4ESuDPXcCOSaI7thPqX0ft8OtUn/oTKOQgkET39KJU4RbpZXOtNRW717p+FyRSdYT+v36H4u/fQXbfc3iRDkT3FsTGjWAWEU0OZKfAU9CyEdXVD2lQPduplmo4jkBEbMzK1VgDu5EVTe3gm1RHx6Bcxpz6YLkEO0lMYeFGi6z7eVMqhkT/ZrCb0LNT+NMTRH/nt/BLRdy3X8Nv68Lu6cZEHURjE6K3hirYeLRhDWyA4jxzH40RXJwkeuM29MpN+JcziEsz+Avz6GgcW1pYbUlEQCyHwYpSyxS7rGo+v8man4ZMATrAHf+QSt7FTkWR4QbsjlbIX8IMH0VuuAqj4piGAbhmEPPzI/injnNxMUPuwOtseOIxKKTJ7/8BTBxDdXcjO9sJdTeg01VqH4wg3CDB9bshHMKORbGolVOmeRW09dVdUxkbp3ruNM7GXnS1hK5OYSoSbBDZBcxCBtF3DcUzk6hkhGA0RmtHKx1rOkE04lbzWC1tqMRt1CZHUafPIs8H6/JsNTcgN+9YFq1qgbBUFUvnK9qrVghXCvWN8MBmivueJDtylqaeBKWJaXR4JZEtNyBWrkGt6AJboCZO4J49Rc64xGIhcgtZgm6egKhgtUQQto17WeHOLqCNj5Vowbr7q4j+Lcs1JhhEphcXLTebd0jPwpkx6Lwa++bbCR95ALecp5a6BrvrJoLdHajmMOTnKb3+BrVMntjARpzeFbz8jcfpa22gGm+kMJlm95Zu9M9+iI5G0G3d6EgIUSnjzs/gv/Icgd6rqcvz0IeYWnXc8pEtYnEe8gtXNL7xz74LehHSE3DqNP7EIdx3p5DSh7JNJePiBE/gN3Uz8NWHae5sRJYXqKQvU+raQPg7L6L3/QNMHcfp6EREGjC5LDp9GaOs5VQ/NQI93YctOxFPlwniDh/C3n47JHvrQPTBl3DHjiIDQUQ4jGhOYcqaQFuE0Nl53OnLRHfsZV33KsTxd6GlHeaP477zMl5uAWv7dkyLg6kZREsb+vgCcvPOuoaYuWNQWERs3jAuQ6nooXK6TH566cXnrjQK7uwFaoseWA3oJf2WEhEJUjm/gMgXCfdvQlFFv/R3uCND6FIRv7MfMnOIiaPoI/8NEb2kWAhfoLbdjLr2jmUv/8f+pVbkHRGNnZHum2/udxxtCn4j/vgEIjNTD4O9upfIprUYoxBKo9Z14jumTq7YYD9WayvuR++hs1lkshmha4iuNeDYiIAFMoCevIi+cJHaa29gmvsRTUn0R29g9u1D7bxxv+jrRnpD56cCkdjfV9NzpA+8A5VlLojWAczlGVTAYKXimIU8MlsjtKEXgiF0aRGdm8cEYnXm+O+/gdAGuWsP3shhTHoOEYqCCEF2DsrF5f+e/xiikUldrT6l3z+GevSaTahaZdRY6uFqxRXR1sRyzU/21Gu6OTOMfzmPd6kI8TgiX8B4imouj1QCKmVUNITJ59AnR1F77kH4ZaRnQFroMyeRW3egdt6DwIX391Gshv+4LK2jtcuLqK9t7ALjZXzH1uVM/mb/7BTRnjZEex+idQ2EAnjjR/BdF1PIoV2Bae/F/fh9dL5IYE0XUmpMNo+ev4AINSJWb0UPHa63Z7SvRN3/CHJpFHj2G4iZzAuBbTu+GWpIEGxrQ/3RnlvxG5M4kYa3Lc2u4uyFblnIE+xfAbF2RMtqZGsn/uTYUgHH+dz9eFMnqYx8gO+CEwkjhcDPF/DLHurSaeTm3RiWMsDHeuDrSFvBv3+bi08+N1Vwuj/vZWtu+dwclZlFrESoeZmZysJXoTsCjnVk8dDQBuN+n8RDD9fbcdG7leBX1iOkQjhBOHmQfKGAHW3CS6fR+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
@@ -4829,7 +4830,7 @@ function: {
}
}, // 新片场
tujigu: {
- host: 'www.tujigu.net',
+ host: ['www.tuji001.com', 'www.tujigu.net'],
functionS: function() {
if (indexOF('/a/')) {
curSite = DBSite.tujigu;
From 64a09997081c65e42aaf9cb4794dc1c8adb040a2 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Thu, 9 Dec 2021 14:49:28 +0800
Subject: [PATCH 0046/1615] =?UTF-8?q?=E8=A1=A5=E5=85=85=20[=E5=A5=BD?=
=?UTF-8?q?=E6=BC=AB6]=20=E5=85=B6=E4=BB=96=E5=9F=9F=E5=90=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 0d7b44ebb..9bd7f3825 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 4.0.8
+// @version 4.0.9
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -2567,15 +2567,16 @@ function: {
}}
}, // 漫本
haoman: {
- host: 'www.haoman6.com',
+ host: ['www.haoman6.com', 'www.g-lens.com'],
functionS: function() {
if (indexOF('/chapter/')) {
curSite = DBSite.haoman;
+ if (location.hostname == 'www.g-lens.com') curSite.function.pF = [0, 'img[data-echo]', 'data-echo']
} else if (indexOF('/comic/')) {
if (getCSS('.chapter__more')) getCSS('.chapter__more').click();
} else if (indexOF('/category/') || indexOF('/search')) {
curSite = DBSite.haoman_list;
- }},
+ }},
insStyle: '.rd-guess, .rd-aside, .page-index__btn {display: none !important;} .rd-article__pic {display: initial !important;} .rd-article__pic > img {margin: 0 auto;display: block;height: auto;min-height: 200px;}',
history: true,
pager: {
From b81b051c1563f77e48b8dd2ab0e110db92ef6489 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Thu, 9 Dec 2021 18:08:44 +0800
Subject: [PATCH 0047/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[Planet=20Minecr?=
=?UTF-8?q?aft]=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 9bd7f3825..6b081a246 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 4.0.9
+// @version 4.1.0
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -5294,6 +5294,19 @@ function: {
scrollD: 1000
}
}, // King爱模 - 分类页
+ planetminecraft: {
+ host: 'www.planetminecraft.com',
+ functionS: function() {if (!indexOF('/forums/') && !indexOF('/posts/')) {curSite = DBSite.planetminecraft;}},
+ insStyle: '.resource .r-preview>a img[loading=lazy]:not(.lazyloaded) {visibility: initial !important;}',
+ history: true,
+ pager: {
+ type: 1,
+ nextL: 'css;a.pagination_next',
+ pageE: 'css;.resource_block > ul.resource_list > li',
+ replaceE: 'css;.pagination',
+ scrollD: 3000
+ }
+ }, // Planet Minecraft
cadtutor: {
host: 'www.cadtutor.net',
functionS: function() {
From 74c9752d1b63bf4dd1d6e7f0411bf32444d3f85e Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sat, 11 Dec 2021 15:35:32 +0800
Subject: [PATCH 0048/1615] README.md
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index 41ef43bb5..191d706a9 100644
--- a/README.md
+++ b/README.md
@@ -52,6 +52,7 @@
> _其他基于 **Chromium** 内核的浏览器(如国内套皮浏览器)一般都可以使用 Chrome 扩展。_
> _请确保使用 **Tampermonkey 正式版** 扩展,其他的用户脚本管理器可能导致**无法正常使用**脚本。_
+> _如果要重装脚本,请记得在 Tampermonkey 扩展的回收站中彻底删除脚本后再去重新安装脚本。_
> _**不会离线安装 .crx 扩展?[Chrome、Edge 重新开启隐藏的 [拖入安装 .crx 扩展] 功能!](https://zhuanlan.zhihu.com/p/276027099)**_
From d6db515eddbd888bfda0a86cd6b928fe595d5172 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sat, 11 Dec 2021 15:36:17 +0800
Subject: [PATCH 0049/1615] README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 191d706a9..31d71687b 100644
--- a/README.md
+++ b/README.md
@@ -52,7 +52,7 @@
> _其他基于 **Chromium** 内核的浏览器(如国内套皮浏览器)一般都可以使用 Chrome 扩展。_
> _请确保使用 **Tampermonkey 正式版** 扩展,其他的用户脚本管理器可能导致**无法正常使用**脚本。_
-> _如果要重装脚本,请记得在 Tampermonkey 扩展的回收站中彻底删除脚本后再去重新安装脚本。_
+> _如果要重装脚本,请记得在 Tampermonkey 扩展的**回收站中彻底删除**脚本后再去重新安装脚本。_
> _**不会离线安装 .crx 扩展?[Chrome、Edge 重新开启隐藏的 [拖入安装 .crx 扩展] 功能!](https://zhuanlan.zhihu.com/p/276027099)**_
From 1e1954ebce20824e1a2175cbc589a9f218912b7c Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sun, 12 Dec 2021 12:35:13 +0800
Subject: [PATCH 0050/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E8=B1=86?=
=?UTF-8?q?=E7=93=A3=20-=20=E4=BD=9C=E5=93=81=E9=A1=B5]=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 | 49 ++++++++++++++++++++++++++++++++++++------------
1 file changed, 37 insertions(+), 12 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 6b081a246..63c76288d 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 4.1.0
+// @version 4.1.1
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -662,21 +662,23 @@ function: {
}, // 百度贴吧 - 搜索页
douban_subject_comments: {
host: 'movie.douban.com',
- functionS: function() {if (indexOF('/subject') && indexOF('/comments')) {
+ functionS: function() {if (indexOF('/subject/') && indexOF('/comments')) {
curSite = DBSite.douban_subject_comments;
- } else if (indexOF('/subject') && indexOF('/reviews')) {
+ } else if (indexOF('/subject/') && indexOF('/reviews')) {
curSite = DBSite.douban_subject_reviews;
- } else if(indexOF('/subject') && indexOF('/episode') || indexOF('/subject') && indexOF('/tv_discuss')) {
+ } else if(indexOF('/subject/') && indexOF('/episode') || indexOF('/subject/') && indexOF('/tv_discuss')) {
curSite = DBSite.douban_subject_episode;
- } else if(indexOF('/people') && indexOF('/collect')) { // 看过的电影
+ } else if(indexOF('/people/') && indexOF('/collect')) {
curSite = DBSite.douban_people_collect;
+ } else if(indexOF('/celebrity/') && indexOF('/movies')) {
+ curSite = DBSite.douban_celebrity_movies;
}},
pager: {
type: 1,
nextL: 'css;a.next',
pageE: 'css;#comments > .comment-item',
replaceE: 'css;#paginator',
- scrollD: 1000
+ scrollD: 1500
}
}, // 豆瓣 - 短评
douban_subject_reviews: {
@@ -685,7 +687,7 @@ function: {
nextL: 'css;link[rel="next"]',
pageE: 'css;.review-list > div',
replaceE: 'css;.paginator',
- scrollD: 1000
+ scrollD: 1500
}
}, // 豆瓣 - 影评
douban_subject_episode: {
@@ -694,7 +696,7 @@ function: {
nextL: 'css;link[rel="next"]',
pageE: 'css;#comments > div',
replaceE: 'css;.paginator',
- scrollD: 1000
+ scrollD: 1500
}
}, // 豆瓣 - 剧评
douban_people_collect: {
@@ -703,9 +705,18 @@ function: {
nextL: 'css;link[rel="next"]',
pageE: 'css;.grid-view > div',
replaceE: 'css;.paginator',
- scrollD: 1000
+ scrollD: 1500
}
}, // 豆瓣 - 看过的电影
+ douban_celebrity_movies: {
+ pager: {
+ type: 1,
+ nextL: 'css;link[rel="next"]',
+ pageE: 'css;.grid_view > ul > li',
+ replaceE: 'css;.paginator',
+ scrollD: 1500
+ }
+ }, // 豆瓣 - 作品
douban_group: {
host: 'www.douban.com',
functionS: function() {if (indexOF('/group/topic/')) {
@@ -720,7 +731,7 @@ function: {
nextL: 'css;span.next > a',
pageE: 'css;table.olt > tbody > tr:not(.th)',
replaceE: 'css;.paginator',
- scrollD: 1000
+ scrollD: 1500
}
}, // 豆瓣 - 小组
douban_group_explore: {
@@ -729,7 +740,7 @@ function: {
nextL: 'css;span.next > a',
pageE: 'css;#content .article > div > .channel-item',
replaceE: 'css;.paginator',
- scrollD: 1000
+ scrollD: 1500
}
}, // 豆瓣 - 小组讨论精选
douban_group_topic: {
@@ -738,7 +749,7 @@ function: {
nextL: 'css;span.next > a',
pageE: 'css;#comments > li',
replaceE: 'css;.paginator',
- scrollD: 1000
+ scrollD: 1500
}
}, // 豆瓣 - 小组帖子内
zhihu: {
@@ -4670,6 +4681,20 @@ function: {
scrollD: 1500
}
}, // 没得比 - 分类/搜索页
+ _1688: {
+ host: 'shop1460048610607.1688.com',
+ pager: {
+ type: 1,
+ nextL: 'css;a.next',
+ pageE: 'css;.wp-all-offer-tab ul.offer-list-row',
+ replaceE: 'css;li.pagination',
+ scrollD: 1500
+ },
+ function: {
+ bF: src_bF,
+ pF: [0, 'img[data-lazy-load-src]', 'data-lazy-load-src']
+ }
+ }, // 没得比 - 分类/搜索页
ruyile_xuexiao: {
host: 'www.ruyile.com',
functionS: function() {
From 52eb2b1b9de105b963ccf552b3a0eec5027c8308 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sun, 12 Dec 2021 16:04:37 +0800
Subject: [PATCH 0051/1615] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20[Discuz!=20-=20?=
=?UTF-8?q?=E5=B8=96=E5=AD=90=E5=86=85]=20=E8=A7=84=E5=88=99=20(=E5=BD=93?=
=?UTF-8?q?=E5=90=AB=E6=9C=89=E5=B8=A6=E4=B8=8B=E4=B8=80=E9=A1=B5=E7=9A=84?=
=?UTF-8?q?=E7=82=B9=E8=AF=84=E6=97=B6=E5=8F=AA=E8=83=BD=E7=BF=BB=E9=A1=B5?=
=?UTF-8?q?=E4=B8=80=E6=AC=A1=E7=9A=84=E9=97=AE=E9=A2=98)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
3dm-Enhanced.user.js | 4 ++--
52pojie-Enhanced.user.js | 4 ++--
Autopage.user.js | 4 ++--
Hostloc-Enhanced.user.js | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/3dm-Enhanced.user.js b/3dm-Enhanced.user.js
index b98eca002..f17ae6132 100644
--- a/3dm-Enhanced.user.js
+++ b/3dm-Enhanced.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 3DM论坛增强
-// @version 1.1.1
+// @version 1.1.2
// @author X.I.U
// @description 自动回复、自动无缝翻页、清理置顶帖子、自动滚动至隐藏内容
// @match *://bbs.3dmgame.com/*
@@ -108,7 +108,7 @@
nextLink: '//a[@class="nxt"][@href]',
pageElement: 'css;div#postlist > div[id^="post_"]',
HT_insert: ['css;div#postlist', 2],
- replaceE: 'css;div.pg'
+ replaceE: '//div[contains(@class,"pg")][./a[contains(@class,"nxt")][not(contains(@href,"javascript"))]]'
}
},
search: {
diff --git a/52pojie-Enhanced.user.js b/52pojie-Enhanced.user.js
index 974090156..e1a51ac82 100644
--- a/52pojie-Enhanced.user.js
+++ b/52pojie-Enhanced.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 吾爱破解论坛增强 - 自动签到、翻页
-// @version 1.3.3
+// @version 1.3.4
// @author X.I.U
// @description 自动签到、自动无缝翻页、屏蔽导读悬赏贴(最新发表页)
// @match *://www.52pojie.cn/*
@@ -93,7 +93,7 @@
nextLink: '//a[@class="nxt"][@href]',
pageElement: 'css;div#postlist > div[id^="post_"]',
HT_insert: ['css;div#postlist', 2],
- replaceE: 'css;div.pg',
+ replaceE: '//div[contains(@class,"pg")][./a[contains(@class,"nxt")][not(contains(@href,"javascript"))]]',
scrollDelta: 766
}
},
diff --git a/Autopage.user.js b/Autopage.user.js
index 63c76288d..4eeb5d150 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 4.1.1
+// @version 4.1.2
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -179,7 +179,7 @@ function: {
type: 1,
nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
pageE: 'css;#postlist > div[id^="post_"]',
- replaceE: 'css;.pg, .pages',
+ replaceE: '//div[contains(@class,"pg") or contains(@class,"pages")][./a[contains(@class,"nxt") or contains(@class,"next")][not(contains(@href,"javascript"))]]',
scrollD: 1000
},
function: {
diff --git a/Hostloc-Enhanced.user.js b/Hostloc-Enhanced.user.js
index 4a1423534..363e7b13e 100644
--- a/Hostloc-Enhanced.user.js
+++ b/Hostloc-Enhanced.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 全球主机交流论坛增强
-// @version 1.3.9
+// @version 1.4.0
// @author X.I.U
// @description 自动签到(访问空间 +22 积分)、屏蔽用户(黑名单)、屏蔽关键词(帖子标题)、回帖小尾巴、自动无缝翻页、快捷回到顶部(右键点击两侧空白处)、收起预览帖子(左键点击两侧空白处)、预览帖子快速回复带签名、显示是否在线、显示帖子内隐藏回复、屏蔽阅读权限 255 帖子
// @match *://hostloc.com/*
@@ -110,7 +110,7 @@
nextLink: '//a[@class="nxt"][@href]',
pageElement: 'css;div#postlist > div[id^="post_"]',
HT_insert: ['css;div#postlist', 2],
- replaceE: 'css;div.pg',
+ replaceE: '//div[contains(@class,"pg")][./a[contains(@class,"nxt")][not(contains(@href,"javascript"))]]',
}
},
search: {
From a3463c6fb9b27ca26e8b7ed84f34b28c098fffa8 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sun, 12 Dec 2021 19:55:45 +0800
Subject: [PATCH 0052/1615] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[Discuz!=20-=20?=
=?UTF-8?q?=E5=B8=96=E5=AD=90=E5=86=85]=20=E8=A7=84=E5=88=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
3dm-Enhanced.user.js | 4 ++--
52pojie-Enhanced.user.js | 4 ++--
Autopage.user.js | 4 ++--
Hostloc-Enhanced.user.js | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/3dm-Enhanced.user.js b/3dm-Enhanced.user.js
index f17ae6132..9672171a9 100644
--- a/3dm-Enhanced.user.js
+++ b/3dm-Enhanced.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 3DM论坛增强
-// @version 1.1.2
+// @version 1.1.3
// @author X.I.U
// @description 自动回复、自动无缝翻页、清理置顶帖子、自动滚动至隐藏内容
// @match *://bbs.3dmgame.com/*
@@ -108,7 +108,7 @@
nextLink: '//a[@class="nxt"][@href]',
pageElement: 'css;div#postlist > div[id^="post_"]',
HT_insert: ['css;div#postlist', 2],
- replaceE: '//div[contains(@class,"pg")][./a[contains(@class,"nxt")][not(contains(@href,"javascript"))]]'
+ replaceE: 'css;#ct > .pgs'
}
},
search: {
diff --git a/52pojie-Enhanced.user.js b/52pojie-Enhanced.user.js
index e1a51ac82..959c39de9 100644
--- a/52pojie-Enhanced.user.js
+++ b/52pojie-Enhanced.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 吾爱破解论坛增强 - 自动签到、翻页
-// @version 1.3.4
+// @version 1.3.5
// @author X.I.U
// @description 自动签到、自动无缝翻页、屏蔽导读悬赏贴(最新发表页)
// @match *://www.52pojie.cn/*
@@ -93,7 +93,7 @@
nextLink: '//a[@class="nxt"][@href]',
pageElement: 'css;div#postlist > div[id^="post_"]',
HT_insert: ['css;div#postlist', 2],
- replaceE: '//div[contains(@class,"pg")][./a[contains(@class,"nxt")][not(contains(@href,"javascript"))]]',
+ replaceE: 'css;#ct > .pgs',
scrollDelta: 766
}
},
diff --git a/Autopage.user.js b/Autopage.user.js
index 4eeb5d150..5bd21dd42 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 4.1.2
+// @version 4.1.3
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -179,7 +179,7 @@ function: {
type: 1,
nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
pageE: 'css;#postlist > div[id^="post_"]',
- replaceE: '//div[contains(@class,"pg") or contains(@class,"pages")][./a[contains(@class,"nxt") or contains(@class,"next")][not(contains(@href,"javascript"))]]',
+ replaceE: 'css;#ct > .pgs, .pages',
scrollD: 1000
},
function: {
diff --git a/Hostloc-Enhanced.user.js b/Hostloc-Enhanced.user.js
index 363e7b13e..32f0d0e5d 100644
--- a/Hostloc-Enhanced.user.js
+++ b/Hostloc-Enhanced.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 全球主机交流论坛增强
-// @version 1.4.0
+// @version 1.4.1
// @author X.I.U
// @description 自动签到(访问空间 +22 积分)、屏蔽用户(黑名单)、屏蔽关键词(帖子标题)、回帖小尾巴、自动无缝翻页、快捷回到顶部(右键点击两侧空白处)、收起预览帖子(左键点击两侧空白处)、预览帖子快速回复带签名、显示是否在线、显示帖子内隐藏回复、屏蔽阅读权限 255 帖子
// @match *://hostloc.com/*
@@ -110,7 +110,7 @@
nextLink: '//a[@class="nxt"][@href]',
pageElement: 'css;div#postlist > div[id^="post_"]',
HT_insert: ['css;div#postlist', 2],
- replaceE: '//div[contains(@class,"pg")][./a[contains(@class,"nxt")][not(contains(@href,"javascript"))]]',
+ replaceE: 'css;#ct > .pgs',
}
},
search: {
From 303f673868b1dfe68fa134b4a0695599a26f0f92 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Mon, 13 Dec 2021 11:53:50 +0800
Subject: [PATCH 0053/1615] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[Discuz!]=20?=
=?UTF-8?q?=E8=A7=84=E5=88=99=20(=E7=95=A5=E5=BE=AE=E8=B0=83=E9=AB=98?=
=?UTF-8?q?=E7=BF=BB=E9=A1=B5=E8=A7=A6=E5=8F=91=E7=82=B9=EF=BC=8C=E4=BB=A5?=
=?UTF-8?q?=E9=80=82=E5=BA=94=E9=83=A8=E5=88=86=E9=80=9F=E5=BA=A6=E6=85=A2?=
=?UTF-8?q?=E7=9A=84=E8=AE=BA=E5=9D=9B)?=
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 5bd21dd42..8b8512ed4 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -161,7 +161,7 @@ function: {
nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
pageE: 'id("threadlist")//table[./tbody[contains(@id, "normalthread_")]]/tbody[not(@id="separatorline")]',
replaceE: 'css;.pg, .pages',
- scrollD: 1000
+ scrollD: 1500
}
}, // Discuz! 论坛 - 导读页 及 帖子列表(不带无缝加载下一页按钮的)
discuz_waterfall: {
@@ -170,7 +170,7 @@ function: {
nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
pageE: 'css;#waterfall > li',
replaceE: 'css;.pg, .pages',
- scrollD: 1000
+ scrollD: 1500
}
}, // Discuz! 论坛 - 图片模式的帖子列表(不带无缝加载下一页按钮的)
discuz_thread: {
@@ -180,7 +180,7 @@ function: {
nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
pageE: 'css;#postlist > div[id^="post_"]',
replaceE: 'css;#ct > .pgs, .pages',
- scrollD: 1000
+ scrollD: 1500
},
function: {
bF: src_bF,
@@ -193,7 +193,7 @@ function: {
nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
pageE: 'css;#threadlist > ul',
replaceE: 'css;.pg, .pages',
- scrollD: 1000
+ scrollD: 1500
}
}, // Discuz! 论坛 - 搜索页
discuz_youspace: {
@@ -202,7 +202,7 @@ function: {
nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
pageE: 'css;form:not([action^="search.php?"]) tbody > tr:not(.th)',
replaceE: 'css;.pg, .pages',
- scrollD: 1000
+ scrollD: 1500
}
}, // Discuz! 论坛 - 回复页、主题页(别人的)
discuz_collection: {
@@ -211,7 +211,7 @@ function: {
nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
pageE: 'css;#ct .bm_c table > tbody',
replaceE: 'css;.pg, .pages',
- scrollD: 1000
+ scrollD: 1500
}
}, // Discuz! 论坛 - 淘帖页
flarum: {
@@ -220,7 +220,7 @@ function: {
type: 2,
nextL: 'css;.DiscussionList-loadMore > button',
isHidden: true,
- scrollD: 1000
+ scrollD: 1500
}
}, // Flarum 论坛
phpbb: {
From 2faf42fcdf3bf28362ea384a6010331793e13f45 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Tue, 14 Dec 2021 12:41:35 +0800
Subject: [PATCH 0054/1615] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20[=E7=99=BE?=
=?UTF-8?q?=E5=BA=A6=E6=90=9C=E7=B4=A2]=20=E8=A7=86=E9=A2=91=E5=88=86?=
=?UTF-8?q?=E7=B1=BB=E4=B8=8B=E4=BC=9A=E8=B7=B3=E8=BD=AC=E8=87=B3=E6=89=8B?=
=?UTF-8?q?=E6=9C=BA=E7=89=88=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 | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 8b8512ed4..25dd05879 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 4.1.3
+// @version 4.1.4
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -358,7 +358,7 @@ function: {
}, // 笔趣阁 模板的小说网站
baidu: {
host: 'www.baidu.com',
- functionS: function() {locationC = true; if (lp == '/s') {curSite = DBSite.baidu;} else if (indexOF('/s')) {location.hostname = 'm.baidu.com';}},
+ functionS: function() {locationC = true; if (lp == '/s') {curSite = DBSite.baidu;} else if (location.pathname.slice(location.pathname.length - 2,location.pathname.length) == '/s') {location.hostname = 'm.baidu.com';}},
insStyle: '.new-pmd .c-img-border {position: initial !important;} .op-bk-polysemy-video__wrap.c-gap-bottom {display: none !important;}',
history: true,
pager: {
@@ -371,7 +371,7 @@ function: {
}, // 百度 搜索
baidu_m: {
host: 'm.baidu.com',
- functionS: function() {if (indexOF('/s')) curSite = DBSite.baidu_m;},
+ functionS: function() {if (location.pathname.slice(location.pathname.length - 2,location.pathname.length) == '/s') curSite = DBSite.baidu_m;},
history: true,
insStyle: 'div.result[tpl="recommend_list"], #page-copyright {display: none !important;}',
pager: {
From de708aa733350f42eaec4f572aa6b9861c590dfa Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Tue, 14 Dec 2021 12:51:53 +0800
Subject: [PATCH 0055/1615] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E8=87=AA?=
=?UTF-8?q?=E5=8A=A8=E7=AD=BE=E5=88=B0=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
52pojie-Enhanced.user.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/52pojie-Enhanced.user.js b/52pojie-Enhanced.user.js
index 959c39de9..c8ec84b51 100644
--- a/52pojie-Enhanced.user.js
+++ b/52pojie-Enhanced.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 吾爱破解论坛增强 - 自动签到、翻页
-// @version 1.3.5
+// @version 1.3.6
// @author X.I.U
// @description 自动签到、自动无缝翻页、屏蔽导读悬赏贴(最新发表页)
// @match *://www.52pojie.cn/*
@@ -188,7 +188,7 @@
function qianDao() {
if (!menu_value('menu_autoClockIn')) return
if (location.pathname === '/home.php' && location.search.indexOf('mod=task') > -1) {return;}
- let qiandao = document.querySelector('#um a[href="home.php?mod=task&do=apply&id=2"]');
+ let qiandao = document.querySelector('#um a[href^="home.php?mod=task&do=apply&id=2"]');
if (qiandao) {
let iframe = document.createElement('iframe'); // XHR 方式无法签到,改用 iframe 框架打开签到网页
document.lastElementChild.appendChild(iframe);
From e870a458166ef3b216259213e98511ea164622c0 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Tue, 14 Dec 2021 13:52:40 +0800
Subject: [PATCH 0056/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E6=88=91?=
=?UTF-8?q?=E5=9B=BE=E7=BD=91]=E3=80=81[=E7=AB=8B=E5=88=9B=E5=BC=80?=
=?UTF-8?q?=E6=BA=90=E7=A1=AC=E4=BB=B6=E5=B9=B3=E5=8F=B0]=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 | 46 +++++++++++++++++++++++++++++++---------------
1 file changed, 31 insertions(+), 15 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 25dd05879..0c18f592d 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,12 +1,13 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 4.1.4
+// @version 4.1.5
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
// @connect www.xuexiniu.com
// @connect bbs.xuexiniu.com
// @connect www.tujigu.net
+// @connect weili.ooopic.com
// @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+o4yfhrGAdZsxHaqZt6dNce9KXYFSPfGWS68JFqTXSqO7+MCaTqETGTwxSeeoRCOoPT2YUIhFC2jbQF/uwUatU6rPbVUM5T+OfHUO3dWKv6kSsGUIOD6PEPr+fswnanpecFZYVQhFAyjPS9Tj4xw2rcU+pJApEutWsvRjaBW8NUShilkE1JIqlUPfi6VMLNFTBVr+7KYKqJ8uEjlM+dJrR5K0L7eB+9hTd2CFrWYt33h0jH3O5Nj37TBGtgZUBkUN/6q4dQ7UmsnlW450//gU5PPRq460uQXAu+j//i99A/+UdUMoXqbMNkz2OnUkixlF4u9spe/HMTULyEaA7jXkoT2fEbQIXi838DJ4cRDXHkEjc2b0MPHdptZubGpBUbM0UfKQpBRDmKWRSD3tTMk87gddA2WGe4+dkzMD0CyQ5qP/4XVDCAvfkaLMvHamzEClpQzGDF46iuJOH1CaKr2tDZRfzhQ0Ru24NYsYrCM4/jDb+FiHdi3XU/0s3vr7WsGKxcfyPSy+bxi0UqJ8f/IriiE2vrnuWsLefQk8NoO4AMBBB9/XjDI6hQCjdTxq9WCaQ6ULaDFrIeKr3oIlv70Olz2K1xlAVaSUQojD786nKi9e5A3LBHMHn0W+LUUaS1FI9q+iZZWLhHdq/FxFbWSSfsIDIQwVw4g/GK2OuuhloNMzaCaF+DNBJtQfX8LFYigElX0OkQtZKHVy3jqwDlqWncCzPI3nU4t+2FWrH+OLHzHpRl3109memTOhqDi9NfkefHEKvWLTO+VKD68Qf4G27CueFWhJ/Df+0lVFcXJOJYnobm1ZjsJUxuFjyDjK/GNK2gND4ESuDPXcCOSaI7thPqX0ft8OtUn/oTKOQgkET39KJU4RbpZXOtNRW717p+FyRSdYT+v36H4u/fQXbfc3iRDkT3FsTGjWAWEU0OZKfAU9CyEdXVD2lQPduplmo4jkBEbMzK1VgDu5EVTe3gm1RHx6Bcxpz6YLkEO0lMYeFGi6z7eVMqhkT/ZrCb0LNT+NMTRH/nt/BLRdy3X8Nv68Lu6cZEHURjE6K3hirYeLRhDWyA4jxzH40RXJwkeuM29MpN+JcziEsz+Avz6GgcW1pYbUlEQCyHwYpSyxS7rGo+v8man4ZMATrAHf+QSt7FTkWR4QbsjlbIX8IMH0VuuAqj4piGAbhmEPPzI/injnNxMUPuwOtseOIxKKTJ7/8BTBxDdXcjO9sJdTeg01VqH4wg3CDB9bshHMKORbGolVOmeRW09dVdUxkbp3ruNM7GXnS1hK5OYSoSbBDZBcxCBtF3DcUzk6hkhGA0RmtHKx1rOkE04lbzWC1tqMRt1CZHUafPIs8H6/JsNTcgN+9YFq1qgbBUFUvnK9qrVghXCvWN8MBmivueJDtylqaeBKWJaXR4JZEtNyBWrkGt6AJboCZO4J49Rc64xGIhcgtZgm6egKhgtUQQto17WeHOLqCNj5Vowbr7q4j+Lcs1JhhEphcXLTebd0jPwpkx6Lwa++bbCR95ALecp5a6BrvrJoLdHajmMOTnKb3+BrVMntjARpzeFbz8jcfpa22gGm+kMJlm95Zu9M9+iI5G0G3d6EgIUSnjzs/gv/Icgd6rqcvz0IeYWnXc8pEtYnEe8gtXNL7xz74LehHSE3DqNP7EIdx3p5DSh7JNJePiBE/gN3Uz8NWHae5sRJYXqKQvU+raQPg7L6L3/QNMHcfp6EREGjC5LDp9GaOs5VQ/NQI93YctOxFPlwniDh/C3n47JHvrQPTBl3DHjiIDQUQ4jGhOYcqaQFuE0Nl53OnLRHfsZV33KsTxd6GlHeaP477zMl5uAWv7dkyLg6kZREsb+vgCcvPOuoaYuWNQWERs3jAuQ6nooXK6TH566cXnrjQK7uwFaoseWA3oJf2WEhEJUjm/gMgXCfdvQlFFv/R3uCND6FIRv7MfMnOIiaPoI/8NEb2kWAhfoLbdjLr2jmUv/8f+pVbkHRGNnZHum2/udxxtCn4j/vgEIjNTD4O9upfIprUYoxBKo9Z14jumTq7YYD9WayvuR++hs1lkshmha4iuNeDYiIAFMoCevIi+cJHaa29gmvsRTUn0R29g9u1D7bxxv+jrRnpD56cCkdjfV9NzpA+8A5VlLojWAczlGVTAYKXimIU8MlsjtKEXgiF0aRGdm8cEYnXm+O+/gdAGuWsP3shhTHoOEYqCCEF2DsrF5f+e/xiikUldrT6l3z+GevSaTahaZdRY6uFqxRXR1sRyzU/21Gu6OTOMfzmPd6kI8TgiX8B4imouj1QCKmVUNITJ59AnR1F77kH4ZaRnQFroMyeRW3egdt6DwIX391Gshv+4LK2jtcuLqK9t7ALjZXzH1uVM/mb/7BTRnjZEex+idQ2EAnjjR/BdF1PIoV2Bae/F/fh9dL5IYE0XUmpMNo+ev4AINSJWb0UPHa63Z7SvRN3/CHJpFHj2G4iZzAuBbTu+GWpIEGxrQ/3RnlvxG5M4kYa3Lc2u4uyFblnIE+xfAbF2RMtqZGsn/uTYUgHH+dz9eFMnqYx8gO+CEwkjhcDPF/DLHurSaeTm3RiWMsDHeuDrSFvBv3+bi08+N1Vwuj/vZWtu+dwclZlFrESoeZmZysJXoTsCjnVk8dDQBuN+n8RDD9fbcdG7leBX1iOkQjhBOHmQfKGAHW3CS6fR+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
@@ -1516,6 +1517,22 @@ function: {
pF: [0, 'img[data-src]', 'data-src']
}
}, // 众图网
+ ooopic: {
+ host: ['www.ooopic.com', 'so.ooopic.com', 'weili.ooopic.com'],
+ functionS: function() {if (lp != '/' && !indexOF('/weili_')) {curSite = DBSite.ooopic;}},
+ insStyle: '.overWidth.clearfix.masonry {height: auto !important;} .pic-list, .video-list {position: relative !important;float: left !important;top: auto !important;left: auto !important;}',
+ pager: {
+ type: 1,
+ nextL: 'css;a.next_page, a.so-next',
+ pageE: 'css;.overWidth.clearfix.masonry > div',
+ replaceE: 'css;.page',
+ scrollD: 2000
+ },
+ function: {
+ bF: src_bF,
+ pF: [0, 'img[data-original]', 'data-original']
+ }
+ }, // 我图网
pixabay: {
host: 'pixabay.com',
pager: {
@@ -4681,20 +4698,6 @@ function: {
scrollD: 1500
}
}, // 没得比 - 分类/搜索页
- _1688: {
- host: 'shop1460048610607.1688.com',
- pager: {
- type: 1,
- nextL: 'css;a.next',
- pageE: 'css;.wp-all-offer-tab ul.offer-list-row',
- replaceE: 'css;li.pagination',
- scrollD: 1500
- },
- function: {
- bF: src_bF,
- pF: [0, 'img[data-lazy-load-src]', 'data-lazy-load-src']
- }
- }, // 没得比 - 分类/搜索页
ruyile_xuexiao: {
host: 'www.ruyile.com',
functionS: function() {
@@ -4783,6 +4786,19 @@ function: {
scrollD: 1000
}
}, // Quicker
+ oshwhub: {
+ host: 'www.oshwhub.com',
+ functionS: function() {if (lp == '/explore') {curSite = DBSite.oshwhub;}},
+ history: true,
+ pager: {
+ type: 1,
+ nextL: 'css;a.current+a',
+ pageE: 'css;.each-project',
+ replaceE: 'css;.page',
+ scriptT: 0,
+ scrollD: 1200
+ }
+ }, // 立创开源硬件平台
netbian: {
host: 'pic.netbian.com',
insStyle: 'li.nextpage {display: none !important;}',
From 1d475721dee0941180c65361c0cdb7997402e9d9 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Tue, 14 Dec 2021 14:36:49 +0800
Subject: [PATCH 0057/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E6=94=B6?=
=?UTF-8?q?=E8=97=8F=E5=A4=B9=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
---
Zhihu-Enhanced.user.js | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/Zhihu-Enhanced.user.js b/Zhihu-Enhanced.user.js
index bd0baa7c5..01ff2ef4d 100644
--- a/Zhihu-Enhanced.user.js
+++ b/Zhihu-Enhanced.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 知乎增强
-// @version 1.8.4
+// @version 1.8.5
// @author X.I.U
// @description 移除登录弹窗、屏蔽首页视频、默认收起回答、快捷收起当前回答/评论(左键两侧空白处)、快捷回到顶部(右键两侧空白处)、屏蔽用户 (发布的内容)、屏蔽关键词(标题/评论)、移除高亮链接、屏蔽盐选内容、净化标题消息、展开问题描述、置顶显示时间、完整问题时间、区分问题文章、直达问题按钮、默认高清原图、默认站外直链
// @match *://www.zhihu.com/*
@@ -717,6 +717,9 @@ function blockKeywords(type) {
case 'people':
blockKeywords_('.List-item', 'List-item');
break;
+ case 'collection':
+ blockKeywords_('.Card.CollectionDetailPageItem', 'Card CollectionDetailPageItem');
+ break;
case 'search':
blockKeywords_search();
break;
@@ -1477,7 +1480,7 @@ function questionInvitation(){
questionRichTextMore(); // 展开问题描述
blockUsers('question'); // 屏蔽指定用户
blockYanXuan(); // 屏蔽盐选内容
- blockType('question'); // 屏蔽指定类别(视频/文章等)
+ blockType('question'); // 屏蔽指定类别(视频/文章等)
defaultCollapsedAnswer(); // 默认收起回答
}
setInterval(topTime_question, 300); // 置顶显示时间
@@ -1500,7 +1503,7 @@ function questionInvitation(){
blockUsers('topic'); // 屏蔽指定用户
blockKeywords('topic'); // 屏蔽指定关键词
}
- } else if (location.hostname === 'zhuanlan.zhihu.com'){ // 文章 //
+ } else if (location.hostname === 'zhuanlan.zhihu.com'){ // 文章 //
backToTop('article.Post-Main.Post-NormalMain'); // 快捷返回顶部
backToTop('div.Post-Sub.Post-NormalSub'); // 快捷返回顶部
setInterval(topTime_zhuanlan, 300); // 置顶显示时间
@@ -1516,6 +1519,13 @@ function questionInvitation(){
setInterval(topTime_people, 300); // 置顶显示时间
blockUsers('people'); // 屏蔽指定用户
blockKeywords('people'); // 屏蔽指定关键词
+ } else if (location.pathname.indexOf('/collection/') > -1) { // 收藏夹 //
+ addTypeTips(); // 区分问题文章
+ addToQuestion(); // 直达问题按钮
+ collapsedNowAnswer('main'); // 收起当前回答 + 快捷返回顶部
+ collapsedNowAnswer('.CollectionsDetailPage'); // 收起当前回答 + 快捷返回顶部
+ setInterval(topTime_people, 300); // 置顶显示时间
+ blockKeywords('collection'); // 屏蔽指定关键词
} else { // 首页 //
collapsedNowAnswer('main div'); // 收起当前回答 + 快捷返回顶部
collapsedNowAnswer('.Topstory-container'); // 收起当前回答 + 快捷返回顶部
From 27c2786edee67431f614732d06ed2f9edcb54634 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Thu, 16 Dec 2021 09:49:47 +0800
Subject: [PATCH 0058/1615] =?UTF-8?q?=E8=B0=83=E6=95=B4=20=E6=96=87?=
=?UTF-8?q?=E5=AD=97=E7=BB=86=E8=8A=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Zhihu-Enhanced.user.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Zhihu-Enhanced.user.js b/Zhihu-Enhanced.user.js
index 01ff2ef4d..7ecc862a4 100644
--- a/Zhihu-Enhanced.user.js
+++ b/Zhihu-Enhanced.user.js
@@ -33,7 +33,7 @@ var menu_ALL = [
['menu_blockKeywords', '屏蔽指定关键词', '屏蔽指定关键词', true],
['menu_customBlockKeywords', '自定义屏蔽关键词', '自定义屏蔽关键词', []],
['menu_blockType', '屏蔽指定类别 (视频/文章等)', '勾选 = 屏蔽该类别的信息流', ''],
- ['menu_blockTypeVideo', '视频 [首页、搜索页]', '视频(首页、搜索页)', true],
+ ['menu_blockTypeVideo', '视频 [首页、搜索页、问题页]', '视频(首页、搜索页、问题页)', true],
['menu_blockTypeArticle', '文章 [首页、搜索页]', '文章(首页、搜索页)', false],
['menu_blockTypeTopic', '话题 [搜索页]', '话题(搜索页)', false],
['menu_blockTypeSearch', '杂志文章、相关搜索等 [搜索页]', '相关搜索、杂志等(搜索页)', false],
From 143794d9e9b2a67a99ad2f11a8f4ebe3378edcff Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Thu, 16 Dec 2021 17:45:42 +0800
Subject: [PATCH 0059/1615] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[Discuz!=20-=20?=
=?UTF-8?q?=E5=B8=96=E5=AD=90=E5=86=85]=20=E8=A7=84=E5=88=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 0c18f592d..3810a49e0 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 4.1.5
+// @version 4.1.6
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -180,7 +180,7 @@ function: {
type: 1,
nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
pageE: 'css;#postlist > div[id^="post_"]',
- replaceE: 'css;#ct > .pgs, .pages',
+ replaceE: '//div[contains(@class,"pg") or contains(@class,"pages")][./a[contains(@class,"nxt") or contains(@class,"next")][not(contains(@href,"javascript") or contains(@href,"commentmore"))]]',
scrollD: 1500
},
function: {
@@ -6770,14 +6770,17 @@ function: {
}
}
} else { // 获取主体元素失败后,尝试重新获取
+ console.log(curSite.pager.pageE, pageElems, curSite.pager.insertP, toElement)
if (curSite.retry) {
+ console.warn('[自动无缝翻页] 获取主体元素失败,尝试重新获取...')
setTimeout(function(){curSite.pageUrl = '';}, curSite.retry)
} else { // 尝试替换元素看能不能继续翻页下去
if (curSite.pager.replaceE) {
if (replaceElems(response)) { // 如果替换成功
+ console.log('[自动无缝翻页] 获取主体元素失败,尝试替换元素成功!')
pageNum.now = pageNum._now + 1; // 当前页码 + 1
if (curSite.history) addHistory(response); // 添加历史记录
- }
+ } else {console.error('[自动无缝翻页] 获取主体元素失败,尝试替换元素失败...')}
}
}
}
From 650b632887b9d9ba966295af716269fa8cb97ee5 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Fri, 17 Dec 2021 19:10:48 +0800
Subject: [PATCH 0060/1615] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20[F=20=E6=90=9C]?=
=?UTF-8?q?=20=E8=A7=84=E5=88=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 15 ++-------------
1 file changed, 2 insertions(+), 13 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 3810a49e0..ded9bb659 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 4.1.6
+// @version 4.1.7
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -604,13 +604,10 @@ function: {
pager: {
type: 6,
nextL: () => getNextP('css;.selected.turn-page-text.turn-page-num', 'pageIndex=', /pageIndex=\d+/),
- pageE: 'css;#search-result > div',
+ pageE: 'css;.organic-results > div',
replaceE: 'css;.bottom-pagination',
loadTime: 1000,
scrollD: 3000
- },
- function: {
- bF: fsou_bF
}
}, // F 搜
baidu_tieba: {
@@ -5630,14 +5627,6 @@ function: {
}
- // [F 搜] 的插入前函数(移除旧页码)
- function fsou_bF(pageElems) {
- let old = getCSS('.bottom-pagination')
- if (old) old.remove();
- return pageElems
- }
-
-
// [SkrBT] 获取下一页地址
function skrbt_nextL() {
let page = getCSS('a[onclick][aria-label="Next"]');
From a2b672fdd2345ede6b0384bb9c77b61f392752f6 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Fri, 17 Dec 2021 20:05:44 +0800
Subject: [PATCH 0061/1615] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[Discuz!=20-=20?=
=?UTF-8?q?=E5=B8=96=E5=AD=90=E5=86=85]=20=E8=A7=84=E5=88=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index ded9bb659..e928b405e 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -180,7 +180,7 @@ function: {
type: 1,
nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
pageE: 'css;#postlist > div[id^="post_"]',
- replaceE: '//div[contains(@class,"pg") or contains(@class,"pages")][./a[contains(@class,"nxt") or contains(@class,"next")][not(contains(@href,"javascript") or contains(@href,"commentmore"))]]',
+ replaceE: '//div[contains(@class,"pg") or contains(@class,"pages")][./a[contains(@class,"nxt") or contains(@class,"next") or contains(@class,"prev")][not(contains(@href,"javascript") or contains(@href,"commentmore"))]]',
scrollD: 1500
},
function: {
From fb82bdbf78d0e8407388ec7ae3a285348bf4e674 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sun, 19 Dec 2021 11:14:28 +0800
Subject: [PATCH 0062/1615] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E5=BF=85?=
=?UTF-8?q?=E5=BA=94=20-=20=E6=89=8B=E6=9C=BA=E7=89=88]=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 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index e928b405e..77291ab17 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 4.1.7
+// @version 4.1.8
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -415,7 +415,7 @@ function: {
history: true,
pager: {
type: 1,
- nextL: 'css;a.sb_pagN',
+ nextL: 'css;a.sb_pagN, a.sb_halfnext, a.sb_fullnpl',
pageE: 'css;#b_results > li:not(.b_msg):not([class="b_ans"]):not(.b_pag):not(#mfa_root)',
replaceE: 'css;#b_results > .b_pag',
scrollD: 1500
From a8a3b90e556f96573721e67daf84e46e1cb8da9b Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sun, 19 Dec 2021 21:05:55 +0800
Subject: [PATCH 0063/1615] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E8=8F=9C?=
=?UTF-8?q?=E9=B8=9F=E6=95=99=E7=A8=8B]=20=E8=A7=84=E5=88=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 22 +++++++++-------------
1 file changed, 9 insertions(+), 13 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 77291ab17..ac89afa56 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 4.1.8
+// @version 4.1.9
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -4214,16 +4214,12 @@ function: {
if (next && next.href.split('/').length === location.href.split('/').length && next.href.split('/')[3] === location.href.split('/')[3]) return next.href;
next.href = location.href; curSite = {SiteTypeID: 0}; return ''
},
- pageE: 'css;#content > *',
+ pageE: 'css;#content > *, script[src*="assets/js/main.min.js"]',
insertP: ['css;#content', 3],
replaceE: 'css;.previous-next-links, #leftcolumn',
+ scriptT: 2,
forceHTTPS: true,
scrollD: 1000
- },
- function: {
- aF: function() { // 左侧栏高亮当前页面标题
- let title = document.title.split(' | '); if (title.length > 1) {title = title[0]; getAllCSS('#leftcolumn > a').forEach(function(e){if (e.innerText === title) {e.style = 'background-color: rgb(150, 185, 125); font-weight: bold; color: rgb(255, 255, 255);';}})}
- }
}
}, // 菜鸟教程
cnblogs: {
@@ -6730,6 +6726,12 @@ function: {
// 当前页码 + 1
pageNum.now = pageNum._now + 1
+ // 添加历史记录
+ if (curSite.history) addHistory(response);
+
+ // 替换待替换元素
+ if (curSite.pager.replaceE) replaceElems(response);
+
// 插入