decency

comment decency

اعتبارا من 03-09-2024. شاهد أحدث إصدار.

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 or Violentmonkey 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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

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


})();