Skip to content

Commit 434accc

Browse files
committed
修复 内置函数 blank 值为 5 时处理中忽略了带 onclick 属性的元素的问题
1 parent 9b5b579 commit 434accc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Autopage.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @name:zh-CN 自动无缝翻页
44
// @name:zh-TW 自動無縫翻頁
55
// @name:ru Автостраничник
6-
// @version 6.6.57
6+
// @version 6.6.58
77
// @author X.I.U
88
// @description ⭐Append the next page content to the bottom seamlessly (like a waterfall, Unlimited scrolling, no need to manually click on the next page) ⭐, support various forums, social networking, games, comics, novels, academics, search engines (Google, Bing, Yahoo...) and other websites~
99
// @description:zh-CN ⭐无缝加载 下一页内容 至网页底部(类似瀑布流,无限滚动,无需手动点击下一页)⭐,目前支持:【所有「Discuz!、Flarum、phpBB、MyBB、Xiuno、XenForo、NexusPHP...」论坛】【百度、谷歌(Google)、必应(Bing)、搜狗、微信、360、Yahoo、Yandex 等搜索引擎...】、贴吧、豆瓣、知乎、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(以上仅一小部分常见网站,更多的写不下了...
@@ -2422,7 +2422,7 @@ function: {
24222422
} else if (curSite.blank === 5 || curSite.blank === 6) { // 清理 <a> 元素的点击事件
24232423
if (!pageE) pageE = getAll(curSite.pager.pageE)
24242424
pageE.forEach(function (dd) {
2425-
getAllCSS('a[href]:not([target="_blank"]):not([onclick]):not([href^="#"]):not([href^="javascript:"])',dd).forEach(function (a) {
2425+
getAllCSS('a[href]:not([target="_blank"]):not([href^="#"]):not([href^="javascript:"])',dd).forEach(function (a) {
24262426
if (a.href.slice(0,4) == 'http') {
24272427
const clonedLink = a.cloneNode(true); // 克隆原 a 元素
24282428
clonedLink.target = '_blank'; // 通过添加 target="_blank" 属性来新标签页打开,可以解决大部分情况

0 commit comments

Comments
 (0)