|
3 | 3 | // @name:zh-CN 自动无缝翻页 |
4 | 4 | // @name:zh-TW 自動無縫翻頁 |
5 | 5 | // @name:en AutoPager |
6 | | -// @version 6.6.44 |
| 6 | +// @version 6.6.45 |
7 | 7 | // @author X.I.U |
8 | 8 | // @description ⭐无缝加载 下一页内容 至网页底部(类似瀑布流,无限滚动,无需手动点击下一页)⭐,目前支持:【所有「Discuz!、Flarum、phpBB、MyBB、Xiuno、XenForo、NexusPHP...」论坛】【百度、谷歌(Google)、必应(Bing)、搜狗、微信、360、Yahoo、Yandex 等搜索引擎...】、贴吧、豆瓣、知乎、NGA、V2EX、起点中文、千图网、千库网、Pixabay、Pixiv、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、RuTracker、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、小众软件、【动漫狂、动漫屋、漫画猫、漫画屋、漫画 DB、HiComic、Mangabz、Xmanhua 等漫画网站...】、PubMed、Z-Library、GreasyFork、Github、StackOverflow(以上仅一小部分常见网站,更多的写不下了... |
9 | 9 | // @description:zh-TW ⭐無縫加載 下一頁內容 至網頁底部(類似瀑布流,无限滚动,無需手働點擊下一頁)⭐,支持各論壇、社交、遊戲、漫畫、小說、學術、搜索引擎(Google、Bing、Yahoo...) 等網站~ |
|
13 | 13 | // @connect userscript.xiu2.us.kg |
14 | 14 | // @connect userscript.h233.eu.org |
15 | 15 | // @connect bitbucket.org |
16 | | -// @connect js.cdn.haah.net |
| 16 | +// @connect jsd.onmicrosoft.cn |
| 17 | +// @connect wget.la |
| 18 | +// @connect cdn.wget.la |
| 19 | +// @connect ghgo.xyz |
17 | 20 | // @connect raw.ixnic.net |
18 | | -// @connect raw.nuaa.cf |
19 | | -// @connect raw.yzuu.cf |
20 | | -// @connect raw.kkgithub.com |
21 | | -// @connect raw.incept.pw |
22 | | -// @connect gitdl.cn |
23 | 21 | // @connect ghproxy.cc |
| 22 | +// @connect raw.github.site |
| 23 | +// @connect raw.github.store |
| 24 | +// @connect raw.dgithub.xyz |
| 25 | +// @connect gh-proxy.ygxz.in |
24 | 26 | // @connect ghproxy.net |
25 | | -// @connect ghp.ci |
26 | 27 | // @connect github.moeyy.xyz |
27 | | -// @connect jsd.onmicrosoft.cn |
| 28 | +// @connect cdn.jsdmirror.com |
| 29 | +// @connect js.cdn.haah.net |
| 30 | +// @connect gh.akass.cn |
| 31 | +// @connect raw.kkgithub.com |
28 | 32 | // @connect gcore.jsdelivr.net |
29 | 33 | // @connect fastly.jsdelivr.net |
30 | | -// @connect cdn.jsdmirror.com |
31 | 34 | // @connect jsd.proxy.aks.moe |
32 | 35 | // @connect jsdelivr.pai233.top |
| 36 | +// @connect gh-proxy.com |
33 | 37 | // @connect www.xuexiniu.com |
34 | 38 | // @connect bbs.xuexiniu.com |
35 | 39 | // @connect weili.ooopic.com |
|
89 | 93 |
|
90 | 94 | (function() { |
91 | 95 | 'use strict'; |
92 | | - const urlArr = [ // 外置翻页规则更新地址分流,以确保更新成功率(记得 connect) |
93 | | - 'https://userscript.h233.eu.org/other/Autopage/rules.json', |
94 | | - //'https://userscript.xiu2.us.kg/other/Autopage/rules.json', |
95 | | - 'https://bitbucket.org/xiu2/userscript/raw/master/other/Autopage/rules.json', |
| 96 | + let urlArr = [ // 外置翻页规则更新地址分流,以确保更新成功率(记得 connect) |
| 97 | + 'https://cdn.jsdmirror.com/gh/XIU2/UserScript/other/Autopage/rules.json', |
| 98 | + 'https://js.cdn.haah.net/gh/XIU2/UserScript/other/Autopage/rules.json', |
| 99 | + 'https://gh.akass.cn/XIU2/UserScript/master/other/Autopage/rules.json', |
96 | 100 | 'https://raw.kkgithub.com/XIU2/UserScript/master/other/Autopage/rules.json', |
97 | | - 'https://gitdl.cn/https://raw.githubusercontent.com/XIU2/UserScript/master/other/Autopage/rules.json', |
98 | | - 'https://raw.incept.pw/XIU2/UserScript/master/other/Autopage/rules.json', |
99 | | - 'https://raw.ixnic.net/XIU2/UserScript/master/other/Autopage/rules.json', |
100 | | - //'https://raw.nuaa.cf/XIU2/UserScript/master/other/Autopage/rules.json', |
101 | | - //'https://raw.yzuu.cf/XIU2/UserScript/master/other/Autopage/rules.json', |
102 | | - 'https://ghproxy.cc/https://raw.githubusercontent.com/XIU2/UserScript/master/other/Autopage/rules.json', |
103 | | - 'https://ghproxy.net/https://raw.githubusercontent.com/XIU2/UserScript/master/other/Autopage/rules.json', |
104 | | - 'https://ghp.ci/https://raw.githubusercontent.com/XIU2/UserScript/master/other/Autopage/rules.json', |
105 | | - 'https://github.moeyy.xyz/https://raw.githubusercontent.com/XIU2/UserScript/master/other/Autopage/rules.json', |
106 | | - 'https://jsd.onmicrosoft.cn/gh/XIU2/UserScript/other/Autopage/rules.json', |
107 | 101 | //'https://gcore.jsdelivr.net/gh/XIU2/UserScript/other/Autopage/rules.json', |
108 | 102 | 'https://fastly.jsdelivr.net/gh/XIU2/UserScript/other/Autopage/rules.json', |
109 | | - 'https://cdn.jsdmirror.com/gh/XIU2/UserScript/other/Autopage/rules.json', |
110 | | - 'https://jsd.proxy.aks.moe/gh/XIU2/UserScript/other/Autopage/rules.json', |
| 103 | + //'https://jsd.proxy.aks.moe/gh/XIU2/UserScript/other/Autopage/rules.json', |
111 | 104 | 'https://jsdelivr.pai233.top/gh/XIU2/UserScript/other/Autopage/rules.json', |
112 | | - 'https://js.cdn.haah.net/gh/XIU2/UserScript/other/Autopage/rules.json', |
113 | | - ], urlArr2 = [ |
| 105 | + 'https://gh-proxy.com/https://raw.githubusercontent.com/XIU2/UserScript/master/other/Autopage/rules.json', |
| 106 | + ] |
| 107 | + const urlArr2 = [ |
114 | 108 | 'https://userscript.h233.eu.org/other/Autopage/rules.json', |
115 | 109 | //'https://userscript.xiu2.us.kg/other/Autopage/rules.json', |
116 | 110 | 'https://userscript.xiu2.xyz/other/Autopage/rules.json', |
117 | 111 | 'https://bitbucket.org/xiu2/userscript/raw/master/other/Autopage/rules.json', |
118 | | - 'https://raw.kkgithub.com/XIU2/UserScript/master/other/Autopage/rules.json', |
119 | | - 'https://gitdl.cn/https://raw.githubusercontent.com/XIU2/UserScript/master/other/Autopage/rules.json', |
| 112 | + 'https://jsd.onmicrosoft.cn/gh/XIU2/UserScript/other/Autopage/rules.json', |
| 113 | + 'https://wget.la/https://raw.githubusercontent.com/XIU2/UserScript/master/other/Autopage/rules.json', |
| 114 | + 'https://cdn.wget.la/gh/XIU2/UserScript/other/Autopage/rules.json', |
| 115 | + 'https://ghgo.xyz/https://raw.githubusercontent.com/XIU2/UserScript/master/other/Autopage/rules.json', |
120 | 116 | 'https://raw.ixnic.net/XIU2/UserScript/master/other/Autopage/rules.json', |
121 | | - //'https://raw.nuaa.cf/XIU2/UserScript/master/other/Autopage/rules.json', |
122 | | - //'https://raw.yzuu.cf/XIU2/UserScript/master/other/Autopage/rules.json', |
| 117 | + 'https://ghproxy.cc/https://raw.githubusercontent.com/XIU2/UserScript/master/other/Autopage/rules.json', |
| 118 | + 'https://raw.github.site/XIU2/UserScript/master/other/Autopage/rules.json', |
| 119 | + 'https://raw.github.store/XIU2/UserScript/master/other/Autopage/rules.json', |
| 120 | + 'https://raw.dgithub.xyz/XIU2/UserScript/master/other/Autopage/rules.json', |
| 121 | + 'https://gh-proxy.ygxz.in//https://raw.githubusercontent.com/XIU2/UserScript/master/other/Autopage/rules.json', |
123 | 122 | 'https://ghproxy.net/https://raw.githubusercontent.com/XIU2/UserScript/master/other/Autopage/rules.json', |
124 | | - 'https://ghp.ci/https://raw.githubusercontent.com/XIU2/UserScript/master/other/Autopage/rules.json', |
125 | 123 | 'https://github.moeyy.xyz/https://raw.githubusercontent.com/XIU2/UserScript/master/other/Autopage/rules.json', |
126 | 124 | ], |
127 | 125 | loadMoreExclude1 = ['.smzdm.com','stackoverflow.com'], |
|
136 | 134 | ['menu_rules', '更新外置翻页规则 (每天自动)', '更新外置翻页规则 (每天自动)', {}], |
137 | 135 | ['menu_customRules', '自定义翻页规则', '自定义翻页规则', {}] |
138 | 136 | ], menuId = [], webType = 0, curSite = {SiteTypeID: 0}, DBSite, DBSite2, DBSiteNow, pausePage = true, pageNum = {now: 1, _now: 1}, urlC = false, nowLocation = '', lp = location.pathname, scriptHandler; |
| 137 | + urlArr.push(...urlArr2); // 合并数组 |
139 | 138 | window.autoPage = {lp: ()=>location.pathname, indexOF: indexOF, isMobile: isMobile, isUrlC: isUrlC, isPager: isPager, isTitle: isTitle, blank: forceTarget, getAll: getAll, getOne: getOne, getAllXpath: getAllXpath, getXpath: getXpath, getAllCSS: getAllCSS, getCSS: getCSS, getNextE: getNextE, getNextEP: getNextEP, getNextSP: getNextSP, getNextEPN: getNextEPN, getNextUPN: getNextUPN, getNextUP: getNextUP, getNextF: getNextF, getSearch: getSearch, getCookie: getCookie, insStyle: insStyle, insScript: insScript, cleanuEvent: cleanuEvent, src_bF: src_bF, xs_bF: xs_bF, pageNumIncrement: pageNumIncrement} |
140 | 139 | if (typeof GM_info != 'undefined') {scriptHandler = GM_info.scriptHandler;} else if (typeof GM != 'undefined' && typeof GM.info != 'undefined') {scriptHandler = GM.info.scriptHandler;} else {scriptHandler = '';} |
141 | 140 | for (let i=0;i<menuAll.length;i++){ // 如果读取到的值为 null 就写入默认值 |
|
0 commit comments