diff --git a/Autopage.user.js b/Autopage.user.js index a1bc2e7..1d67197 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3,7 +3,7 @@ // @name:zh-CN 自动无缝翻页 // @name:zh-TW 自動無縫翻頁 // @name:en AutoPager -// @version 5.6.0 +// @version 5.6.1 // @author X.I.U // @description ⭐无缝衔接下一页内容到网页底部(类似瀑布流)⭐,目前支持:【所有「Discuz!、Flarum、phpBB、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(以上仅一小部分,更多的写不下了... // @description:zh-TW ⭐無縫銜接下一頁內容到網頁底部(類似瀑布流)⭐,支持各論壇、社交、遊戲、漫畫、小說、學術、搜索引擎(Google、Bing、Yahoo...) 等網站~ @@ -1146,6 +1146,7 @@ function: { pager: { type: 4, nextL: ykmh_nextL, + pageE: '//script[contains(text(),"chapterImages")]', insertP: ['#images', 3], insertE: ykmh_insertE, replaceE: '.head_title, span.head_wz', @@ -1278,7 +1279,7 @@ function: { } }, // 新新漫画 - 搜索页 gufengmh: { - host: /gufengmh/, + host: /^www\.gufengmh\d/, url: ()=> {if (indexOF(/\/\d+.+\.html/)) { let chapterScroll = getCSS('#chapter-scroll') // 强制为 [下拉阅读] 模式 if (chapterScroll && chapterScroll.className === '') {chapterScroll.click();} @@ -1289,8 +1290,8 @@ function: { style: 'p.img_info {display: none !important;}', // 隐藏中间的页数信息 pager: { type: 4, - nextL: gufengmh_nextL, - pageE: 'body > script:first-child', + nextL: ykmh_nextL, + pageE: '//script[contains(text(),"chapterImages")]', insertP: ['#images', 3], insertE: gufengmh_insertE, interval: 5000, @@ -1515,7 +1516,7 @@ function: { if (typeof(GM_getValue('menu_ruleUpdateTime', '')) == 'string') update = true let urlArr = [//'https://userscript.gh2233.ml/other/Autopage/rules.json', - //'https://raw.iqiq.io/XIU2/UserScript/master/other/Autopage/rules.json', + 'https://raw.iqiq.io/XIU2/UserScript/master/other/Autopage/rules.json', 'https://hk1.monika.love/XIU2/UserScript/master/other/Autopage/rules.json', 'https://raw.fastgit.org/XIU2/UserScript/master/other/Autopage/rules.json', 'https://ghproxy.fsofso.com/https://github.com/XIU2/UserScript/blob/master/other/Autopage/rules.json', @@ -2222,17 +2223,16 @@ function: { // [优酷漫画] 获取下一页地址 function ykmh_nextL() { let url = comicUrl + nextChapterData.id + '.html' - if (url && url != '.html' && url != curSite.pageUrl) { + if (nextChapterData.id != null && url && url != '.html' && url != curSite.pageUrl) { curSite.pageUrl = url; getPageE_(curSite.pageUrl); } } // [优酷漫画] 插入数据 function ykmh_insertE(pageE, type) { - //console.log(pageE) if (!pageE) return // 插入并运行