您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Konvertiert YouTube Shorts URLs automatisch zu regulären YouTube URLs
// ==UserScript== // @name YouTube Shorts zu normaler URL Konverter // @namespace http://tampermonkey.net/ // @version 1.2 // @description Konvertiert YouTube Shorts URLs automatisch zu regulären YouTube URLs // @author You // @match *://*.youtube.com/* // @match https://youtube.com/* // @match https://www.youtube.com/* // @grant none // @run-at document-start // @license MIT // ==/UserScript== (function() { 'use strict'; function convertUrl() { const currentUrl = window.location.href; if (currentUrl.includes('/shorts/')) { const videoId = currentUrl.split('/shorts/')[1].split('?')[0]; const newUrl = `https://www.youtube.com/watch?v=${videoId}`; window.location.replace(newUrl); } } convertUrl(); let lastUrl = location.href; new MutationObserver(() => { const url = location.href; if (url !== lastUrl) { lastUrl = url; convertUrl(); } }).observe(document, {subtree: true, childList: true}); })();