CAM4 - Only "Go Private" Button

Hides tipping, inputs, and extra toolbar rows with pure CSS. Keeps ONLY "Go Private" and Wallet.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

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

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name         CAM4 - Only "Go Private" Button
// @namespace    http://tampermonkey.net/
// @version      1.1
// @description  Hides tipping, inputs, and extra toolbar rows with pure CSS. Keeps ONLY "Go Private" and Wallet.
// @author       Sergi0
// @match        https://*.cam4.com/*
// @grant        GM_addStyle
// @run-at       document-start
// @icon         https://www.cam4.com/favicon.ico
// @license      MIT
// ==/UserScript==

(function () {
    'use strict';

    const css = `
        /* 1. Ocultar la barra de meta/objetivo */
        [class*="PerformerGoal__performerGoal"] {
            display: none !important;
        }

        /* 2. Ocultar el bloque de propinas rápidas (5, 10, 25, 50, Menú) */
        [class*="DesktopTipBar__tippingWrap"] {
            display: none !important;
        }

        /* 3. Ocultar el cuadro de texto del Custom Tip ("Ej: 250") */
        [class*="DesktopTipBar__customTipWrapper"] {
            display: none !important;
        }

        /* 4. Ocultar la segunda fila de botones (Regalos, Boost, Leader, etc.) */
        [class*="DesktopTipBar__secondPartOfToolbar"] {
            display: none !important;
        }

        /* 5. Ocultar el menú de 3 puntos */
        [class*="DesktopTipBar__menuBtn"] {
            display: none !important;
        }

        /* 6. Acomodar y forzar visibilidad exclusiva del botón "Go Private" */
        [class*="DesktopTipBar__goPrivate"],
        [data-action-id="Go Private"] {
            display: inline-flex !important;
            visibility: visible !important;
            opacity: 1 !important;
        }

        /* 7. Mantener el contenedor del botón expandido y limpio */
        [class*="DesktopTipBar__tippingWrapper"] {
            display: flex !important;
            justify-content: flex-start !important;
        }
    `;

    // Inyección de CSS seguro
    if (typeof GM_addStyle !== 'undefined') {
        GM_addStyle(css);
    } else {
        const style = document.createElement('style');
        style.type = 'text/css';
        style.innerHTML = css;
        (document.head || document.documentElement).appendChild(style);
    }
})();