Bookmarklet: preview current page in Opera Mini
Wednesday, May 23, 2007 12:04:30 AM
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:
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.







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