Hide paramount plus side bar

Hide annoying sidebar on paramount

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

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