diff --git a/Autopage.user.js b/Autopage.user.js index d86afcc..5e57aa1 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.4.4 +// @version 2.4.5 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条、360、微信、贴吧、豆瓣、微博、NGA、V2EX、龙的天空、起点小说、煎蛋网、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、小霸王其乐无穷、CS.RIN.RU、FitGirl、茶杯狐、NO视频、低端影视、奈菲影视、91美剧网、真不卡影院、片库、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画DB、HiComic、动漫之家、古风漫画网、PubMed、wikiHow、GreasyFork、Github、StackOverflow(以上仅一部分,更多的写不下了... // @match *://*/* @@ -1503,6 +1503,26 @@ scrollDelta: 2000 } }, // MINI4K + bthaha: { + SiteTypeID: 0, + host: /bthaha/, + functionStart: function() {if (location.pathname.indexOf('/search/') > -1) { + curSite = DBSite.bthaha; + document.lastElementChild.appendChild(document.createElement('style')).textContent = '[id^="list_top"], [id^="list_bottom"] {display: none !important;}'; + document.querySelectorAll('[id^="list_top"], [id^="list_bottom"]').forEach(function (one) {one.parentElement.parentElement.hidden = true;}); + }}, + pager: { + type: 1, + nextLink: '//ul[@class="pagination"]/li/a[contains(text(), "下一页")]', + pageElement: 'css;table.table > tbody > tr', + insertPosition: ['css;table.table > tbody', 3], + replaceE: 'css;ul.pagination', + scrollDelta: 1000 + }, + function: { + before: bthaha_functionBefore + } + }, // BTHaha a4k: { SiteTypeID: 0, host: 'www.a4k.net', @@ -3162,6 +3182,16 @@ } + // [BTHaha] 的插入前函数(加载图片) + function bthaha_functionBefore(pageElems) { + pageElems.forEach(function (one) { + let now = one.querySelector('[id^="list_top"], [id^="list_bottom"]') + if (now) {one.hidden = true;} + }); + return pageElems + } + + // [射手网] 获取下一页地址 function assrt_functionNext() { let nextXPAHT = '//a[@id="pl-nav"][@href][contains(text(), ">")]'