delete anti-adblock sankaku complex

fuck you sankaku, fuck you WinterXIX

As of 2023-09-23. See the latest version.

// ==UserScript==
// @name         delete anti-adblock sankaku complex
// @namespace    http://tampermonkey.net/
// @version      0.1.3
// @description  fuck you sankaku, fuck you WinterXIX
// @author       shadyreptilian
// @match        https://chan.sankakucomplex.com/*
// @grant        none
// @run-at document-idle
// @license MIT
// ==/UserScript==


var divs = document.getElementsByTagName("div");
var todelete = []
for(var i = 0; i < divs.length; i++){
    if(!(divs[i].id.length) && !(divs[i].className) ){

        var topParent = divs[i];
        if(topParent){
            while( topParent.parentElement.nodeName != 'BODY' ){
                topParent = topParent.parentElement;
            }
            console.log( topParent.nodeName );
        }

        if(topParent.id != "content"){
            todelete.push(divs[i])
        }
    }
}


for(var j = 0; j < divs.length; j++){
    todelete[j].remove();
}