|
3 | 3 | // @name:zh-CN 自动无缝翻页 |
4 | 4 | // @name:zh-TW 自動無縫翻頁 |
5 | 5 | // @name:en AutoPager |
6 | | -// @version 6.2.5 |
| 6 | +// @version 6.2.6 |
7 | 7 | // @author X.I.U |
8 | 8 | // @description ⭐无缝加载 下一页内容 至网页底部(类似瀑布流)⭐,目前支持:【所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、NexusPHP...」论坛】【百度、谷歌(Google)、必应(Bing)、搜狗、微信、360、Yahoo、Yandex 等搜索引擎...】、贴吧、豆瓣、知乎、B 站(bilibili)、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...) 等網站~ |
@@ -831,12 +831,12 @@ function: { |
831 | 831 | }, // NexusPHP 论坛 |
832 | 832 | nexusmods: { |
833 | 833 | host: 'www.nexusmods.com', |
834 | | - url: ()=> {urlC = true; if (!(lp == '/' || indexOF(/\/mods\/\d+/) || !getCSS('.pagination li.next'))) {curSite = DBSite.nexusmods;}}, |
| 834 | + url: ()=> {urlC = true; if (!(lp == '/' || !getCSS('.pagination a.page-selected'))) {curSite = DBSite.nexusmods;}}, |
835 | 835 | blank: 1, |
836 | 836 | history: false, |
837 | 837 | pager: { |
838 | 838 | nextL: nexusmods_nextL, |
839 | | - pageE: 'ul.tiles > li', |
| 839 | + pageE: 'ul.tiles>li,li.comment:not(.comment-sticky)', |
840 | 840 | replaceE: '.pagination', |
841 | 841 | scrollD: 3500 |
842 | 842 | }, |
@@ -1369,23 +1369,19 @@ function: { |
1369 | 1369 |
|
1370 | 1370 | // [NexusMods] 获取下一页地址 |
1371 | 1371 | function nexusmods_nextL() { |
1372 | | - if (getCSS('.nexus-ui-blocker') || !getCSS('.pagination li.next')) return |
| 1372 | + if (getCSS('.nexus-ui-blocker') || !getCSS('.pagination a.page-selected')) return |
1373 | 1373 | let modList; |
1374 | | - if (indexOF('/news')) {modList = RH_NewsTabContent;} else if (indexOF('/users/') && indexOF('tab=user+files','s')) {modList = RH_UserModsTab;} else {modList = RH_ModList;} |
| 1374 | + if (indexOF('/news')) {modList = RH_NewsTabContent;} else if (indexOF('/users/') && indexOF('tab=user+files','s')) {modList = RH_UserModsTab;} else if (indexOF('/mods/') && indexOF('tab=posts','s')) {modList = RH_CommentContainer;} else {modList = RH_ModList;} |
1375 | 1375 | if (!modList) return |
1376 | 1376 | let out_items = JSON.stringify(modList.out_items).replace(/{|}|"/g,''), |
1377 | | - nextNum = getXpath('//div[contains(@class, "pagenav")][1]//a[contains(@class, "page-selected")]/parent::li/following-sibling::li/a'), |
| 1377 | + nextNum = getXpath('//div[contains(@class, "pagination")][1]//a[contains(@class, "page-selected")]/parent::li/following-sibling::li[1]/a'), |
1378 | 1378 | categories = modList.out_items.categories, categoriesUrl = '', |
1379 | 1379 | tags_yes = modList.out_items.tags_yes, tags_yesUrl = '', |
1380 | 1380 | search = modList.out_items.search, searchUrl = ''; |
1381 | 1381 | var url = ''; |
1382 | 1382 | if (nextNum && nextNum.innerText) { |
1383 | 1383 | nextNum = nextNum.innerText; |
1384 | | - if (out_items.indexOf('page:') > -1) { |
1385 | | - out_items = out_items.replace(/page:\d+/, `page:${nextNum}`) |
1386 | | - } else { |
1387 | | - out_items += `,page:${nextNum}`; |
1388 | | - } |
| 1384 | + if (out_items.indexOf('page:') > -1) {out_items = out_items.replace(/page:\d+/, `page:${nextNum}`);} else {out_items += `,page:${nextNum}`;} |
1389 | 1385 | if (categories && categories != []) { |
1390 | 1386 | for (let i = 0; i < categories.length; i++) {categoriesUrl += `,categories[]:${categories[i]}`;} |
1391 | 1387 | if (out_items.indexOf('categories:') > -1) out_items = out_items.replace(/categories:\[.*\]/, categoriesUrl.replace(/,/,'')) |
|
0 commit comments