您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
6/19/2022, 8:12:26 PM
- // ==UserScript==
- // @name Redirect to latest release - docs.rs
- // @namespace Violentmonkey Scripts
- // @match https://docs.rs/*
- // @grant none
- // @version 1.0
- // @author Blusk
- // @description 6/19/2022, 8:12:26 PM
- // @run-at document-start
- // @license MIT
- // ==/UserScript==
- const path = window.location.pathname.split("/");
- const version = path[2]
- if (version !== "latest" && /^[\d\.]+$/.test(version)) {
- path[2] = "latest";
- window.location.pathname = path.join("/");
- }