Guest User

Untitled

a guest
Apr 12th, 2014
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function addJQuery(callback) {
  2.     var script = document.createElement("script");
  3.     script.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js");
  4.     script.addEventListener('load', function() {
  5.         var script = document.createElement("script");
  6.         script.textContent = "window.jQ=jQuery.noConflict(true);(" + callback.toString() + ")();";
  7.         document.body.appendChild(script);
  8.     }, false);
  9.     document.body.appendChild(script);
  10. }
  11.  
  12. addJQuery(main);
  13.  
  14. function main() {
  15.     $("ol li a").each(function(){$(this).html('<img src="http://rghost.ru'+$(this).attr('href')+'/thumb.png"/>')});
  16. }
RAW Paste Data