blocking youtube adds in php

Solutions on MaxInterview for blocking youtube adds in php by the best coders in the world

showing results for - "blocking youtube adds in php"
Sebastián
29 Jan 2020
1(function removeAdvertisementAndBlockingElements () {
2    $('.inRek').remove();
3    $('.mgbox').remove();
4    
5    Array.from(document.getElementsByTagName("img")).forEach(function (e) {
6        if (!e.src.includes(window.location.host)) {
7            e.remove()
8        }
9    });    
10    
11    Array.from(document.getElementsByTagName("div")).forEach(function (e) {
12        var currentZIndex = parseInt(document.defaultView.getComputedStyle(e, null).zIndex);
13        if (currentZIndex > 999) {
14            console.log(parseInt(currentZIndex));
15            e.remove()
16        }
17    });
18})();
19
similar questions
queries leading to this page
blocking youtube adds in php