mirror of
https://github.com/XIU2/UserScript.git
synced 2026-07-09 10:55:22 +00:00
新增 [爱漫画] 支持
This commit is contained in:
+15
-12
@@ -3,7 +3,7 @@
|
||||
// @name:zh-CN 自动无缝翻页
|
||||
// @name:zh-TW 自動無縫翻頁
|
||||
// @name:en AutoPager
|
||||
// @version 5.9.8
|
||||
// @version 5.9.9
|
||||
// @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...) 等網站~
|
||||
@@ -138,10 +138,10 @@
|
||||
} else { // 不在禁用列表中
|
||||
webType = doesItSupport(); // 判断网站类型(即是否支持),顺便直接赋值
|
||||
if (webType === 0) {
|
||||
menuId[0] = GM_registerMenuCommand('❌ 当前网页暂不支持 [欢迎点击申请]', function () {window.GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true});window.GM_openInTab('https://greasyfork.org/zh-CN/scripts/419215/feedback', {active: true,insert: true,setParent: true});});
|
||||
menuId[0] = GM_registerMenuCommand('❌ 当前网页暂不支持 [点击申请]', function () {window.GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true});window.GM_openInTab('https://greasyfork.org/zh-CN/scripts/419215/feedback', {active: true,insert: true,setParent: true});});
|
||||
menuId[1] = GM_registerMenuCommand('🔄 更新外置翻页规则 (每天自动)', function(){getRulesUrl(true)});
|
||||
menuId[2] = GM_registerMenuCommand('#️⃣ 自定义翻页规则', function(){customRules()});
|
||||
console.info('[自动无缝翻页] - 暂不支持当前网页 [ ' + location.href + ' ],欢迎申请支持: https://github.com/XIU2/UserScript / https://greasyfork.org/zh-CN/scripts/419215/feedback');
|
||||
console.info('[自动无缝翻页] - 暂不支持当前网页 [ ' + location.href + ' ],申请支持: https://github.com/XIU2/UserScript / https://greasyfork.org/zh-CN/scripts/419215/feedback');
|
||||
return
|
||||
} else if (webType === -1) {
|
||||
return
|
||||
@@ -159,7 +159,7 @@
|
||||
menuId[i] = GM_registerMenuCommand(`${menuAll[i][3]?'✅':'❌'} ${menuAll[i][1]}`, function(){menu_switch(menuAll[i][3], menuAll[i][0], menuAll[i][2])});
|
||||
}
|
||||
}
|
||||
menuId[menuId.length] = GM_registerMenuCommand('💬 反馈失效 / 欢迎申请支持', function () {window.GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true});window.GM_openInTab('https://greasyfork.org/zh-CN/scripts/419215/feedback', {active: true,insert: true,setParent: true});});
|
||||
menuId[menuId.length] = GM_registerMenuCommand('💬 反馈失效 / 申请支持', function () {window.GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true});window.GM_openInTab('https://greasyfork.org/zh-CN/scripts/419215/feedback', {active: true,insert: true,setParent: true});});
|
||||
}
|
||||
|
||||
|
||||
@@ -494,7 +494,7 @@ function: {
|
||||
function: {
|
||||
bF: src_bF
|
||||
}
|
||||
}, // 部分使用 WordPress 的网站 - 文章内
|
||||
}, // 部分使用 WordPress 的网站 - 文章内
|
||||
typecho_handsome: {
|
||||
blank: 3,
|
||||
pager: {
|
||||
@@ -898,11 +898,13 @@ function: {
|
||||
}
|
||||
}, // HiComic (嗨漫画)
|
||||
alimanhua: {
|
||||
host: 'www.alimanhua.com',
|
||||
host: ['www.alimanhua.com','www.iimanhua.cc'],
|
||||
url: ()=> {
|
||||
if (indexOF(/\/\d+\.html$/)) {
|
||||
curSite = DBSite.alimanhua;
|
||||
} else if (indexOF(/^\/manhua\/\d+\/$/)) {
|
||||
pausePage = false;
|
||||
setTimeout(()=>{pausePage = true;}, 5000)
|
||||
} else if (indexOF(/^\/(manhua|comic)\/\d+\/$/)) {
|
||||
setTimeout(()=>{getCSS('#openBook').click()}, 500)
|
||||
} else if (lp != '/'){
|
||||
curSite = DBSite.alimanhua_list;
|
||||
@@ -918,7 +920,7 @@ function: {
|
||||
interval: 3000,
|
||||
scrollD: 3000
|
||||
}
|
||||
}, // 阿狸漫画
|
||||
}, // 阿狸漫画 + 爱漫画
|
||||
alimanhua_list: {
|
||||
blank: 3,
|
||||
pager: {
|
||||
@@ -930,7 +932,7 @@ function: {
|
||||
function: {
|
||||
bF: "return fun.src_bF(pageE, [0, 'img[_src]', '_src'])"
|
||||
}
|
||||
}, // 阿狸漫画 - 分类/搜索页
|
||||
}, // 阿狸漫画 - 分类/搜索页
|
||||
mangabz: {
|
||||
host: ['mangabz.com', 'www.mangabz.com'],
|
||||
url: ()=> {if (indexOF(/\/m\d+/)) {
|
||||
@@ -1094,7 +1096,7 @@ function: {
|
||||
pausePageEvent(); // 左键双击网页空白处暂停翻页
|
||||
pageLoading(); // 自动无缝翻页
|
||||
|
||||
if (n) GM_notification({text: '✅ 已更新外置翻页规则!\n如果依然无法翻页,说明还不支持当前网页,欢迎点击此处提交申请~', timeout: 5000, onclick: function(){window.GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true});window.GM_openInTab('https://greasyfork.org/zh-CN/scripts/419215/feedback', {active: true,insert: true,setParent: true});}});
|
||||
if (n) GM_notification({text: '✅ 已更新外置翻页规则!\n如果依然无法翻页,说明还不支持当前网页,点击此处提交申请~', timeout: 5000, onclick: function(){window.GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true});window.GM_openInTab('https://greasyfork.org/zh-CN/scripts/419215/feedback', {active: true,insert: true,setParent: true});}});
|
||||
} else {
|
||||
console.log('URL:' + url);
|
||||
GM_notification({text: '❌ 为空!更新失败,请再试几次...\n如果依然更新失败,请联系作者解决...', timeout: 5000});
|
||||
@@ -1565,8 +1567,9 @@ function: {
|
||||
insScript('head>script:not([src])', pageE);
|
||||
|
||||
// 插入图片
|
||||
let _img = '';
|
||||
for (let i=1;i<photosr.length;i++){_img += `<img src="http://res.img.tueqi.com/${photosr[i]}">`;}
|
||||
let _img = '', _host='http://res.img.tueqi.com/';
|
||||
if (location.hostname == '') _host = 'https://res.img.96youhuiquan.com/'
|
||||
for (let i=1;i<photosr.length;i++){_img += `<img src="${_host}${photosr[i]}">`;}
|
||||
getCSS(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img);
|
||||
addHistory(pageE);
|
||||
pageNum.now = pageNum._now + 1
|
||||
|
||||
Reference in New Issue
Block a user