trystan4861 / TuNovelaLigera by trystan4861

// ==UserScript==
// @name            TuNovelaLigera by trystan4861
// @namespace       https://openuserjs.org/scripts/trystan4861/TuNovelaLigera_by_trystan4861
// @description     Clean ads from site
// @copyright       2023, trystan4861 (https://openuserjs.org/users/trystan4861)
// @license         MIT
// @version         0.5
// @author          @trystan4861
// @match           https://tunovelaligera.com/invincible/*
// @match           https://tunovelaligera.com/hail-the-king/*
// @icon            https://www.google.com/s2/favicons?sz=64&domain=tunovelaligera.com
// @grant none
// @updateURL       https://openuserjs.org/meta/trystan4861/TuNovelaLigera_by_trystan4861.meta.js
// @downloadURL     https://openuserjs.org/install/trystan4861/TuNovelaLigera_by_trystan4861.user.js
// ==/UserScript==

// ==OpenUserJS==
// @author trystan4861
// ==/OpenUserJS==

(function() {
    'use strict';
    function moveOutSide(el)
    {
        el.style.position="absolute";
        el.style.left="-9999px";
        el.style.top="-9999px";
    }
    function doRemove()
    {
    
        document.querySelectorAll(".adform-adbox,.videootv-widget-player-screen,.sidebar-col,[data-fuse],[id^='HB_'],[data-insertion-position],.teads-inread,.code-block-2--anuncio").forEach(moveOutSide);
        let video=document.querySelector(".videootv");
        video.querySelectorAll("div").forEach(moveOutSide);
    }
    setInterval(doRemove,2000);
    document.querySelector(".main-col").classList.replace("col-md-8","col-md-12");
})();