AutoPager

⭐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~

< Valutazione su AutoPager

Recensione: Bene - lo script funziona

§
Pubblicato: 20/08/2022

打开脚本后,知乎个人用户界面点击回答、提问、视频、文章等在新标签页显示
关闭脚本后,知乎个人用户界面点击回答、提问、视频、文章等在原标签页显示
作者能不能修改回原来的逻辑,不要在跳转到新标签页显示

X.I.UAutore
§
Pubblicato: 21/08/2022

知乎是动态加载内容的网页,因为网页 URL 有固定页码,所以才能通过翻页模式 5 实现。
不过因为如果在当前标签页打开链接的话,会导致脚本插入的网页全部被覆盖,影响使用体验,所以我给规则里加了强制新标签页打开,你不喜欢的话,就用下面这段规则(已删除 "blank": 2, 这个新标签页打开链接的配置),会覆盖脚本内的同名规则。

复制粘贴到脚本 自定义翻页规则 默认的 { } 中间保存(浏览器右上角 Tampermonkey 扩展图标内的脚本菜单)

    "知乎 - 用户主页/收藏夹": {
        "host": "www.zhihu.com",
        "url": "fun.isUrlC(); if (fun.indexOF(/\\/people\\/.+\\/.+/) || fun.indexOF('/collection/')) {if (self != top) {fun.insStyle('#ProfileHeader {display: none !important;}')}; return true;}",
        "iframe": true,
        "pager": {
            "type": 5,
            "nextL": "js; let next = fun.getCSS('.Pagination .PaginationButton--current+button:not(.PaginationButton-next)');if (next) return (location.origin + location.pathname + '?page=' + next.textContent)"
        }
    }

Pubblica risposta

Accedi per pubblicare una risposta.