Stripchat - Hide Private Models

Automatically hide private models (those with ticket/private shows) on the Stripchat.

Version au 28/04/2025. Voir la dernière version.

// ==UserScript==
// @name         Stripchat - Hide Private Models
// @namespace    https://greasyfork.org/users/your-username
// @version      1.0
// @description  Automatically hide private models (those with ticket/private shows) on the Stripchat.
// @author       YourName
// @license      MIT
// @match        https://stripchat.com/
// @icon         https://stripchat.com/favicon.ico
// @grant        none
// @run-at       document-end
// @homepageURL  https://greasyfork.org/scripts/your-script-id
// @supportURL   https://greasyfork.org/scripts/your-script-id/feedback
// ==/UserScript==

(function() {
    'use strict';

    /**
     * Hide models that are currently in private/ticket shows.
     * Looks for elements with class containing "ModelThumbPrivateCover" inside model-list-item blocks.
     */
    function hidePrivateModels() {
        const modelItems = document.querySelectorAll('.model-list-item');
        modelItems.forEach(item => {
            if (item.querySelector('div[class*="ModelThumbPrivateCover"]')) {
                item.style.display = 'none';
            }
        });
    }

    // Run once after the page loads
    document.addEventListener('DOMContentLoaded', hidePrivateModels);

    // Keep running whenever new models are dynamically loaded (infinite scroll)
    const observer = new MutationObserver(hidePrivateModels);
    observer.observe(document.body, { childList: true, subtree: true });
})();