Skip to content

Commit dca79ca

Browse files
committed
补充 [A 岛] 其他域名
1 parent 22bb755 commit dca79ca

1 file changed

Lines changed: 12 additions & 14 deletions

File tree

Autopage.user.js

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 自动无缝翻页
3-
// @version 3.1.0
3+
// @version 3.1.1
44
// @author X.I.U
55
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、B 站(Bilibili)、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、FitGirl、片库、茶杯狐、NO视频、低端影视、奈菲影视、91美剧网、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画DB、动漫之家、古风漫画网、PubMed、wikiHow、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
66
// @match *://*/*
@@ -1121,7 +1121,7 @@
11211121
}
11221122
}, // 飞客网论坛 - 帖子内
11231123
adnmb3: {
1124-
host: 'adnmb3.com',
1124+
host: ['adnmb3.com', 'www.tnmb.org'],
11251125
functionStart: function() {
11261126
if (location.pathname.indexOf('/m/f/') > -1) {
11271127
curSite = DBSite.adnmb3_mf;
@@ -1139,7 +1139,7 @@
11391139
insertP: ['css;.h-threads-list', 3],
11401140
replaceE: '//ul[contains(@class, "pagination")]',
11411141
scriptT: 3,
1142-
scrollD: 1500
1142+
scrollD: 2000
11431143
}
11441144
}, // A 岛
11451145
adnmb3_t: {
@@ -1150,7 +1150,7 @@
11501150
insertP: ['css;.h-threads-list > .h-threads-item', 3],
11511151
replaceE: '//ul[contains(@class, "pagination")]',
11521152
scriptT: 3,
1153-
scrollD: 1500
1153+
scrollD: 2000
11541154
}
11551155
}, // A 岛 - 帖子内
11561156
adnmb3_mf: {
@@ -1161,7 +1161,7 @@
11611161
insertP: ['css;#h-threads-pagination', 1],
11621162
replaceE: 'css;#h-threads-pagination',
11631163
scriptT: 3,
1164-
scrollD: 1500
1164+
scrollD: 2000
11651165
}
11661166
}, // A 岛 - 帖子列表(手机版)
11671167
adnmb3_mt: {
@@ -1172,7 +1172,7 @@
11721172
insertP: ['css;.h-threads-replylist', 3],
11731173
replaceE: 'css;#h-threads-pagination',
11741174
scriptT: 3,
1175-
scrollD: 1500
1175+
scrollD: 2000
11761176
}
11771177
}, // A 岛 - 帖子内(手机版)
11781178
guokr: {
@@ -4503,18 +4503,16 @@
45034503

45044504
// [Anime1] 获取下一页内容(叠加)
45054505
function anime1_nextL() {
4506-
let next = document.getElementById('tablepress-1_next');
4506+
let next = getCSS('#tablepress-1_next');
45074507
if (next && next.className.indexOf('disabled') === -1) {
4508-
let oldList = document.querySelector('tbody.row-hover');
4508+
let oldList = getCSS('tbody.row-hover').innerHTML;
45094509
if (oldList) {
4510-
// 将当前列表存为变量
4511-
oldList = oldList.innerHTML;
45124510
// 点击下一页
45134511
next.click();
45144512
// 当前页码 + 1
45154513
pageNum.now = pageNum._now + 1
45164514
// 插入到列表头部
4517-
document.querySelector('tbody.row-hover').insertAdjacentHTML('afterbegin', oldList);
4515+
getCSS('tbody.row-hover').insertAdjacentHTML('afterbegin', oldList);
45184516
}
45194517
}
45204518
}
@@ -4899,7 +4897,7 @@
48994897
if (next) {
49004898
if (next.href === curSite.pageUrl) return
49014899
curSite.pageUrl = next.href;
4902-
console.log(curSite.pageUrl)
4900+
//console.log(curSite.pageUrl)
49034901
getPageElems(curSite.pageUrl);
49044902
}
49054903
}
@@ -5426,7 +5424,7 @@
54265424
timeout: 10000,
54275425
onload: function (response) {
54285426
try {
5429-
processResult(response);
5427+
processResult(ShowPager.createDocumentByString(response.responseText));
54305428
} catch (e) {
54315429
console.log(e);
54325430
}
@@ -5438,7 +5436,7 @@
54385436
// XHR 后处理结果
54395437
function processResult(response) {
54405438
//console.log('最终 URL:' + response.finalUrl, '返回内容:' + response.responseText)
5441-
var newBody = ShowPager.createDocumentByString(response.responseText);
5439+
var newBody = response;
54425440
let pageElems = getAll(curSite.pager.pageE, newBody, newBody),
54435441
toElement = getAll(curSite.pager.insertP[0])[0];
54445442
//console.log(curSite.pager.pageE, pageElems, curSite.pager.insertP, toElement)

0 commit comments

Comments
 (0)