Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function addJQuery(callback) {
- var script = document.createElement("script");
- script.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js");
- script.addEventListener('load', function() {
- var script = document.createElement("script");
- script.textContent = "window.jQ=jQuery.noConflict(true);(" + callback.toString() + ")();";
- document.body.appendChild(script);
- }, false);
- document.body.appendChild(script);
- }
- addJQuery(main);
- function main() {
- $("ol li a").each(function(){$(this).html('<img src="http://rghost.ru'+$(this).attr('href')+'/thumb.png"/>')});
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement