Skip to content

Commit 2b9d6a8

Browse files
committed
更新 [砂之船动漫家] 规则; 新增 [砂之船动漫家 - 分类页/搜索页] 支持
1 parent 5d59bf7 commit 2b9d6a8

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

Autopage.user.js

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2609,9 +2609,10 @@
26092609
pager: {
26102610
type: 1,
26112611
nextL: '//div[@class="fanye"][1]/a[@href][text()="下一页" or text()="下一话"]',
2612-
pageE: 'css;.comicpage > div,title',
2612+
pageE: 'css;.comicpage > div',
26132613
insertP: ['css;.comicpage', 3],
26142614
replaceE: 'css;.fanye,h1.title',
2615+
history: true,
26152616
scrollD: 2000
26162617
},
26172618
function: {
@@ -5395,17 +5396,10 @@
53955396
// [砂之船动漫家] 的插入前函数(加载图片)
53965397
function szcdmj_bF(pageElems) {
53975398
pageElems.forEach(function (one) {
5398-
if (one.tagName === 'TITLE') {
5399-
let title = one.textContent;
5400-
window.history.pushState(`{title: ${document.title}, url: ${location.href}}`, title, curSite.pageUrl); // 添加历史记录
5401-
window.document.title = title; // 修改当前网页标题为下一页的标题
5402-
one.style.display = 'none';
5403-
} else {
5404-
let now = one.querySelector('img[data-original]')
5405-
if (now) {
5406-
now.src = now.dataset.original;
5407-
now.style.display = 'inline';
5408-
}
5399+
let now = one.querySelector('img[data-original]')
5400+
if (now) {
5401+
now.src = now.dataset.original;
5402+
now.style.display = 'inline';
54095403
}
54105404
});
54115405
return pageElems

0 commit comments

Comments
 (0)