Greasy Fork镜像 URL 脚本名称清理

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

安装此脚本?
作者推荐脚本

您可能也喜欢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/gf.qytechs.cn.png
  10. // @homepageURL https://gf.qytechs.cn/zh-CN/scripts/431940
  11. // @supportURL https://gf.qytechs.cn/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}`)

QingJ © 2025

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