1// eslint-disable-next-line strict 2(function($) { 3 $(document).ready(function() { 4 $('.embedded-video > iframe').each(function(i, obj) { 5 var origSrc = $(this).attr('src'); 6 var toAdd = 'enablejsapi'; 7 var max = 'max_width'; 8 var indxPos = origSrc.indexOf(max); 9 // console.log(indxPos); 10 if (origSrc.indexOf(toAdd) < 0) { 11 console.log('SRC ' + i + ' Good! The src url has NO toAdd...'); 12 } 13 var newSrc = origSrc.slice(0, indxPos) + encodeURIComponent('?' + toAdd + '=1') + '&' + origSrc.slice(indxPos); 14 $(this).attr('src', newSrc); 15 console.log('This video src is updated as: ' + $(this).attr('src')); 16 }); 17 }); 18 19})(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.