Greasy Fork is available in English.

Greasy Fork URL Script Name Cleanup

Cleanup Greasy Fork URL Script Name

スクリプトをインストール?
作者が勧める他のスクリプト

B站稍后再看功能增强も気に入るかもしれません。

スクリプトをインストール
このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
  1. // ==UserScript==
  2. // @name Greasy Fork URL Script Name Cleanup
  3. // @name:zh-CN Greasy Fork URL 脚本名称清理
  4. // @version 1.1.2.20210925
  5. // @namespace laster2800
  6. // @author Laster2800
  7. // @description Cleanup Greasy Fork URL Script Name
  8. // @description:zh-CN 清理 Greasy Fork URL 中的脚本名称
  9. // @icon https://api.iowen.cn/favicon/greatest.deepsurf.us.png
  10. // @homepageURL https://greatest.deepsurf.us/zh-CN/scripts/431940
  11. // @supportURL https://greatest.deepsurf.us/zh-CN/scripts/431940/feedback
  12. // @license LGPL-3.0
  13. // @noframes
  14. // @include /^https?:\/\/(greasy|sleazy)fork\.org\/[^/]+\/scripts\/\d+-/
  15. // @grant none
  16. // @run-at document-start
  17. // ==/UserScript==
  18.  
  19. const m = /(\/[^/]+\/scripts\/\d+)-[^/]+(\/.*)?/.exec(location.pathname)
  20. history.replaceState({}, null, `${location.origin}${m[1]}${m[2] ?? ''}${location.search}${location.hash}`)