1(function ($) { 2 Drupal.behaviors.g_advert_sas = { 3 attach: function (context, settings) { 4 if (!Drupal.settings.g_advert_sas.admin_page) { 5 if (top?.burdaAds?.isSeznam?.()) { 6 Drupal.behaviors.g_advert_sas.disableLinks(); 7 Drupal.behaviors.g_advert_sas.hideEmbedPolls(); 8 $('a.blocked').click(function(){ 9 $(this).stopPropagation(); 10 $(this).preventDefault(true); 11 return false; 12 }); 13 } 14 } 15 }, 16 17 disableLinks: function() { 18 var rx = /(^https?:\/\/(g|gdev\.extra1\.wdf)\.(cz|local)|^\/|^#|^javascript:).*$/i; 19 $('body a').each(function(){ 20 var href = $(this).attr('href'); 21 if (typeof(href) != "undefined" && !rx.test(href)) { 22 $(this).contents().unwrap(); 23 } 24 }); 25 }, 26 27 hideEmbedPolls: function() { 28 $('.embed .node--advpoll--node-embed').each(function(){ 29 $(this).hide(); 30 console.log(' [GADV] Poll ' + $(this).find('form:first').attr('id') + ' is hidden'); 31 }); 32 } 33 }; 34})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.