To download the version of Chrome for your operating system, visit This tutorial will cover some of the most commonly used shortcuts for browsing the Web with Google Chrome.
My conclusion is that we have three solutions: a) it’s not possible to create a straightforward Chrome-to-Safari bookmarklet b) it’s possible in another way that I haven’t explored or c) it’s possible with the x-callback-url hack, but in a different way.Chrome is a free web browser from Google available for both Windows and the Mac. But, in spite of the clunky process, a new tab with a “Safari button” is created nevertheless, allowing you to tap it to launch Safari and close Chrome’s extra tab. What is going on, exactly? Via JavaScript, we’ve forced Chrome to open a tab in itself, but doing so with x-callback-url inside a bookmarklet creates, for some reason, quite a strange behavior: the tab isn’t opened unless you close and re-open Chrome, therefore partially defeating the whole purpose of this bookmarklet, which is to quickly open a webpage in Safari. Safari will launch the link, closing the additional tab Chrome decided to open.Type the bookmarklet’s name, because Chrome has no bookmarks bar.This is a profoundly inelegant and ultimately flawed solution. Displaying x-source is needed per Google’s URL scheme specification the name you give to x-source will be displayed as a “back” button in Chrome (as shown in the image above). The trick, at least theoretically, is to use an encoded location.href string to call back Safari, which is registered for the scheme that Chrome, in this case, opens “externally”. javascript:window.location='googlechrome-x-callback://x-callback-url/open/?url='+encodeURIComponent(location.href)+'&x-source=Safari&x-success='+encodeURIComponent(location.href) Īs you can see above, we’re telling Chrome to open a new tab using… itself. I was inspired by Cormac Relf’s script, which I discovered yesterday when he showed me another script he made for Pythonista. What I ended up using is a hack – and a very curious one – to leverage Chrome’s support for x-callback-url to open a link back into Safari. But as It Turns Out™, doing this sort of trick in Chrome for iOS: In my case, these buttons stopped working 100 of the time a Chrome. Use the back/forward buttons on your mouse. Drag the window you opened in step 3 into the window you opened in step 1. Confirm that the back/forward buttons on your mouse work as intended in this new window. In testing various bookmarklet ideas, I thought that replacing googlechrome with http in Jon Abrams’ bookmarklet would force Chrome to send a link to Safari. Open a new Chrome window (not a tab) and navigate to any website. There’s no documented URL scheme on iOS for opening web links in Safari, except, well, the scheme itself. I figured I could make a bookmarklet to take the current webpage in Chrome and send it to Safari. Reader actions, and Chrome was giving an error when tapping on the downloadable files. I know there are ways to do Safari-to-Chrome, but I wanted the opposite: from Chrome back to Safari.
Today, I wanted to quickly send a URL from Chrome for iOS – my default browser – back to Safari.