YouTube Shorts To Normal Video

Redirect YouTube Shorts video to normal video viewing.

目前为 2024-08-23 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name YouTube Shorts To Normal Video
  3. // @namespace https://github.com/tientq64/userscripts
  4. // @version 1.0.0
  5. // @description Redirect YouTube Shorts video to normal video viewing.
  6. // @author tientq64
  7. // @icon https://cdn-icons-png.flaticon.com/64/3670/3670147.png
  8. // @match https://www.youtube.com/*
  9. // @license MIT
  10. // @grant none
  11. // @noframes
  12. // @homepage https://github.com/tientq64/userscripts/tree/main/scripts/YouTube-Shorts-To-Normal-Video
  13. // ==/UserScript==
  14.  
  15. function redirect() {
  16. const isShorts = location.pathname.startsWith('/shorts/')
  17. if (isShorts) {
  18. const newUrl = location.href.replace('/shorts/', '/watch?v=')
  19. location.replace(newUrl)
  20. }
  21. }
  22.  
  23. document.addEventListener('yt-navigate-start', redirect)
  24. redirect()

QingJ © 2025

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