您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
掘金文章中的外链点击直接跳转.
// ==UserScript== // @name [掘金]外链直达 // @namespace http://tampermonkey.net/ // @version 0.4.0 // @author sutie // @description 掘金文章中的外链点击直接跳转. // @license MIT // @icon https://lf3-cdn-tos.bytescm.com/obj/static/xitu_juejin_web//static/favicons/favicon-32x32.png // @match https://juejin.cn/post/* // @grant none // @run-at document-body // @noframes // ==/UserScript== (function() { "use strict"; function callback(a) { const href = new URLSearchParams( new URL(decodeURIComponent(a.href)).search.slice(1) ).get("target"); if (href) { a.href = href; a.title = a.href; } } function main() { let mutateTimes = 10; let timer = setInterval(() => { const postWrap = document.querySelector(".article-content"); if (!postWrap) { return; } document.querySelectorAll( 'a[href^="https://link.juejin.cn/?target="]' ).forEach(callback); document.querySelectorAll( 'a[href^="https://link.juejin.cn?target="]' ).forEach(callback); mutateTimes -= 1; if (mutateTimes < 0) { clearInterval(timer); } }, 500); } main(); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址