Salve, se qualcuno si sta chiedendo come bloccare gli annunci su tv.idnes.cz . Installa Tampermonkey nel browser e aggiungi lo script

// ==UserScript==
// @name         iDNES Video block ads
// @namespace    http://tampermonkey.net/
// @version      2024-09-28
// @description  try to take over the world!
// @author       You
// @match        https://tv.idnes.cz/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    var url = document.querySelector('meta[itemprop="contentURL"]').content;
    url = url.replace( '_middle_', '_high_');
    document.querySelector('.art-video > div:first-of-type').innerHTML = '';
    var video = document.createElement('video');
    video.src = url;
    video.autoplay = true;
    video.setAttribute("width", "320");
    video.setAttribute("height", "240");
    video.setAttribute("controls", "controls");
    video.setAttribute("style", "display: block;width: 100%;height: auto;aspect-ratio: 1 / 0.5625;");
    document.querySelector('.art-video > div:first-of-type').appendChild(video);
    document.querySelector('.art-video video').play();

    document.querySelector('.art-video video').addEventListener('ended', function(e) {
        window.location = document.querySelector('.col-b .art-link').href;
    });

})();

idnes.cz – blokace reklam u videí
byu/Beneficial-Cash-7487 inczech



di Beneficial-Cash-7487

2 Comments

  1. Single-Hedgehog-8649 on

    Lepsi je nainstalovat proverenej uBlock Origin (jiny adblock rozsireni nemaji smysl) a bude to fungovat taky i s aktualizacema – ty tenhle skript nema, coz je z hlediska bezpecnosti vyhoda, ale casem proste prestane fungovat.

Leave A Reply