|
3 | 3 | // @name:zh-CN 自动无缝翻页 |
4 | 4 | // @name:zh-TW 自動無縫翻頁 |
5 | 5 | // @name:en AutoPager |
6 | | -// @version 6.4.27 |
| 6 | +// @version 6.4.28 |
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...) 等網站~ |
@@ -1048,26 +1048,6 @@ function: { |
1048 | 1048 | scrollD: 800 |
1049 | 1049 | } |
1050 | 1050 | }, // Mangabz 漫画 - 分类/搜索页 |
1051 | | - dm5: { |
1052 | | - host: 'www.dm5.com', |
1053 | | - url: ()=> {if (indexOF(/\/m\d+/)) { |
1054 | | - setTimeout(mangabz_init, 1500); |
1055 | | - curSite = DBSite.dm5; |
1056 | | - } else if (indexOF('/manga-list') || lp == '/search' || getCSS('.box-body > ul.mh-list > li')) { |
1057 | | - curSite = DBSite.mangabz_list; |
1058 | | - } else if (getCSS('.detail-more')) { |
1059 | | - getCSS('.detail-more').click(); |
1060 | | - }}, |
1061 | | - style: '.view-paging > .container, .view-comment {display: none !important;} .rightToolBar {opacity: 0.3 !important;} #cp_img > img, #barChapter > img{display: block !important;margin: 0 auto !important; max-width: 99% !important; width: auto !important; height: auto !important;} body {overflow: auto !important;}', |
1062 | | - pager: { |
1063 | | - type: 4, |
1064 | | - nextL: dm5_nextL, |
1065 | | - insertP: ['#barChapter,#cp_img', 3], |
1066 | | - insertE: dm5_insertE, |
1067 | | - replaceE: '.view-paging > .container, .rightToolBar', |
1068 | | - interval: 500 |
1069 | | - } |
1070 | | - }, // 动漫屋 |
1071 | 1051 | xmanhua: { |
1072 | 1052 | host: ['xmanhua.com', 'www.xmanhua.com'], |
1073 | 1053 | url: ()=> {if (indexOF(/\/m\d+/)) { |
@@ -1721,45 +1701,6 @@ function: { |
1721 | 1701 | } |
1722 | 1702 |
|
1723 | 1703 |
|
1724 | | - // [动漫屋] 获取下一页地址 |
1725 | | - function dm5_nextL() { |
1726 | | - var url = ''; |
1727 | | - if (DM5_PAGE === DM5_IMAGE_COUNT) { // 下一话 |
1728 | | - if (getNextE('//div[@class="view-paging"]//a[text()="下一章"]')) getPageE_(curSite.pageUrl); // 访问下一话 URL 获取 |
1729 | | - } else { // 下一页 |
1730 | | - if (!mkey) var mkey = ''; |
1731 | | - url = location.origin + location.pathname + 'chapterfun.ashx' + `?cid=${DM5_CID}&page=${DM5_PAGE + 1}&key=${(mkey)}&language=1>k=6&_cid=${DM5_CID}&_mid=${DM5_MID}&_dt=${DM5_VIEWSIGN_DT}&_sign=${DM5_VIEWSIGN}` |
1732 | | - if (url === curSite.pageUrl) return |
1733 | | - curSite.pageUrl = url |
1734 | | - //console.log(curSite.pageUrl) |
1735 | | - getPageE_(curSite.pageUrl, 'text', 'GET', '', 'Next'); // 访问下一页 URL 获取 |
1736 | | - } |
1737 | | - } |
1738 | | - // [动漫屋] 插入数据 |
1739 | | - function dm5_insertE(pageE, type) { |
1740 | | - if (pageE) { |
1741 | | - if (type === 'Next') { // 下一页 |
1742 | | - let imgArr = eval(pageE), |
1743 | | - _img = ''; |
1744 | | - for (let now of imgArr) {_img += `<img src="${now}">`;} |
1745 | | - if (_img) { |
1746 | | - getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中 |
1747 | | - DM5_PAGE += imgArr.length; |
1748 | | - addHistory(pageE, document.title, location.origin + DM5_CURL.substring(0, DM5_CURL.length - 1) + '-p' + DM5_PAGE + '/'); |
1749 | | - } |
1750 | | - } else { // 下一话 |
1751 | | - // 插入 <script> 标签 |
1752 | | - insScript('html:not([dir])>head>script:not([src])', pageE); |
1753 | | - addHistory(pageE); |
1754 | | - pageNum.now = pageNum._now + 1 |
1755 | | - replaceElems(pageE) |
1756 | | - DM5_PAGE = 0; |
1757 | | - dm5_nextL(); |
1758 | | - } |
1759 | | - } |
1760 | | - } |
1761 | | - |
1762 | | - |
1763 | 1704 | // [Xmanhua 漫画] 获取下一页地址 |
1764 | 1705 | function xmanhua_nextL() { |
1765 | 1706 | var url = ''; |
|
0 commit comments