Greasy Fork URL Script Name Cleanup

Cleanup Greasy Fork URL Script Name

Instalează acest script?
Script sugerat de autor

Poate îți va plăcea șiB站稍后再看功能增强.

Instalează acest script

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==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/greasyfork.org.png
// @homepageURL           https://greasyfork.org/zh-CN/scripts/431940
// @supportURL            https://greasyfork.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}`)