Greasy Fork镜像 URL 脚本名称清理

清理 Greasy Fork镜像 URL 中的脚本名称

目前为 2022-03-30 提交的版本。查看 最新版本

// ==UserScript==
// @name                  Greasy Fork镜像 URL Script Name Cleanup
// @name:zh-CN            Greasy Fork镜像 URL 脚本名称清理
// @version               1.1.2.20210925
// @namespace             laster2800
// @author                Laster2800
// @description           Cleanup Greasy Fork镜像 URL Script Name
// @description:zh-CN     清理 Greasy Fork镜像 URL 中的脚本名称
// @icon                  https://api.iowen.cn/favicon/gf.qytechs.cn.png
// @homepageURL           https://gf.qytechs.cn/zh-CN/scripts/431940
// @supportURL            https://gf.qytechs.cn/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}`)

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址