mirror of
https://github.com/XIU2/UserScript.git
synced 2026-07-09 10:55:22 +00:00
更新 [动漫屋] 规则并移动至外置翻页规则中
This commit is contained in:
+1
-60
@@ -3,7 +3,7 @@
|
||||
// @name:zh-CN 自动无缝翻页
|
||||
// @name:zh-TW 自動無縫翻頁
|
||||
// @name:en AutoPager
|
||||
// @version 6.4.27
|
||||
// @version 6.4.28
|
||||
// @author X.I.U
|
||||
// @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(以上仅一小部分,更多的写不下了...
|
||||
// @description:zh-TW ⭐無縫加載 下一頁內容 至網頁底部(類似瀑布流)⭐,支持各論壇、社交、遊戲、漫畫、小說、學術、搜索引擎(Google、Bing、Yahoo...) 等網站~
|
||||
@@ -1048,26 +1048,6 @@ function: {
|
||||
scrollD: 800
|
||||
}
|
||||
}, // Mangabz 漫画 - 分类/搜索页
|
||||
dm5: {
|
||||
host: 'www.dm5.com',
|
||||
url: ()=> {if (indexOF(/\/m\d+/)) {
|
||||
setTimeout(mangabz_init, 1500);
|
||||
curSite = DBSite.dm5;
|
||||
} else if (indexOF('/manga-list') || lp == '/search' || getCSS('.box-body > ul.mh-list > li')) {
|
||||
curSite = DBSite.mangabz_list;
|
||||
} else if (getCSS('.detail-more')) {
|
||||
getCSS('.detail-more').click();
|
||||
}},
|
||||
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;}',
|
||||
pager: {
|
||||
type: 4,
|
||||
nextL: dm5_nextL,
|
||||
insertP: ['#barChapter,#cp_img', 3],
|
||||
insertE: dm5_insertE,
|
||||
replaceE: '.view-paging > .container, .rightToolBar',
|
||||
interval: 500
|
||||
}
|
||||
}, // 动漫屋
|
||||
xmanhua: {
|
||||
host: ['xmanhua.com', 'www.xmanhua.com'],
|
||||
url: ()=> {if (indexOF(/\/m\d+/)) {
|
||||
@@ -1721,45 +1701,6 @@ function: {
|
||||
}
|
||||
|
||||
|
||||
// [动漫屋] 获取下一页地址
|
||||
function dm5_nextL() {
|
||||
var url = '';
|
||||
if (DM5_PAGE === DM5_IMAGE_COUNT) { // 下一话
|
||||
if (getNextE('//div[@class="view-paging"]//a[text()="下一章"]')) getPageE_(curSite.pageUrl); // 访问下一话 URL 获取
|
||||
} else { // 下一页
|
||||
if (!mkey) var mkey = '';
|
||||
url = location.origin + location.pathname + 'chapterfun.ashx' + `?cid=${DM5_CID}&page=${DM5_PAGE + 1}&key=${(mkey)}&language=1>k=6&_cid=${DM5_CID}&_mid=${DM5_MID}&_dt=${DM5_VIEWSIGN_DT}&_sign=${DM5_VIEWSIGN}`
|
||||
if (url === curSite.pageUrl) return
|
||||
curSite.pageUrl = url
|
||||
//console.log(curSite.pageUrl)
|
||||
getPageE_(curSite.pageUrl, 'text', 'GET', '', 'Next'); // 访问下一页 URL 获取
|
||||
}
|
||||
}
|
||||
// [动漫屋] 插入数据
|
||||
function dm5_insertE(pageE, type) {
|
||||
if (pageE) {
|
||||
if (type === 'Next') { // 下一页
|
||||
let imgArr = eval(pageE),
|
||||
_img = '';
|
||||
for (let now of imgArr) {_img += `<img src="${now}">`;}
|
||||
if (_img) {
|
||||
getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
|
||||
DM5_PAGE += imgArr.length;
|
||||
addHistory(pageE, document.title, location.origin + DM5_CURL.substring(0, DM5_CURL.length - 1) + '-p' + DM5_PAGE + '/');
|
||||
}
|
||||
} else { // 下一话
|
||||
// 插入 <script> 标签
|
||||
insScript('html:not([dir])>head>script:not([src])', pageE);
|
||||
addHistory(pageE);
|
||||
pageNum.now = pageNum._now + 1
|
||||
replaceElems(pageE)
|
||||
DM5_PAGE = 0;
|
||||
dm5_nextL();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// [Xmanhua 漫画] 获取下一页地址
|
||||
function xmanhua_nextL() {
|
||||
var url = '';
|
||||
|
||||
@@ -2968,6 +2968,31 @@
|
||||
"bF": "return fun.src_bF(pageE, [0,'img[data-srcset]','data-srcset'])"
|
||||
}
|
||||
},
|
||||
"动漫屋": {
|
||||
"host": "www.dm5.com",
|
||||
"url": "/^\\/m\\d+\\//",
|
||||
"history": true,
|
||||
"style": ".view-comment {display: none !important;} .rightToolBar {opacity: 0.3 !important;} #barChapter>img {display: block !important;}",
|
||||
"pager": {
|
||||
"nextL": "//div[@class='view-paging']//a[text()='下一章']",
|
||||
"pageE": "#barChapter>img",
|
||||
"replaceE": ".view-paging, .rightToolBar",
|
||||
"interval": 4000
|
||||
},
|
||||
"function": {
|
||||
"bF": "return fun.src_bF(pageE)"
|
||||
}
|
||||
},
|
||||
"动漫屋 - 分类页": {
|
||||
"host": "www.dm5.com",
|
||||
"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()}",
|
||||
"blank": 3,
|
||||
"pager": {
|
||||
"nextL": "//div[contains(@class,'page-pagination')]//a[contains(text(), '>')]",
|
||||
"pageE": "ul.mh-list>li",
|
||||
"replaceE": ".page-pagination"
|
||||
}
|
||||
},
|
||||
"动漫啦 - 分类页": {
|
||||
"host": "www.dongman.la",
|
||||
"url": "if (fun.indexOF('/detail/')) {setTimeout(()=>{fun.getCSS('a#zhankai').click();},500)} else if (fun.indexOF('/manhua/')) {return true}",
|
||||
|
||||
Reference in New Issue
Block a user