Bring back YouTube Fullscreen Scroll

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

Ekde 2025/08/30. Vidu La ĝisdata versio.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==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/*
// @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] });
})();