Hide paramount plus side bar

Hide annoying sidebar on paramount

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

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

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         Hide paramount plus side bar
// @namespace    http://tampermonkey.net/
// @version      2026-02-08
// @description  Hide annoying sidebar on paramount
// @author       Furty
// @match        https://www.paramountplus.com/live-tv/stream/ufc/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=paramountplus.com
// @grant        none
// @license      GPL-3.0-or-later
// ==/UserScript==

(function() {
'use strict';

    // Create and inject the CSS rule
    const style = document.createElement('style');
    style.textContent = `
        .skin-sidebar-plugin {
            display: none !important;
        }
    `;
    document.head.appendChild(style);

    // Optional: Also hide any already existing elements (in case page is already loaded)
    const hideElements = () => {
        document.querySelectorAll('.skin-sidebar-plugin').forEach(el => {
            el.style.display = 'none';
        });
    };

    // Run once immediately
    hideElements();

    // Watch for dynamically added elements (common on modern sites)
    const observer = new MutationObserver((mutations) => {
        hideElements();
    });

    observer.observe(document.body, {
        childList: true,
        subtree: true
    });
})();