1(function ($) { 2 /*jslint undef: false, browser: true, devel: false, eqeqeq: false, bitwise: false, white: false, plusplus: false, regexp: false, nomen: false */ 3 /*global jQuery,setTimeout,projekktor,location,setInterval,YT,clearInterval,pixelentity */ 4 5 var loaded = false; 6 7 function loadApi() { 8 loaded = true; 9 $("body").append('<div id="fb-root"/>'); 10 // facebook load script 11 var js, fjs = document.getElementsByTagName("script")[0]; 12 js = document.createElement("script"); 13 js.async = true; 14 js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; 15 fjs.parentNode.insertBefore(js, fjs); 16 17 } 18 19 function check(target,controller) { 20 var t = target.find("button.share.facebook"); 21 if (t.length > 0) { 22 t.replaceWith('<div class="shareButton"><div class="fb-like" data-send="false" data-layout="button_count" data-show-faces="true" data-width="100"></div></div>'); 23 if (!loaded) { 24 loadApi(); 25 } 26 return true; 27 } 28 return false; 29 } 30 31 $.pixelentity.widgets.add(check); 32}(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.