Advertisement
Guest User

TumblrScriptTesting

a guest
Sep 11th, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var jQuery, $ = null;
  2.  
  3. function addJQuery(callback) {
  4.     var p = null;
  5.  
  6.     if(window.opera || window.navigator.vendor.match(/Google/)) {
  7.         var div = document.createElement("div");
  8.         div.setAttribute("onclick", "return window;");
  9.         p = div.onclick();
  10.     }
  11.     else {
  12.         p = unsafeWindow;
  13.     }
  14.  
  15.     jQuery = $ = p.jQuery.noConflict();
  16.     callback();
  17. }
  18.  
  19. var myFunction = function() {
  20.     $('.#header .iconic > a').css('background-image','url("http://i.imgur.com/2QmZG.png")!important');
  21.    
  22.         /*$('li.tab.iconic').each(function (i) {
  23.         var spanName = $(this).attr('id');
  24.         var toRemove = '_button';
  25.         var spanNameCrop = name.replace(toRemove,'');
  26.         $(this).append('<span class="tooltip_label">'+spanNameCrop+'</span>');
  27.         });*/
  28.         }
  29.  
  30. addJQuery(myFunction);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement