Bring Back YouTube Fullscreen Scroll

Removes the deprecate-fullerscreen-ui attribute from YouTube.

נכון ליום 30-08-2025. ראה הגרסה האחרונה.

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.
// @description:fr                Supprime l’attribut deprecate-fullerscreen-ui de YouTube.
// @description:es                Elimina el atributo deprecate-fullerscreen-ui de YouTube.
// @description:de                Entfernt das Attribut deprecate-fullerscreen-ui von YouTube.
// @description:it                Rimuove l’attributo deprecate-fullerscreen-ui da 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] });
})();