From 4d55f2e41ddf643c272c909502a5b935afab2c54 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Wed, 31 Mar 2021 16:28:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E5=BC=82=E6=AC=A1?= =?UTF-8?q?=E5=85=83=E8=BD=AF=E4=BB=B6=E3=80=81=E4=B8=8D=E6=AD=BB=E9=B8=9F?= =?UTF-8?q?]=20=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 108 +++++++++++++++++++++++------------------------ README.md | 2 +- 2 files changed, 55 insertions(+), 55 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 466a005..afe7824 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -2,7 +2,7 @@ // @name 自动无缝翻页 // @version 1.1.6 // @author X.I.U -// @description 自动无缝翻页,目前支持:423Down、Apphot、小众软件、PubMed、异次元软件、不死鸟、三国杀论坛 +// @description 自动无缝翻页,目前支持:423Down、Apphot、不死鸟、小众软件、异次元软件、三国杀论坛、PubMed // @match *://www.423down.com/* // @exclude *://www.423down.com/*.html // @match *://apphot.cc/* @@ -25,7 +25,7 @@ (function() { // 注册脚本菜单 - GM_registerMenuCommand('反馈 & 申请添加支持', function () {window.GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true});}); + GM_registerMenuCommand('反馈 & 欢迎申请支持', function () {window.GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true});window.GM_openInTab('https://greasyfork.org/zh-CN/scripts/419215/feedback', {active: true,insert: true,setParent: true});}); // 默认 ID 为 0 var curSite = {SiteTypeID: 0}; @@ -58,8 +58,20 @@ scrollDelta: 1500 } }, - appinn_postslist: { + iao_su_postslist: { SiteTypeID: 3, + pager: { + type: 1, + nextLink: '//li[@class="btn btn-primary next"]//a[@href]', + pageElement: 'css;#index > article, #archive > article', + HT_insert: ['css;ol.page-navigator', 1], + replaceE: 'css;ol.page-navigator', + scrollDelta: 800, + beforeFunction: iao_su_postslist_beforeFunction + } + }, + appinn_postslist: { + SiteTypeID: 4, pager: { type: 1, nextLink: '//a[@class="next page-numbers"][@href]', @@ -69,48 +81,8 @@ scrollDelta: 1500 } }, - pubmed_postslist: { - SiteTypeID: 4, - pager: { - type: 2, - nextLink: 'button.load-button.next-page', - nextText: 'Show more', - scrollDelta: 1500 - } - }, - sanguosha_forum: { - SiteTypeID: 5, - pager: { - type: 2, - nextLink: '#autopbn', - nextText: '下一页 »', - scrollDelta: 800 - } - }, - sanguosha_thread: { - SiteTypeID: 6, - pager: { - type: 1, - nextLink: '//a[@class="nxt"][@href]', - pageElement: 'css;div#postlist > div[id^="post_"]', - HT_insert: ['css;div#postlist', 3], - replaceE: 'css;div.pg', - scrollDelta: 800 - } - }, - sanguosha_search: { - SiteTypeID: 7, - pager: { - type: 1, - nextLink: '//a[@class="nxt"][@href]', - pageElement: 'css;div#threadlist > ul', - HT_insert: ['css;div#threadlist', 3], - replaceE: 'css;div.pg', - scrollDelta: 800 - } - }, iplaysoft_postslist: { - SiteTypeID: 8, + SiteTypeID: 5, pager: { type: 1, nextLink: '//div[@class="pagenavi"]//a[@title="下一页"][@href]', @@ -122,7 +94,7 @@ } }, iplaysoft_postcomments: { - SiteTypeID: 9, + SiteTypeID: 6, pager: { type: 2, nextLink: '#loadHistoryComments', @@ -130,18 +102,46 @@ scrollDelta: 1200 } }, - iao_su_postslist: { - SiteTypeID: 10, + sanguosha_forum: { + SiteTypeID: 7, pager: { - type: 1, - nextLink: '//li[@class="btn btn-primary next"]//a[@href]', - pageElement: 'css;#index > article, #archive > article', - HT_insert: ['css;ol.page-navigator', 1], - replaceE: 'css;ol.page-navigator', - scrollDelta: 1000, - beforeFunction: iao_su_postslist_beforeFunction + type: 2, + nextLink: '#autopbn', + nextText: '下一页 »', + scrollDelta: 800 } }, + sanguosha_thread: { + SiteTypeID: 8, + pager: { + type: 1, + nextLink: '//a[@class="nxt"][@href]', + pageElement: 'css;div#postlist > div[id^="post_"]', + HT_insert: ['css;div#postlist', 3], + replaceE: 'css;div.pg', + scrollDelta: 800 + } + }, + sanguosha_search: { + SiteTypeID: 9, + pager: { + type: 1, + nextLink: '//a[@class="nxt"][@href]', + pageElement: 'css;div#threadlist > ul', + HT_insert: ['css;div#threadlist', 3], + replaceE: 'css;div.pg', + scrollDelta: 800 + } + }, + pubmed_postslist: { + SiteTypeID: 10, + pager: { + type: 2, + nextLink: 'button.load-button.next-page', + nextText: 'Show more', + scrollDelta: 1500 + } + } }; diff --git a/README.md b/README.md index ba47eac..834da54 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ | [](https://www.zhihu.com/people/xiu2) | **知乎 增强** | **移除登录弹窗**、一键收起回答、置顶显示时间、区分问题文章... | **[安装](https://greasyfork.org/zh-CN/scripts/419081)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/Zhihu-Enhanced.user.js)** | | [](https://www.v2ex.com/) | **V2ex 增强** | **自动签到**、自动无缝翻页、回到顶部 (右键点击两侧空白处... | **[安装](https://greasyfork.org/zh-CN/scripts/424246)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/V2ex-Enhanced.user.js)** | | [](https://github.com/XIU2) | **Github 增强** | **高速下载** Git Clone、Release、Raw、Code(ZIP) 等文件... | **[安装](https://greasyfork.org/zh-CN/scripts/412245)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/GithubEnhanced-High-Speed-Download.user.js)** | -| [](https://github.com/XIU2) | **自动无缝翻页 \*** | 目前支持:423Down、Apphot、小众软件、PubMed... | **[安装](https://greasyfork.org/zh-CN/scripts/419215)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/Autopage.user.js)** | +| [](https://github.com/XIU2) | **自动无缝翻页 \*** | 423Down、Apphot、不死鸟、小众软件、异次元软件... | **[安装](https://greasyfork.org/zh-CN/scripts/419215)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/Autopage.user.js)** | | [](https://bbs.3dmgame.com) | **3DM论坛 美化** | 精简多余内容、样式优化 | **[安装](https://greasyfork.org/zh-CN/scripts/413593)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/3dm-Beautification.user.js)** | | [](https://bbs.3dmgame.com) | **3DM论坛 增强** | **自动回复**、自动无缝翻页、清理置顶帖子、自动滚动至隐藏... | **[安装](https://greasyfork.org/zh-CN/scripts/412890)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/3dm-Enhanced.user.js)** | | [](http://bbs.zhiyoo.net/forum.php?mod=forumdisplay&fid=42&filter=author&orderby=dateline) | **智友邦论坛 美化** | 精简多余内容、样式优化、宽屏显示 | **[安装](https://greasyfork.org/zh-CN/scripts/412361)** \| **[备用](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/Zhiyoo-Beautification.user.js)** |