FlicksBar AD Remover

Clean page from adv and improve the site

当前为 2022-12-05 提交的版本,查看 最新版本

// ==UserScript==
// @name         FlicksBar AD Remover
// @namespace    https://t.me/flicksbar
// @version      1.40
// @description  Clean page from adv and improve the site
// @author       Devitp001
// @icon         https://www.kinopoisk.ru/favicon.ico
// @icon64       https://www.kinopoisk.ru/favicon.ico
// @match        https://flicksbar.cc/*
// @license MIT
// ==/UserScript==

var urltitle = document.location.search;
var str = decodeURI(urltitle).replace(/\?t=/gm, '');
document.title = str + ' — Flicksbar';

function ADRemover()
{

    document.querySelector("#tgWrapper").remove();
    document.querySelector("#TopAdMb").remove();
    document.querySelector("body > div > div.brand").remove();
    document.querySelector("body > div > div.topAdPad").remove();
    document.querySelector("body > div > div.mainContainer > div.adDown").remove();
    document.querySelector("body > span").remove();
    document.querySelector("body > script:first-child").remove();

    var cclass = document.querySelector("#tgWrapper");

    cclass = document.getElementsByClassName('kinobox');
    cclass[0].style.minHeight='600px';

}
window.onload=ADRemover();