Skip to content

Commit 8e68c17

Browse files
committed
新增 [LRepacks] 支持
1 parent b2d8750 commit 8e68c17

1 file changed

Lines changed: 36 additions & 8 deletions

File tree

Autopage.user.js

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 自动无缝翻页
3-
// @version 1.9.8
3+
// @version 1.9.9
44
// @author X.I.U
55
// @description 无缝拼接下一页内容,目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、贴吧、豆瓣、微博、NGA(玩家社区)、V2EX、看雪论坛、煎蛋网、超能网、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、小霸王其乐无穷、茶杯狐、NO视频、低端影视、奈菲影视、91美剧网、真不卡影院、片库、音范丝、BT之家、爱恋动漫、Nyaa、SrkBT、RARBG、423Down、不死鸟、小众软件、极简插件、果核剥壳、六音软件、微当下载、th-sjy 汉化、异次元软件、老殁殁漂遥、异星软件空间、动漫狂、漫画猫、漫画DB、HiComic(嗨漫画)、动漫之家、古风漫画网、砂之船动漫家、PubMed、wikiHow、GreasyFork、CS.RIN.RU、FitGirl(更多的写不下了...
66
// @match *://*/*
@@ -1382,6 +1382,22 @@
13821382
scrollDelta: 1500
13831383
}
13841384
},
1385+
lrepacks: {
1386+
SiteTypeID: 0,
1387+
host: 'lrepacks.net',
1388+
functionStart: function() {if (location.pathname.indexOf('.html') === -1) curSite = DBSite.lrepacks;},
1389+
pager: {
1390+
type: 1,
1391+
nextLink: 'css;.page_next > a',
1392+
pageElement: 'css;#main .post-list article',
1393+
insertPosition: ['css;.page_nav', 1],
1394+
replaceE: 'css;.page_nav',
1395+
scrollDelta: 1500
1396+
},
1397+
function: {
1398+
before: lrepacks_functionBefore
1399+
}
1400+
},
13851401
thewindowsclub: {
13861402
SiteTypeID: 0,
13871403
host: 'www.thewindowsclub.com',
@@ -1980,6 +1996,18 @@
19801996
}
19811997

19821998

1999+
// cs_rin_ru 各版块帖子列表的插入前函数(过滤置顶帖子)
2000+
function cs_rin_ru_functionBefore(pageElems) {
2001+
for (let i = 0; i < pageElems.length; i++) {
2002+
if (pageElems[i].textContent.replace(/\n| /g,'') === 'Topics') {
2003+
pageElems.splice(0,i+1);
2004+
break;
2005+
}
2006+
}
2007+
return pageElems
2008+
}
2009+
2010+
19832011
// 片库 的插入前函数(加载图片)
19842012
function mypianku_functionBefore(pageElems) {
19852013
pageElems.forEach(function (one) {
@@ -2031,14 +2059,14 @@
20312059
}
20322060

20332061

2034-
// cs_rin_ru 各版块帖子列表的插入前函数(过滤置顶帖子
2035-
function cs_rin_ru_functionBefore(pageElems) {
2036-
for (let i = 0; i < pageElems.length; i++) {
2037-
if (pageElems[i].textContent.replace(/\n| /g,'') === 'Topics') {
2038-
pageElems.splice(0,i+1);
2039-
break;
2062+
// LRepacks 的插入前函数(调整 class
2063+
function lrepacks_functionBefore(pageElems) {
2064+
pageElems.forEach(function (one) {
2065+
let now = one.querySelector('.slideUp, .elementFade')
2066+
if (now) {
2067+
now.className = now.className.replace('slideUp','slideUpRun').replace('elementFade','elementFadeRun');
20402068
}
2041-
}
2069+
});
20422070
return pageElems
20432071
}
20442072

0 commit comments

Comments
 (0)