Swap Stereoscopic Image Parts

I wrote a silly bookmarklet for swapping the two halves of stereoscopic images on a web site—to turn normal stereoscopic images to cross-eyed-viewable images.

javascript: var i,im,ims = document.getElementsByTagName('img'),j=ims.length; for(i=0;i<j;++i){im=ims[i]; with(im.style){paddingTop=im.height+'px'; backgroundImage='url('+im.src+')'; backgroundPosition=(im.width/2)+'px 0%'; height='0px';}} void(0);

(Only tested in Chrome, but bound to work in a few other browsers.)

Advertisements
This entry was posted in Computers en internet. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s