(pageE, type)
| 1573 | } |
| 1574 | // [Xmanhua 漫画] 插入数据 |
| 1575 | function xmanhua_insertE(pageE, type) { |
| 1576 | if (pageE) { |
| 1577 | if (type === 'Next') { // 下一页 |
| 1578 | let imgArr = eval(pageE), |
| 1579 | _img = ''; |
| 1580 | for (let now of imgArr) {_img += `<img src="${now}">`;} |
| 1581 | if (_img) { |
| 1582 | getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中 |
| 1583 | unsafeWindow[unsafeWindow.MH_PREFIX23+'PAGE'] += imgArr.length; |
| 1584 | addHistory(pageE, document.title, location.origin + unsafeWindow[unsafeWindow.MH_PREFIX23+'CURL'].substring(0, unsafeWindow[unsafeWindow.MH_PREFIX23+'CURL'].length - 1) + '-p' + unsafeWindow[unsafeWindow.MH_PREFIX23+'PAGE'] + '/'); |
| 1585 | } |
| 1586 | } else { // 下一话 |
| 1587 | // 插入 <script> 标签 |
| 1588 | insScript('html:not([dir]) > head > script:not([src])', pageE); |
| 1589 | addHistory(pageE); |
| 1590 | pageNumIncrement() |
| 1591 | replaceElems(pageE) |
| 1592 | unsafeWindow[unsafeWindow.MH_PREFIX23+'PAGE'] = 0; |
| 1593 | xmanhua_nextL(); |
| 1594 | } |
| 1595 | } |
| 1596 | } |
| 1597 | |
| 1598 | |
| 1599 | // -------------------------------------------------------- |
nothing calls this directly
no test coverage detected