decency

comment decency

Stan na 03-09-2024. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         decency
// @namespace    http://tampermonkey.net/
// @version      2024-09-03
// @description  comment decency
// @author       You
// @match        https://saidit.net/s/all/comments*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=saidit.net
// @grant        none
// @license      AGPL 3.1
// ==/UserScript==

(function() {
    'use strict';

    Object.entries(document.querySelectorAll(".usertext-body")).reduce(function(res, item) {
        console.log(item);
        let text = item[1].childNodes[0].childNodes[0].innerText;
        if (text.indexOf("dick") >= 0) {
            item[1].parentNode.parentNode.parentNode.remove();
            return false;
        } else if(text.indexOf("nigger") >= 0) {
            item[1].parentNode.parentNode.parentNode.remove();
            return false;
        } else if(text.indexOf("cunt") >= 0) {
            item[1].parentNode.parentNode.parentNode.remove();
            return false;
        } else if (item[1].parentNode.parentNode.querySelector(".author").innerText == "YoMamma") {
            item[1].parentNode.parentNode.parentNode.remove();
            return false;
        } else if (item[1].parentNode.parentNode.querySelector(".author").innerText == "Oyveygoyim") {
            item[1].parentNode.parentNode.parentNode.remove();
            return false;
        } else if (item[1].parentNode.parentNode.querySelector(".author").innerText == "TheBlackSun") {
            item[1].parentNode.parentNode.parentNode.remove();
            return false;
        } else if (item[1].parentNode.parentNode.querySelector(".author").innerText.indexOf("kys") >= 0) {
            item[1].parentNode.parentNode.parentNode.remove();
            return false;
        } else if (item[1].parentNode.parentNode.querySelector(".author").innerText == "GuyWhite") {
            item[1].parentNode.parentNode.parentNode.remove();
            return false;
        } else if (item[1].parentNode.parentNode.querySelector(".author").innerText == "TotalAnon1337") {
            item[1].parentNode.parentNode.parentNode.remove();
            return false;
        } else if(text.indexOf(" ") < 0) {
            item[1].parentNode.parentNode.parentNode.remove();
            return false;
        } else if(text.indexOf("sexy") >= 0) {
            item[1].parentNode.parentNode.parentNode.remove();
            return false;
        }


        return true;

    }, true);


})();