Skip to content

Commit 5c56cc0

Browse files
committed
优化 [部分 Typecho 网站] 通用规则
1 parent 135758d commit 5c56cc0

2 files changed

Lines changed: 23 additions & 29 deletions

File tree

Autopage.user.js

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @name:zh-CN 自动无缝翻页
44
// @name:zh-TW 自動無縫翻頁
55
// @name:en AutoPager
6-
// @version 6.0.14
6+
// @version 6.0.15
77
// @author X.I.U
88
// @description ⭐无缝加载 下一页内容 至网页底部(类似瀑布流)⭐,目前支持:【所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、NexusPHP...」论坛】【百度、谷歌(Google)、必应(Bing)、搜狗、微信、360、Yahoo、Yandex 等搜索引擎...】、贴吧、豆瓣、知乎、B 站(bilibili)、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(以上仅一小部分,更多的写不下了...
99
// @description:zh-TW ⭐無縫加載 下一頁內容 至網頁底部(類似瀑布流)⭐,支持各論壇、社交、遊戲、漫畫、小說、學術、搜索引擎(Google、Bing、Yahoo...) 等網站~
@@ -326,10 +326,10 @@
326326
}
327327
if (DBSite.wp_article.pager.pageE != undefined) {console.info(`[自动无缝翻页] - 部分使用 WordPress 的网站`); return 10;}
328328
}
329-
} else if (getCSS('meta[name="generator" i][content*="Typecho" i]')) {
330-
if (getCSS('li.next > a') && getCSS('.blog-post, .post-list') && getCSS('.page-navigator')) {
329+
} else if (getCSS('meta[name="template" i][content="handsome" i]')) {
331330
console.info(`[自动无缝翻页] - 部分使用 Typecho 的网站 (handsome)`); return 12;
332-
}
331+
} else if (getCSS('meta[name="template" i][content="Mirages" i]')) {
332+
console.info(`[自动无缝翻页] - 部分使用 Typecho 的网站 (Mirages)`); return 13;
333333

334334
} else if (getCSS('.stui-page, .stui-page__item') && getCSS('li.active.hidden-xs+li.hidden-xs>a') && getCSS('.stui-vodlist')) {
335335
console.info(`[自动无缝翻页] - 部分影视网站`); return 300;
@@ -376,6 +376,8 @@
376376
curSite = DBSite.wp_article_post; break;
377377
case 12: // < 部分使用 Typecho 的网站 (handsome) >
378378
curSite = DBSite.typecho_handsome; break;
379+
case 13: // < 部分使用 Typecho 的网站 (Mirages) >
380+
curSite = DBSite.typecho_mirages; break;
379381
case 200: // < 所有使用 笔趣阁 1 模板的小说网站 >
380382
DBSite.biquge1.url(); break;
381383
case 201: // < 所有使用 笔趣阁 2 - 手机版 模板的小说网站 >
@@ -474,8 +476,7 @@ function: {
474476
pager: {
475477
type: 2,
476478
isHidden: true,
477-
interval: 1000,
478-
scrollD: 2000
479+
interval: 1000
479480
}
480481
}, // 部分自带 自动无缝翻页 的网站
481482
wp_article: {
@@ -513,10 +514,18 @@ function: {
513514
pager: {
514515
nextL: 'li.next > a',
515516
pageE: '.blog-post, .post-list',
516-
replaceE: '.page-navigator',
517-
scrollD: 3000
517+
replaceE: '.page-navigator'
518518
}
519519
}, // 部分使用 Typecho 的网站 (handsome)
520+
typecho_mirages: {
521+
blank: 3,
522+
pager: {
523+
nextL: 'li.next > a',
524+
pageE: '#index>article, #archive>article',
525+
scriptT: 3,
526+
replaceE: '.page-navigator'
527+
}
528+
}, // 部分使用 Typecho 的网站 (Mirages)
520529
biquge1: {
521530
url: ()=> {curSite = DBSite.biquge1;xs_bF(getAllCSS('.content > #content'),[/<br>.{0,10}.+$/, '']);},
522531
style: 'img, .posterror, a[href*="posterror()"], [style*="background"][style*="url("]:not(html):not(body), #content > *:not(br):not(p) {display: none !important;}',
@@ -563,8 +572,7 @@ function: {
563572
nextL: '#pb_next, .url_next',
564573
pageE: '#txt, .txt',
565574
insertP: ['#txt, .txt', 6],
566-
replaceE: '.chapter-control, .chapter-page-btn',
567-
scrollD: 2000
575+
replaceE: '.chapter-control, .chapter-page-btn'
568576
}
569577
}, // 笔趣阁 3 - 手机版 模板的小说网站
570578
biquge3: {
@@ -704,25 +712,22 @@ function: {
704712
pager: {
705713
nextL: '.pagination li.next a[rel="next"], .topic-actions .pagination strong~a',
706714
pageE: '.forumbg:not(.announcement) ul.topiclist.topics > li',
707-
replaceE: '.action-bar .pagination, .topic-actions .pagination',
708-
scrollD: 2000
715+
replaceE: '.action-bar .pagination, .topic-actions .pagination'
709716
}
710717
}, // phpBB 论坛 - 帖子列表
711718
phpbb_post: {
712719
thread: true,
713720
pager: {
714721
nextL: '.pagination li.next a[rel="next"], .topic-actions .pagination strong~a',
715722
pageE: 'div.post[id], div.post[id]+hr',
716-
replaceE: '.action-bar .pagination, .topic-actions .pagination',
717-
scrollD: 2000
723+
replaceE: '.action-bar .pagination, .topic-actions .pagination'
718724
}
719725
}, // phpBB 论坛 - 帖子内
720726
phpbb_search: {
721727
pager: {
722728
nextL: '.pagination li.next a[rel="next"], .topic-actions .pagination strong~a',
723729
pageE: 'div.search.post',
724-
replaceE: '.action-bar .pagination, .pagination',
725-
scrollD: 2000
730+
replaceE: '.action-bar .pagination, .pagination'
726731
}
727732
}, // phpBB 论坛 - 搜索页
728733
xenforo: {
@@ -963,8 +968,7 @@ function: {
963968
insertP: ['#cp_img', 3],
964969
insertE: mangabz_insertE,
965970
replaceE: 'p.top-title, body > .container > div:not([id])',
966-
interval: 500,
967-
scrollD: 2000
971+
interval: 500
968972
}
969973
}, // Mangabz 漫画
970974
mangabz_list: {
@@ -993,8 +997,7 @@ function: {
993997
insertP: ['#barChapter,#cp_img', 3],
994998
insertE: dm5_insertE,
995999
replaceE: '.view-paging > .container, .rightToolBar',
996-
interval: 500,
997-
scrollD: 2000
1000+
interval: 500
9981001
}
9991002
}, // 动漫屋
10001003
xmanhua: {

other/Autopage/rules.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3766,15 +3766,6 @@
37663766
"bF": "return fun.src_bF(pageE)"
37673767
}
37683768
},
3769-
"不死鸟": {
3770-
"host": ["iui.su","iao.su","hao.su","niao.su"],
3771-
"pager": {
3772-
"nextL": "li.next>a",
3773-
"pageE": "#index>article, #archive>article",
3774-
"replaceE": "ol.page-navigator",
3775-
"scriptT": 3
3776-
}
3777-
},
37783769
"分享者 - 搜索页": {
37793770
"host": "www.sharerw.com",
37803771
"url": "return (fun.lp() == '/search.php')",

0 commit comments

Comments
 (0)