Stripchat - Hide Private Models

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

当前为 2025-04-28 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

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