Hide paramount plus side bar

Hide annoying sidebar on paramount

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

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