mirror of
https://github.com/XIU2/UserScript.git
synced 2026-07-24 11:03:23 +00:00
新增 [SubHD] 支持
This commit is contained in:
+77
-3
@@ -1,8 +1,8 @@
|
||||
// ==UserScript==
|
||||
// @name 自动无缝翻页
|
||||
// @version 1.9.9
|
||||
// @version 2.0.0
|
||||
// @author X.I.U
|
||||
// @description 无缝拼接下一页内容,目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、贴吧、豆瓣、微博、NGA(玩家社区)、V2EX、看雪论坛、煎蛋网、超能网、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、小霸王其乐无穷、茶杯狐、NO视频、低端影视、奈菲影视、91美剧网、真不卡影院、片库、音范丝、BT之家、爱恋动漫、Nyaa、SrkBT、RARBG、423Down、不死鸟、小众软件、极简插件、果核剥壳、六音软件、微当下载、th-sjy 汉化、异次元软件、老殁殁漂遥、异星软件空间、动漫狂、漫画猫、漫画DB、HiComic(嗨漫画)、动漫之家、古风漫画网、砂之船动漫家、PubMed、wikiHow、GreasyFork、CS.RIN.RU、FitGirl(更多的写不下了...
|
||||
// @description 无缝拼接下一页内容,目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、贴吧、豆瓣、微博、NGA(玩家社区)、V2EX、看雪论坛、煎蛋网、超能网、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、小霸王其乐无穷、茶杯狐、NO视频、低端影视、奈菲影视、91美剧网、真不卡影院、片库、音范丝、BT之家、爱恋动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、小众软件、极简插件、果核剥壳、六音软件、微当下载、th-sjy 汉化、异次元软件、老殁殁漂遥、异星软件空间、动漫狂、漫画猫、漫画DB、HiComic(嗨漫画)、动漫之家、古风漫画网、砂之船动漫家、PubMed、wikiHow、GreasyFork、CS.RIN.RU、FitGirl(更多的写不下了...
|
||||
// @match *://*/*
|
||||
// @connect www.gamersky.com
|
||||
// @icon https://i.loli.net/2021/03/07/rdijeYm83pznxWq.png
|
||||
@@ -1069,9 +1069,37 @@
|
||||
pageElement: 'css;table.lista2t tr.lista2',
|
||||
insertPosition: ['css;table.lista2t > tbody', 3],
|
||||
replaceE: 'css;#pager_links',
|
||||
scrollDelta: 900
|
||||
scrollDelta: 1000
|
||||
}
|
||||
}, // RARBG
|
||||
subhd: {
|
||||
SiteTypeID: 0,
|
||||
host: 'subhd.tv',
|
||||
functionStart: function() {if (location.pathname === '/forum/forum') {
|
||||
curSite = DBSite.subhd_forum;
|
||||
} else if (location.pathname != '/' && location.pathname != '/zu' && location.pathname.indexOf('/a/') === -1 && location.pathname.indexOf('/d/') === -1 && location.pathname.indexOf('/forum/') === -1) {
|
||||
curSite = DBSite.subhd;
|
||||
}},
|
||||
pager: {
|
||||
type: 1,
|
||||
nextLink: '//a[@class="page-link"][contains(text(), "下一页")]',
|
||||
pageElement: 'css;.bg-white.shadow-sm.rounded-3',
|
||||
insertPosition: ['css;nav.clearfix', 1],
|
||||
replaceE: 'css;nav.clearfix',
|
||||
scrollDelta: 1000
|
||||
}
|
||||
}, // SubHD
|
||||
subhd_forum: {
|
||||
SiteTypeID: 0,
|
||||
pager: {
|
||||
type: 1,
|
||||
nextLink: '//a[@class="page-link"][contains(text(), "下一页")]',
|
||||
pageElement: 'css;.bg-white.shadow-sm.rounded-3 > div',
|
||||
insertPosition: ['css;.bg-white.shadow-sm.rounded-3', 3],
|
||||
replaceE: 'css;nav.clearfix',
|
||||
scrollDelta: 800
|
||||
}
|
||||
}, // SubHD - forum
|
||||
baoshuu: {
|
||||
SiteTypeID: 0,
|
||||
host: 'www.baoshuu.com',
|
||||
@@ -1526,6 +1554,22 @@
|
||||
scrollDelta: 3000
|
||||
}
|
||||
}, // 漫画之家 - 日漫
|
||||
copymanga: {
|
||||
SiteTypeID: 0,
|
||||
host: 'www.copymanga.com',
|
||||
functionStart: function() {if (location.pathname.indexOf('/chapter/') > -1) {
|
||||
curSite = DBSite.copymanga; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.footer {display: none !important;}';
|
||||
}},
|
||||
pager: {
|
||||
type: 4,
|
||||
nextLink: copymanga_functionNext,
|
||||
insertPosition: ['css;ul.comicContent-image-list', 3],
|
||||
insertElement: copymanga_insertElement,
|
||||
replaceE: 'css;.disposableData, .disposablePass, .disposableUrlPrefix, .disposableUrlSuffix, .footer, h4.header, title',
|
||||
intervals: 2000,
|
||||
scrollDelta: 3000
|
||||
}
|
||||
}, // 拷贝漫画
|
||||
gufengmh8: {
|
||||
SiteTypeID: 0,
|
||||
host: 'www.gufengmh8.com',
|
||||
@@ -2350,6 +2394,36 @@
|
||||
}
|
||||
|
||||
|
||||
// copymanga 获取下一页地址
|
||||
function copymanga_functionNext() {
|
||||
let next;
|
||||
next = document.querySelector('.comicContent-next > a[href]')
|
||||
if (next) {
|
||||
curSite.pageUrl = next.href;
|
||||
getPageElems(curSite.pageUrl);
|
||||
}
|
||||
}
|
||||
// copymanga 插入数据
|
||||
function copymanga_insertElement(pageElems, type) {
|
||||
if (!pageElems) return
|
||||
// 添加历史记录
|
||||
window.history.pushState(`{title: ${document.title}, url: ${location.href}}`, pageElems.querySelector('title').textContent, curSite.pageUrl);
|
||||
|
||||
// 替换元素
|
||||
let oriE = document.querySelectorAll(curSite.pager.replaceE.replace('css;', '')),
|
||||
repE = getAllElements(curSite.pager.replaceE, pageElems, pageElems);
|
||||
if (oriE.length === repE.length) {
|
||||
for (let i = 0; i < oriE.length; i++) {
|
||||
oriE[i].outerHTML = repE[i].outerHTML;
|
||||
}
|
||||
// 插入并运行 <script>
|
||||
document.body.appendChild(document.createElement('script')).src = document.querySelector('body > script[async][src*="comic_content_pass"]').src;
|
||||
// 当前页码 + 1
|
||||
pageNum.now = pageNum._now + 1
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// gufengmh8 获取下一页地址
|
||||
function gufengmh8_functionNext() {
|
||||
let pageElems = document.querySelector(curSite.pager.pageElement.replace('css;', '')); // 寻找数据所在元素
|
||||
|
||||
Reference in New Issue
Block a user