|
5 | 5 | // @name:en AutoPager |
6 | 6 | // @version 5.4.1 |
7 | 7 | // @author X.I.U |
8 | | -// @description ⭐无缝衔接下一页内容到网页底部(类似瀑布流)⭐,目前支持:【所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、NexusPHP...」论坛】【百度、谷歌(Google)、必应(Bing)、搜狗、微信、360、Yahoo、Yandex 等搜索引擎...】、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、煎蛋网、龙的天空、起点中文、千图网、千库网、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(以上仅一小部分,更多的写不下了... |
| 8 | +// @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(以上仅一小部分,更多的写不下了... |
9 | 9 | // @description:zh-TW ⭐無縫銜接下一頁內容到網頁底部(類似瀑布流)⭐,支持各論壇、社交、遊戲、漫畫、小說、學術、搜索引擎(Google、Bing、Yahoo...) 等網站~ |
10 | 10 | // @description:en Append the next page content to the bottom seamlessly (like a waterfall)~ |
11 | 11 | // @match *://*/* |
@@ -669,9 +669,9 @@ function: { |
669 | 669 | host: 'search.bilibili.com', |
670 | 670 | url: ()=> { |
671 | 671 | urlC = true; |
672 | | - if (lp == '/all' || lp == '/video') { |
| 672 | + if ((lp == '/all' || lp == '/video') && getCSS('ul.video-list') != null) { |
673 | 673 | curSite = DBSite.bilibili_search; |
674 | | - } else if (lp == '/article') { |
| 674 | + } else if (lp == '/article' && getCSS('#article-list') != null) { |
675 | 675 | curSite = DBSite.bilibili_search_article; |
676 | 676 | } |
677 | 677 | }, |
@@ -1545,24 +1545,6 @@ function: { |
1545 | 1545 | // 插入 Style CSS 样式 |
1546 | 1546 | if (curSite.style) insStyle(curSite.style) |
1547 | 1547 |
|
1548 | | - // 对翻页模式 5 的子 iframe 添加一个跟随滚动的事件 |
1549 | | - /*if (curSite.pager && curSite.pager.type === 5 && self != top) { |
1550 | | - var beforeScrollTop = document.documentElement.scrollTop || document.body.scrollTop |
1551 | | - window.addEventListener('scroll', function (e) { |
1552 | | - let scrollTop = window.parent.document.documentElement.scrollTop || window.parent.document.body.scrollTop, |
1553 | | - clientHeight = window.parent.document.documentElement.clientHeight || window.parent.document.body.clientHeight, |
1554 | | - scrollHeight = window.parent.document.documentElement.scrollHeight || window.parent.document.body.scrollHeight, |
1555 | | - afterScrollTop = document.documentElement.scrollTop || document.body.scrollTop, |
1556 | | - delta = afterScrollTop - beforeScrollTop; |
1557 | | - if (delta == 0) return false; |
1558 | | - beforeScrollTop = afterScrollTop; |
1559 | | - //console.log(delta, scrollHeight - (scrollTop + clientHeight), '2222') |
1560 | | - if (delta > 0 && scrollTop + clientHeight < scrollHeight) { |
1561 | | - window.parent.scrollBy(0, delta); |
1562 | | - } |
1563 | | - }, false); |
1564 | | - }*/ |
1565 | | - |
1566 | 1548 | // 自动无缝翻页 |
1567 | 1549 | pageLoading(); |
1568 | 1550 |
|
|
0 commit comments