Bring back YouTube Fullscreen Scroll

Removes the deprecate-fullerscreen-ui attribute from YouTube elements.

30.08.2025 itibariyledir. En son verisyonu görün.

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

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 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                          Bring back YouTube Fullscreen Scroll
// @name:fr                       Restaurer le défilement en plein écran YouTube
// @name:es                       Restaurar el desplazamiento en pantalla completa de YouTube
// @name:de                       YouTube-Vollbild-Scrollen wiederherstellen
// @name:it                       Ripristina lo scorrimento a schermo intero di YouTube
// @name:zh-CN                    恢复 YouTube 全屏滚动
// @namespace                     https://gist.github.com/4lrick/1060be71b57d6b6923c461223d077b13
// @version                       1.0
// @description                   Removes the deprecate-fullerscreen-ui attribute from YouTube elements.
// @description:fr                Supprime l’attribut deprecate-fullerscreen-ui des éléments YouTube.
// @description:es                Elimina el atributo deprecate-fullerscreen-ui de los elementos de YouTube.
// @description:de                Entfernt das Attribut deprecate-fullerscreen-ui von YouTube-Elementen.
// @description:it                Rimuove l’attributo deprecate-fullerscreen-ui dagli elementi di YouTube.
// @description:zh-CN             移除 YouTube 元素中的 deprecate-fullerscreen-ui 属性。
// @author                        4lrick
// @match                         https://www.youtube.com/*
// @icon                          https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant                         none
// @license                       MIT
// ==/UserScript==

(function() {
    'use strict';

    const attributeName = 'deprecate-fullerscreen-ui';

    function removeAttribute() {
        const elements = document.querySelectorAll(`[${attributeName}]`);
        elements.forEach(element => {
            element.removeAttribute(attributeName);
        });
    }

    const observer = new MutationObserver(removeAttribute);
    observer.observe(document.body, { childList: true, subtree: true, attributeFilter: [attributeName] });
})();