My Opera is closing 3rd of March

Confessions of a Web Developer

Bookmarklet: preview current page in Opera Mini

, , ,

Haarvard just posted how to create a link to preview a site in the Opera Mini simulator. This is great for sites that want to spread awareness of Opera Mini, but it would also be very useful for web development. The link structure is simple enough, I realized it would be easy to create a bookmarklet.

I have one here. I wanted to create it as a link, so you could just drag it to your personal bar, but the blog software doesn't allow JavaScript links. (That's probably for the best, safety-wise, since allowing them could open the site up to cross-site scripting vulnerabilities.)

So, what you'll have to do is add a new bookmark, name it "View in Opera Mini" and paste the following into the address field:
javascript:location.href='http://www.operamini.com/demo/?url='+document.location.href;
I've tested this with both Opera and Firefox. It should probably work with IE and Safari as well. Basically anything that supports both Java and JavaScript, and allows JavaScript bookmarks.

Thoughts on Speed DialSafari on Windows: What effect will it have on Opera?

Comments

gun Wednesday, May 23, 2007 2:42:46 PM

Too complicated. Just install this button to do the same (works in Opera only):
button

Write a comment

New comments have been disabled for this post.