XHamster "Watched" videos remover

Removes thumbnails in XHamster for already watched videos

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

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         XHamster "Watched" videos remover
// @namespace    http://tampermonkey.net/
// @version      2025-06-08
// @license      MIT
// @description  Removes thumbnails in XHamster for already watched videos
// @author       RubberPixel
// @match        https://xhamster.com/videos/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=xhamster.com
// @grant        none
// @require      https://code.jquery.com/jquery-3.7.1.min.js
// ==/UserScript==
 
function GM_addStyle(cssStr){
 
    var n = document.createElement('style');
    n.type = "text/css";
    n.innerHTML = cssStr;
    document.getElementsByTagName('body')[0].appendChild(n);
 
}
 
GM_addStyle(".thumb-list__item:has(> a > div > div.thumb-image-container__watched) { visibility: collapse; }");
GM_addStyle(".thumb-list-mobile-item:has(div > a > div > div.thumb-image-container__watched) { visibility: collapse; }");