Skip to content

Commit 5d5d7e2

Browse files
committed
更新 [动漫屋] 规则并移动至外置翻页规则中
1 parent 37f1b5d commit 5d5d7e2

2 files changed

Lines changed: 26 additions & 60 deletions

File tree

Autopage.user.js

Lines changed: 1 addition & 60 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.4.27
6+
// @version 6.4.28
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...) 等網站~
@@ -1048,26 +1048,6 @@ function: {
10481048
scrollD: 800
10491049
}
10501050
}, // Mangabz 漫画 - 分类/搜索页
1051-
dm5: {
1052-
host: 'www.dm5.com',
1053-
url: ()=> {if (indexOF(/\/m\d+/)) {
1054-
setTimeout(mangabz_init, 1500);
1055-
curSite = DBSite.dm5;
1056-
} else if (indexOF('/manga-list') || lp == '/search' || getCSS('.box-body > ul.mh-list > li')) {
1057-
curSite = DBSite.mangabz_list;
1058-
} else if (getCSS('.detail-more')) {
1059-
getCSS('.detail-more').click();
1060-
}},
1061-
style: '.view-paging > .container, .view-comment {display: none !important;} .rightToolBar {opacity: 0.3 !important;} #cp_img > img, #barChapter > img{display: block !important;margin: 0 auto !important; max-width: 99% !important; width: auto !important; height: auto !important;} body {overflow: auto !important;}',
1062-
pager: {
1063-
type: 4,
1064-
nextL: dm5_nextL,
1065-
insertP: ['#barChapter,#cp_img', 3],
1066-
insertE: dm5_insertE,
1067-
replaceE: '.view-paging > .container, .rightToolBar',
1068-
interval: 500
1069-
}
1070-
}, // 动漫屋
10711051
xmanhua: {
10721052
host: ['xmanhua.com', 'www.xmanhua.com'],
10731053
url: ()=> {if (indexOF(/\/m\d+/)) {
@@ -1721,45 +1701,6 @@ function: {
17211701
}
17221702

17231703

1724-
// [动漫屋] 获取下一页地址
1725-
function dm5_nextL() {
1726-
var url = '';
1727-
if (DM5_PAGE === DM5_IMAGE_COUNT) { // 下一话
1728-
if (getNextE('//div[@class="view-paging"]//a[text()="下一章"]')) getPageE_(curSite.pageUrl); // 访问下一话 URL 获取
1729-
} else { // 下一页
1730-
if (!mkey) var mkey = '';
1731-
url = location.origin + location.pathname + 'chapterfun.ashx' + `?cid=${DM5_CID}&page=${DM5_PAGE + 1}&key=${(mkey)}&language=1&gtk=6&_cid=${DM5_CID}&_mid=${DM5_MID}&_dt=${DM5_VIEWSIGN_DT}&_sign=${DM5_VIEWSIGN}`
1732-
if (url === curSite.pageUrl) return
1733-
curSite.pageUrl = url
1734-
//console.log(curSite.pageUrl)
1735-
getPageE_(curSite.pageUrl, 'text', 'GET', '', 'Next'); // 访问下一页 URL 获取
1736-
}
1737-
}
1738-
// [动漫屋] 插入数据
1739-
function dm5_insertE(pageE, type) {
1740-
if (pageE) {
1741-
if (type === 'Next') { // 下一页
1742-
let imgArr = eval(pageE),
1743-
_img = '';
1744-
for (let now of imgArr) {_img += `<img src="${now}">`;}
1745-
if (_img) {
1746-
getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
1747-
DM5_PAGE += imgArr.length;
1748-
addHistory(pageE, document.title, location.origin + DM5_CURL.substring(0, DM5_CURL.length - 1) + '-p' + DM5_PAGE + '/');
1749-
}
1750-
} else { // 下一话
1751-
// 插入 <script> 标签
1752-
insScript('html:not([dir])>head>script:not([src])', pageE);
1753-
addHistory(pageE);
1754-
pageNum.now = pageNum._now + 1
1755-
replaceElems(pageE)
1756-
DM5_PAGE = 0;
1757-
dm5_nextL();
1758-
}
1759-
}
1760-
}
1761-
1762-
17631704
// [Xmanhua 漫画] 获取下一页地址
17641705
function xmanhua_nextL() {
17651706
var url = '';

other/Autopage/rules.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2968,6 +2968,31 @@
29682968
"bF": "return fun.src_bF(pageE, [0,'img[data-srcset]','data-srcset'])"
29692969
}
29702970
},
2971+
"动漫屋": {
2972+
"host": "www.dm5.com",
2973+
"url": "/^\\/m\\d+\\//",
2974+
"history": true,
2975+
"style": ".view-comment {display: none !important;} .rightToolBar {opacity: 0.3 !important;} #barChapter>img {display: block !important;}",
2976+
"pager": {
2977+
"nextL": "//div[@class='view-paging']//a[text()='下一章']",
2978+
"pageE": "#barChapter>img",
2979+
"replaceE": ".view-paging, .rightToolBar",
2980+
"interval": 4000
2981+
},
2982+
"function": {
2983+
"bF": "return fun.src_bF(pageE)"
2984+
}
2985+
},
2986+
"动漫屋 - 分类页": {
2987+
"host": "www.dm5.com",
2988+
"url": "if(fun.indexOF('/manga-list') || fun.lp() == '/search' || fun.getCSS('.box-body>ul.mh-list>li')){return true}else if(fun.getCSS('.detail-more')){fun.getCSS('.detail-more').click()}",
2989+
"blank": 3,
2990+
"pager": {
2991+
"nextL": "//div[contains(@class,'page-pagination')]//a[contains(text(), '>')]",
2992+
"pageE": "ul.mh-list>li",
2993+
"replaceE": ".page-pagination"
2994+
}
2995+
},
29712996
"动漫啦 - 分类页": {
29722997
"host": "www.dongman.la",
29732998
"url": "if (fun.indexOF('/detail/')) {setTimeout(()=>{fun.getCSS('a#zhankai').click();},500)} else if (fun.indexOF('/manhua/')) {return true}",

0 commit comments

Comments
 (0)