Bring Back YouTube Fullscreen Scroll

Removes the deprecate-fullerscreen-ui attribute from YouTube.

Stan na 30-08-2025. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

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