1337x NSFW Hider

Hides 18+ content

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         1337x NSFW Hider
// @namespace    http://tampermonkey.net/
// @version      2024-12-04
// @description  Hides 18+ content
// @author       DamienKnight
// @match        *.1337x.to/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Dictionary of terms to search for (case-insensitive)
    const terms = ["Affair", "Anal", "Ass", "Audition", "BBC", "BFF", "Bitch", "Black", "Bloomer", "Blow", "Boss", "Brat", "Brazzers", "Brother", "Busty", "Caught", "Cheat", "Cheek", "Come", "Commando", "Creampie", "Cum", "Deep", "Delivery", "Desire", "Dick", "Exploit", "Family", "Fuck", "Gangbang", "Girl", "Horny", "Hot", "Husband", "Love", "Lust", "Mature", "MILF", "Mom", "Mother", "Neighbor", "NewSensations", "Office", "Oiled", "Onlyfans", "Passionate", "Perfect", "Perv", "Pussy", "Racy", "Raw", "Rough", "Secret", "Seduce", "Sex", "Sister", "Slick", "Slut", "Squirt", "Step", "Stroke", "Suck", "Swap", "Taboo", "Therapy", "Tight", "Tits", "Wife", "Young", "XXX"];

    // Function to check if href contains any term from the dictionary (case-insensitive)
    const containsTerm = href => terms.some(term => href.toLowerCase().includes(term.toLowerCase()));

    // Hide <li> with links containing any term in the dictionary
    document.querySelectorAll('li a[href]').forEach(link => {
        if (containsTerm(link.href)) {
            link.closest('li').style.display = 'none';
        }
    });

    // Hide <tr> with links containing any term in the dictionary
    document.querySelectorAll('tr a[href]').forEach(link => {
        if (containsTerm(link.href)) {
            link.closest('tr').style.display = 'none';
        }
    });

    // Hide <div> with the class "list-box hidden-sm" (Affiliate Links on the Sidebar)
    document.querySelectorAll('div.list-box.hidden-sm').forEach(div => {
        div.style.display = 'none';
    });

})();