StripChat hide favourites

High favourite cams from listing so you can see only new ones to you

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         StripChat hide favourites
// @namespace    http://tampermonkey.net/
// @version      2024-01-05
// @description  High favourite cams from listing so you can see only new ones to you
// @author       GordonFreeman
// @match        https://*stripchat.com/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @license MIT
// ==/UserScript==

setInterval(function() {

    var modelLinks = document.querySelectorAll(".model-list-item-lower");

    // Loop through each element
    modelLinks.forEach(function(link) {
      // Get all span elements within the current link
      var spanElements = link.querySelectorAll("span");

      // Loop through each span element
      spanElements.forEach(function(span) {
        // Check if the class contains the string "favorite"
        if (span.className.indexOf("favorite") !== -1) {
          // Hide the parent div with class "model-list-item"
          link.closest(".model-list-item").style.display = "none";
        }
      });
    });

    // Find the div with id "chat"
    var chatDiv = document.querySelector(".chat");

    // Check if the div is found
    if (chatDiv) {

      // Hide the div by setting its style.display property to "none"
      chatDiv.style.display = "none";
    }


}, 3000);