Saturday, September 26, 2015

Jon Abrams' Blog - iOS “Open in Chrome” Bookmarklet

Jon Abrams' Blog - iOS “Open in Chrome” Bookmarklet: iOS “Open in Chrome” Bookmarklet
Today Google released Chrome for iOS (for free).

Already it’s pretty clear that it’s a much better browser than iOS’s default Safari browser. Unfortunately, even if you want to use Chrome, clicking a link in any other iOS app will launch Safari.

My current workaround is this bit of javascript that will launch the current page in Chrome. Just copy and paste it into a bookmark in Safari, then if you ever find yourself in Safari, but would rather be in Chrome, tap the bookmark and voila! You’re now in Chrome but on the same page!

javascript:location.href="googlechrome" location.href.substring(4);

Install instructions:

Copy the bit of code up there.
Bookmark this page.
Open the Safari bookmarks, click “edit”, and edit the new bookmark.
Rename it to “Open in Chrome” or something like that.
Delete the URL that’s there and paste in the above code.

No comments: