Meteorite CSS remover

Whole site is filled with furry smut on user profiles

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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         Meteorite CSS remover
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Whole site is filled with furry smut on user profiles
// @author       MojaveMF
// @match        https://mete0r.xyz/users/*
// @grant        none
// @license MIT
// ==/UserScript==

function clean(){
    let stylers = document.getElementsByTagName("style")
    for (let i = 0;i<stylers.length;i++){
        let style = stylers[i]
        if (style.getAttribute("ref") == undefined && style.getAttribute("href") == undefined){
            console.log("Cleaned");
            style.remove()
        }
    }
}

function wait(ms){
    return new Promise((Resolve) => setTimeout(Resolve,ms))
}

(async function() {
    'use strict';

    setTimeout(async () => {
        while (true) {
            clean()
            await wait(100)
        }
    },0)
})();