Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - // ==UserScript==
 - // @name WFFSFW
 - // @namespace pewpewpew
 - // @version 0.1
 - // @description enter something useful NO U
 - // @match http://wickedfire.com/*
 - // @match http://*.wickedfire.com/*
 - // @copyright 2012+, You
 - // ==/UserScript==
 - var imgArr = document.getElementsByTagName("img");
 - var imgPlaceholder = "http://colourlovers.com.s3.amazonaws.com/images/patterns/612/612625.png?1253841027";
 - for( var imgItr = 0; imgItr < imgArr.length; imgItr++ ){
 - toPlaceholder( imgArr[imgItr] );
 - imgArr[imgItr].onmouseover = function(){
 - toRealImage( this );
 - }
 - imgArr[imgItr].onmouseout = function(){
 - toPlaceholder( this );
 - }
 - }
 - function swappityswap( imageObject ){
 - var tmpHolder = imageObject.getAttribute( "src" );
 - imageObject.setAttribute( "src", imageObject.getAttribute( "srcx" ) );
 - imageObject.setAttribute( "srcx", tmpHolder );
 - }
 - function toPlaceholder( imageObject ){
 - if( imageObject.width == 0 || imageObject.height == 0 || imageObject.getAttribute( "src" ) == null ){
 - setTimeout( toPlaceholder, 100, imageObject );
 - return;
 - }
 - imageObject.setAttribute( "width", imageObject.width + "px" );
 - imageObject.setAttribute( "height", imageObject.height + "px" );
 - imageObject.setAttribute( "style", "background-image: url(" + imgPlaceholder + "); background-repeat: repeat;" );
 - imageObject.setAttribute( "realsrcpleasestandup", imageObject.getAttribute( "src" ) );
 - imageObject.removeAttribute( "src" );
 - imageObject.removeAttribute( "title" );
 - imageObject.removeAttribute( "alt" );
 - }
 - function toRealImage( imageObject ){
 - imageObject.setAttribute( "src", imageObject.getAttribute( "realsrcpleasestandup" ) );
 - imageObject.removeAttribute( "style" );
 - }
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment