您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
优化知乎体验
当前为
// ==UserScript== // @name 知乎优化 // @namespace http://tampermonkey.net/ // @version 0.2.0 // @description 优化知乎体验 // @author share121 // @match https://zhuanlan.zhihu.com/*/* // @match https://www.zhihu.com/*/* // @icon https://static.zhihu.com/heifetz/favicon.ico // @grant none // @run-at document-start // @license MIT // ==/UserScript== (function () { "use strict"; let tmp = setInterval(() => { let button = document.querySelector(".Modal-closeButton"); if (button) { clearInterval(tmp); button.click(); } }, 0); window.addEventListener("load", () => { document.querySelectorAll("a.wrap.external").forEach((e) => { let href = e.href; if (/target=([^&]+)/.test(href)) { e.href = decodeURIComponent(href.match(/target=([^&]+)/)[1]); } }); }); })();