MCPcopy Index your code
hub / github.com/XIU2/UserScript / xmanhua_nextL

Function xmanhua_nextL

Autopage.user.js:1561–1573  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1559
1560 // [Xmanhua 漫画] 获取下一页地址
1561 function xmanhua_nextL() {
1562 var url = '';
1563 if (unsafeWindow[unsafeWindow.MH_PREFIX23+'PAGE'] === unsafeWindow[unsafeWindow.MH_PREFIX23+'IMAGE_COUNT']) { // 下一话
1564 if (getNextE_('//a[./img[contains(@src, "reader-bottom-right-2.png")]]')) getPageE_(curSite.pageUrl); // 访问下一话 URL 获取
1565 } else { // 下一页
1566 if (!mkey) var mkey = '';
1567 url = location.origin + location.pathname + 'chapterimage.ashx' + `?cid=${unsafeWindow[unsafeWindow.MH_PREFIX23+'CID']}&page=${unsafeWindow[unsafeWindow.MH_PREFIX23+'PAGE'] + 1}&key=${(mkey)}&_cid=${unsafeWindow[unsafeWindow.MH_PREFIX23+'_CID']}&_mid=${unsafeWindow[unsafeWindow.MH_PREFIX23+'MID']}&_dt=${unsafeWindow[unsafeWindow.MH_PREFIX23+'VIEWSIGN_DT']}&_sign=${unsafeWindow[unsafeWindow.MH_PREFIX23+'VIEWSIGN']}`
1568 if (url === curSite.pageUrl) return
1569 curSite.pageUrl = url
1570 //console.log(curSite.pageUrl)
1571 getPageE_(curSite.pageUrl, 'text', 'GET', '', 'Next'); // 访问下一页 URL 获取
1572 }
1573 }
1574 // [Xmanhua 漫画] 插入数据
1575 function xmanhua_insertE(pageE, type) {
1576 if (pageE) {

Callers 1

xmanhua_insertEFunction · 0.85

Calls 2

getNextE_Function · 0.85
getPageE_Function · 0.85

Tested by

no test coverage detected