Search
 
SCRIPT & CODE EXAMPLE
 

PHP

blocking youtube adds in php

(function removeAdvertisementAndBlockingElements () {
    $('.inRek').remove();
    $('.mgbox').remove();
    
    Array.from(document.getElementsByTagName("img")).forEach(function (e) {
        if (!e.src.includes(window.location.host)) {
            e.remove()
        }
    });    
    
    Array.from(document.getElementsByTagName("div")).forEach(function (e) {
        var currentZIndex = parseInt(document.defaultView.getComputedStyle(e, null).zIndex);
        if (currentZIndex > 999) {
            console.log(parseInt(currentZIndex));
            e.remove()
        }
    });
})();
Comment

PREVIOUS NEXT
Code Example
Php :: union type php does not work 
Php :: laravel {{}} not being rendered 
Php :: how to prevent iframe for your site by PHP 
Php :: many to many relationship laravel example 
Php :: add attribute validation lang laravel 
Php :: array issue in php 
Php :: wordpress have same sku 
Php :: Date and time Asia karachi php 
Php :: preg_replace encoding 
Php :: laravel eloquent where value less then 5 and greter then 0 
Php :: how to remove warning in php 
Php :: subdomain ajax request fail in php 
Php :: undefine variable $variable in php 
Php :: how to payment credit card in codeigniter authorized.net 
Php :: php over serial arduino 
Php :: add user role to wp admin page css 
Php :: count same datetimes in foreach and group them php 
Php :: trait class has consttoctor 
Php :: wp $product add alt 
Php :: CarbonTraitsUnits.php:69 
Php :: Primary Termlaravel recursive relationships 
Php :: Drupal 9 how to pass arguments to custom blocks 
Php :: php substring last 4 characters to censure credit card 
Php :: error correction in qr code php 
Php :: php version 5.6 
Php :: Add Recent Posts by Category Using PHP 
Php :: codeigniter database metadata 
Php :: retrieve the order Id on Order pay page 
Php :: select query with multiple where clause in php 
Php :: hide extension 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =