Skip to content

Commit 593c5ee

Browse files
committed
优化 [添加历史记录] 功能
1 parent 887ce84 commit 593c5ee

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Autopage.user.js

Lines changed: 2 additions & 3 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 5.2.5
6+
// @version 5.2.6
77
// @author X.I.U
88
// @description ⭐无缝衔接下一页内容到网页底部(类似瀑布流)⭐,目前支持:【所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、NexusPHP...」论坛】【百度、谷歌(Google)、必应(Bing)、搜狗、微信、360、Yahoo、Yandex 等搜索引擎...】、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、煎蛋网、龙的天空、起点中文、IT之家、千图网、千库网、Pixabay、Pixiv、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、小众软件、【动漫狂、漫画猫、漫画屋、漫画 DB、动漫之家、拷贝漫画、HiComic、Mangabz、Xmanhua 等漫画网站...】、PubMed、Z-Library、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
99
// @description:zh-TW ⭐無縫銜接下一頁內容到網頁底部(類似瀑布流)⭐,支持各論壇、社交、遊戲、漫畫、小說、學術、搜索引擎(Google、Bing、Yahoo...) 等網站~
@@ -3019,8 +3019,7 @@ function: {
30193019
// 对于自带类似功能 或者 覆盖了 history 原生函数的网站,则跳过不再添加历史记录
30203020
if (window.top.history.toString() !== '[object History]') return
30213021

3022-
//console.log(pageE.querySelector('title'), curSite.pageUrl)
3023-
title = title || pageE.querySelector('title').textContent || window.top.document.title;
3022+
title = title || (pageE.querySelector('title')) ? pageE.querySelector('title').textContent : window.top.document.title;
30243023
url = url || curSite.pageUrl;
30253024
window.top.document.Autopage_nowUrl = curSite.pageUrl;
30263025
// 对于下一页 URL 和当前网页 URL 的协议不同时,跳过

0 commit comments

Comments
 (0)