新增 [字幕库]、[Javbooks]、[JAV Library] 支持; 补充 [anix.moe] 域名; 优化 [所有 Xiuno 论坛] 通用规则

This commit is contained in:
xiu2
2022-03-14 17:57:42 +08:00
parent c07092a73e
commit 675c2165ce
2 changed files with 68 additions and 10 deletions
+4 -3
View File
@@ -3,7 +3,7 @@
// @name:zh-CN 自动无缝翻页
// @name:zh-TW 自動無縫翻頁
// @name:en AutoPager
// @version 5.3.4
// @version 5.3.5
// @author X.I.U
// @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(以上仅一小部分,更多的写不下了...
// @description:zh-TW ⭐無縫銜接下一頁內容到網頁底部(類似瀑布流)⭐,支持各論壇、社交、遊戲、漫畫、小說、學術、搜索引擎(Google、Bing、Yahoo...) 等網站~
@@ -518,7 +518,7 @@ function: {
xiuno: {
url: ()=> {if (lp == '/' || indexOF(/\/(index|forum)/)) {curSite = DBSite.xiuno;} else if (indexOF('/thread')) {curSite = DBSite.xiuno_post;}},
pager: {
nextL: '//li[@class="page-item"]/a[text()="▶"]',
nextL: '//li[@class="page-item"]/a[text()="▶" or text()="»" or contains(text(),">") or contains(text(),"下一页")]',
pageE: 'ul.threadlist > li',
replaceE: 'ul.pagination'
}
@@ -526,7 +526,7 @@ function: {
xiuno_post: {
thread: true,
pager: {
nextL: '//li[@class="page-item"]/a[text()="▶"]',
nextL: '//li[@class="page-item"]/a[text()="▶" or text()="»" or contains(text(),">") or contains(text(),"下一页")]',
pageE: 'li.post[data-pid]:not(.newpost)',
replaceE: 'ul.pagination'
}
@@ -2523,6 +2523,7 @@ function: {
if (curSite.pager.type === undefined) curSite.pager.type = 1; // 默认翻页模式 1
if (curSite.pager.scrollD === undefined) curSite.pager.scrollD = 1500; // 默认翻页触发线 1500
if (curSite.pager.interval === undefined) curSite.pager.interval = 500; // 默认间隔时间 500ms
//console.log(curSite)
curSite.pageUrl = ''; // 下一页URL
windowScroll(function (direction, e) {
// 下滑 且 未暂停翻页 且 SiteTypeID > 0 时,才准备翻页
+64 -7
View File
@@ -2107,7 +2107,7 @@
}
},
"BT 之家": {
"host": "/btbtt/",
"host": "/\\d?btbtt\\d?/",
"pager": {
"nextL": "//div[@class='page']/a[contains(text(), '▶') or contains(text(), '下一页')]",
"pageE": "#threadlist > *",
@@ -2138,6 +2138,7 @@
"host": [
"www.kisssub.org",
"www.comicat.org",
"www.anix.moe",
"/(share|www)\\.acgnx\\./"
],
"pager": {
@@ -2324,7 +2325,7 @@
"scrollD": 2000
}
},
"A4k字幕网": {
"A4k 字幕网": {
"host": "www.a4k.net",
"url": "return (!fun.indexOF('/subtitle/'))",
"pager": {
@@ -2358,7 +2359,7 @@
"scrollD": 1000
}
},
"射手网": {
"伪射手网": {
"host": "assrt.net",
"url": "return (fun.lp() === '/sub/')",
"pager": {
@@ -2372,7 +2373,7 @@
"scrollD": 1000
}
},
"射手网 - 分类页": {
"伪射手网 - 分类页": {
"host": "assrt.net",
"url": "return (fun.indexOF('/list/'))",
"pager": {
@@ -2382,7 +2383,23 @@
"scrollD": 1000
}
},
"中文字幕网": {
"字幕库 zmk": {
"host": [
"zmk.pw",
"zimuku.org",
"zimuku.pw"
],
"url": "if (!fun.indexOF('/detail/')) {if (fun.lp() == '/') {fun.getCSS('.box > .table').insertAdjacentHTML('beforebegin', '<div class=\"pagination\"></div>')}; return true;}",
"pager": {
"nextL": "a.next",
"pageE": ".item, .box > .table > tbody > tr",
"replaceE": ".pagination"
},
"function": {
"bF": "return fun.src_bF(pageE, [0,'img[data-original]','data-original'])"
}
},
"中文字幕网 zimuzimu": {
"host": "cn.zimuzimu.com",
"url": "return (fun.lp() == '/so_zimu.htm')",
"pager": {
@@ -4657,6 +4674,7 @@
},
"JavDB": {
"host": "/^javdb/",
"url": "return (document.title.indexOf('JavDB') > -1)",
"style": ".grid.columns {height: auto !important;} .grid-item.column{position: static !important; float: left !important; height: 313px !important;}",
"pager": {
"nextL": "a.pagination-next",
@@ -4668,8 +4686,8 @@
}
},
"JavBus": {
"host": "/\\.jav.+|.+jav\\./",
"url": "return (!fun.indexOF('/forum/'))",
"host": "/^www\\.(jav.+|.+jav)\\./",
"url": "return (document.title.indexOf('JavBus') > -1 && !fun.indexOF('/forum/'))",
"style": "#waterfall {height: auto !important;} #waterfall > .item {position: static !important; float: left !important; height: 400px !important;}",
"pager": {
"nextL": "#next",
@@ -4677,6 +4695,45 @@
"replaceE": ".pagination"
}
},
"Javbooks": {
"host": [
"javbooks.com",
"jmvbt.com",
"/^[a-z]{2}\\d{4}\\.com$/"
],
"url": "return (document.title.indexOf('Javbooks') > -1 && !fun.indexOF('/content_'))",
"pager": {
"nextL": "span.pageback > a",
"pageE": ".Po_topic, .Po_u_topic",
"replaceE": ".PageBar"
}
},
"JAV Library": {
"host": [
"www.javlib.com",
"www.javlibrary.com",
"www.o58c.com"
],
"url": "/\\/vl_/",
"pager": {
"nextL": "a.next",
"pageE": ".video",
"replaceE": ".page_selector"
}
},
"JAV Library - 论坛": {
"host": [
"www.javlib.com",
"www.javlibrary.com",
"www.o58c.com"
],
"url": "/\\/public/",
"pager": {
"nextL": "a.next",
"pageE": "table.pubgroup > tbody > tr:not(#header), table.post",
"replaceE": ".page_selector"
}
},
"UraakaList": {
"host": "uraakalist.com",
"url": "/^\\/.+/",