您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replace all links to crates.io with ones to lib.rs, as the latter is much faster because it doesn't use tons of JavaScript
// ==UserScript== // @name crates.io -> lib.rs // @version 0.1.5 // @license GPL-3.0-only; http://www.gnu.org/licenses/gpl-3.0.txt // @homepageURL https://github.com/Logarithmus/crates-io-to-lib-rs // @copyright 2020, Logarithmus (https://github.com/Logarithmus) // @description Replace all links to crates.io with ones to lib.rs, as the latter is much faster because it doesn't use tons of JavaScript // @author Logarithmus // @match *://*/* // @namespace https://gf.qytechs.cn/users/475664 // ==/UserScript== (function() { if (window.location.hostname === "crates.io") { return } for (let a of document.getElementsByTagName("a")) { // Only modify relevant <a> tags to avoid breaking sites if (a.hostname === "crates.io" && a.pathname.indexOf("/crates/") === 0) { a.hostname = "lib.rs" } } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址