🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Greasy Fork is available in English.

📂 缓存分发状态(共享加速已生效)
🕒 页面同步时间:2026/01/02 01:23:27
🔄 下次更新时间:2026/01/02 02:23:27
手动刷新缓存

zhihu link fix

Change the jump link to the original link.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

You will need to install an extension such as Tampermonkey to install this script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

// ==UserScript==
// @name                zhihu link fix
// @name:zh-CN          知乎跳转链接修复
// @name:zh-TW          知乎跳轉鏈接修復
// @namespace           zhihaofans
// @version             0.2
// @description         Change the jump link to the original link.
// @description:zh-CN   将跳转链接改为原链接。
// @description:zh-TW   將跳轉鏈接改爲原鏈接。
// @author              zhihaofans
// @require             https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js
// @match               https://*.zhihu.com/*
// ==/UserScript==

(function () {
    console.log("zhihu link fix:Start");
    $(document).ready(function () {
        var l_n = $("a").length;
        for (var a = 0; a < l_n; a++) {
            if ($("a").eq(a).attr("href").startsWith("https://link.zhihu.com/?target=")) {
                console.log($("a").eq(a).attr("href"));
                console.log($("a").eq(a).attr("href").startsWith("https://link.zhihu.com/?target="));
                var new_link = decodeURIComponent($("a").eq(a).attr("href").replace("https://link.zhihu.com/?target=", ""));
                $("a").eq(a).attr("href", new_link);
                console.log(new_link);
                console.log("======");
            }
        }
        console.log("zhihu link fix:End");
    });
})();