您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
清理 Greasy Fork镜像 URL 中的脚本名称
当前为
// ==UserScript== // @name Greasy Fork镜像 URL 脚本名称清理 // @version 1.0.2.20210918 // @namespace laster2800 // @author Laster2800 // @description 清理 Greasy Fork镜像 URL 中的脚本名称 // @icon https://api.iowen.cn/favicon/greasyforks.org.png // @homepageURL https://greasyforks.org/zh-CN/scripts/431940 // @supportURL https://greasyforks.org/zh-CN/scripts/431940/feedback // @license LGPL-3.0 // @noframes // @include /^https?:\/\/(greasy|sleazy)fork\.org\/[^/]+\/scripts\/\d+-/ // @grant none // @run-at document-start // ==/UserScript== const m = /(\/[^/]+\/scripts\/\d+)-[^/]+(\/.*)?/.exec(location.pathname) history.replaceState({}, null, `${location.origin}${m[1]}${m[2] ?? ''}${location.search}${location.hash}`)