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 = `全球 Web 图标`; + }) + }); + 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;} -
-
${title}
-

${tips}


` - if (line) _br = '
' - for (let i=0; i${menu[i][1]}${_br}` - } else { - _html += `${_br}` - } - } - _html += `
` - 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