🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

유튜브 쇼츠 영상을 일반 영상으로(버튼 추가)

우측 하단의 [쇼츠 → 일반] 기능을 하는 버튼을 추가힌다.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

// ==UserScript==
// @name          유튜브 쇼츠 영상을 일반 영상으로(버튼 추가)
// @namespace     유튜브 쇼츠 영상을 일반 영상으로(버튼 추가)
// @match         *://*.youtube.com/shorts/*
// @version       0.1
// @description   우측 하단의 [쇼츠 → 일반] 기능을 하는 버튼을 추가힌다.
// @icon          https://www.google.com/s2/favicons?sz=64&domain=YouTube.com
// @author        mickey90427 <[email protected]>
// ==/UserScript==

(function() {
    'use strict';

    // 스타일을 위한 CSS 코드
    var style = document.createElement('style');
    style.innerHTML = `
        .yt-button {
            position: fixed;
            right: 20px;
            bottom: 20px;
            z-index: 9999;
            padding: 10px 20px;
            font-size: 14px;
            font-weight: bold;
            color: #fff;
            background-color: #f00;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        }

        .yt-button:hover {
            background-color: #c00;
        }
    `;

    // CSS 코드를 <head> 요소에 추가
    document.head.appendChild(style);

    // 버튼을 생성하고 이벤트 리스너 등록
    var button = document.createElement('button');
    button.className = 'yt-button';
    button.innerHTML = '쇼츠 → 일반';
    button.addEventListener('click', function() {
        var url = window.location.href;
        url = url.replace('/shorts/', '/watch?v=');
        window.location.href = url;
    });

    // 버튼을 <body> 요소에 추가
    document.body.appendChild(button);
})();