JAVASCRIPT   9

adsense.js

Guest on 20th July 2021 03:45:08 PM

  1. //<script type='text/javascript' src='/wp-content/themes/main/js/adsense.js'></script>
  2.  
  3. console.log('ADS messages:');
  4.  
  5. //document.getElementById('#aswift_1').contentDocument.location.reload(true);
  6.  
  7. console.log($('#aswift_1').contents().find('body'));
  8.  
  9. $(window).on('load', function(){
  10.         $('.adsbygoogle').each(function(){
  11.                        
  12. console.log($(this).height());
  13.                        
  14.                 if ($(this).height() == 0) {
  15.                         console.log('height = 0');
  16.                 } else {
  17.                         console.log('OK');
  18.                 }
  19.         });
  20. });
  21.  
  22. //$(document).ready(function(){
  23.  
  24. //var $analyticsOn = $('#ai_widget-3');
  25.  
  26. //console.log($analyticsOn);
  27.  
  28. //$analyticsOn.each(function() {
  29. //      $(this).remove();
  30. //      qwe = $(this).childNodes.length;
  31. //      console.log(qwe)
  32. //});
  33.  
  34. //});

Raw Paste


Login or Register to edit or fork this paste. It's free.