Chrome

I recently got annoyed by the fact that Google Chrome couldn’t open iTunes links in the iTunes app on my Mac, so I decided to look for a solution.

I haven’t been following Chrome’s (numerous) updates in quite a while, so I don’t remember when the app got a redesigned Settings page. In spite of the cleaner look, though, there’s still an option to manage “protocol handlers”, which are the settings that determine how Chrome should work with webpages that request to open other applications installed on a computer, such as Apple’s iTunes Preview website and iTunes. (more…)

Chrome for iOS was updated yesterday with a couple of new features, and considering it’s become my daily browser on all my devices, I thought I should try them out.

The most notable addition is full-screen viewing for the iPhone version. As you scroll down a page, the Omnibox gets hidden; to view it again, simply swipe down anywhere on a webpage. I like the implementation, and I think Google is doing full-screen browsing better than Apple on iOS. More importantly, the status bar remains visible even with full-screen activated (I wish Rdio would do the same). I hope this initial iPhone-only full-screen mode will evolve into Google finally enabling a bookmarks bar on the iPad.

The other addition of version 26.0.1410.50 (I know, don’t ask) is printing. From the Print menu, you can now print webpages using AirPrint or Google Cloud Print. The changelog also mentions the possibility to save PDFs to Google Drive, and I find it curious that this functionality is hidden inside Google Cloud Print’s menu. MacStories readers know about my preference for PDFs and workflows to archive PDFs of webpages. Unfortunately, Chrome’s Drive integration leaves much to be desired: it kept timing out on my devices, and when it worked, a PDF was considerably reduced in quality (screenshot). I’ll keep using my own scripts to archive PDFs.

For a detailed overview of the update, I recommend reading Dan Moren’s piece for Macworld linked above.

Mar
13
2013

pythonista

In January, I tried to put together a bookmarklet to send the webpage currently open in Google Chrome for iOS to Apple's Safari. That turned out to be a surprisingly complex effort as Google didn't think offering an “Open In Safari” option would be a good idea, and the app's URL scheme produced some interesting results when opening and closing Chrome.

I was reminded of the bookmarklet this morning by reader @CNWLshadow, and I realized that I never posted the solution I settled with. It consists of a browser bookmarklet and a Pythonista script, and it works with just one tap.

(more…)

Chrome

Released earlier today, Google Chrome for iOS has been updated with built-in Messages sharing and a new menu to access previously-visited webpages.

Available from the Share menu in the top toolbar, Messages integration brings up a modal Messages window to send a webpage’s title and URL to someone else. This is a good addition – I’ve long relied on bookmarklets and third-party apps to forward Chrome links to Messages – but unfortunately one I’ll make little use of, as iOS doesn’t let you quickly address a message to a pre-defined group of contacts.1

I find the new History menu much more interesting for my daily Chrome workflow. Similarly to Safari, you can now tap & hold the Back/Forward buttons to show a list of websites you have navigated to; tapping on one will take you back to that page. Like Apple’s implementation, this is a per-tab history; unlike Safari, the list of pages is shown in a dropdown menu rather than a full-screen modal view (on iPhone).

(more…)

DraftsMessages

Last night, Tweetbot for iOS was updated with support for the Twitter 1.1 API, which, among various requirements, includes the need of linking a tweet’s timestamp – the date and time when it was sent – to its unique URL on twitter.com. In Tweetbot, you can now open the tweet detail view and tap on the timestamp to automatically open the Twitter website in your default browser; in terms of interaction, I like this change because it lets me open tweets in Google Chrome with just one tap.

In thinking about the update last night, I realized that:

  • My team and I use iMessage for daily communication;
  • The majority of URLs we share are Twitter URLs;
  • We all use Tweetbot on iOS and OS X;
  • Easier browser access means easier bookmarklet triggering;
  • Drafts can access iMessage.

And I concluded that:

  • I could chain every piece of the puzzle together;
  • Hopefully somebody else will find it useful and adapt the workflow to other similar scenarios.

Therefore, I created a browser bookmarklet, a Python script, and a Drafts action to automate the entire process and demonstrate how you can convert Twitter URLs to tweetbot:// URLs and send text from Pythonista to Drafts.

As usual, I am posting the following workflow as a proof of concept that you can modify and adapt to your needs. For instance, you can change the action that is triggered in Drafts, the x-success parameter that will be triggered, or the way Twitter links are converted to Tweetbot-specific URLs.

(more…)

Instapaper Text Bookmarklet As Safari Reader Replacement On Chrome for iOS

Ever since I switched to Chrome as my primary browser on OS X and iOS, several readers asked me if I was missing the Reader functionality of Safari. Not really, because it was an easily fixable problem for me.

I use Instapaper to save articles for later. I like the app and like its text parser. However, few people know that the Instapaper Mobilizer — used by apps like Tweetbot — can also be used as a bookmarklet in any modern browser. Simply head over this page and install the Text bookmarklet; running the bookmarklet on a webpage will display it using Instapaper’s parser, but it won’t add it to your Instapaper account.

When I’m on Chrome for iOS and I stumble across a webpage I want to read without other elements besides text, I type “text” in the address bar and tap the Text bookmarklet (remember, you have to type bookmarklet names in Chrome). The nice thing about the Instapaper bookmarklet is that it’s fast, accurate, and because it returns a regular URL, the Chrome tab showing the parsed text will also be synced back to the desktop.

Last, a quick tip: when reading with Instapaper’s text view, you can tap & hold the top bar showing a webpage’s title to copy its URL (something that Chrome makes ridiculously hard to accomplish).

Tweetbot 2.7, released today for the iPhone and iPad, comes with a new Browser setting to specify an external app for opening links. I have been testing the feature and I’m a big fan of this update.

In the Settings, you can now choose to open links directly in Safari, Google Chrome, or 1Password. There are two ways to do this: you can choose to keep opening links in Tweetbot’s own web view and then forward them to your browser of choice; or you can skip Tweetbot’s web view altogether and go directly to a different browser upon tapping a link.

Opening links in Safari and 1Password doesn’t have anything special to it aside from the fact that you’ll be taken out of Tweetbot and into another browser. The 1Password integration is particularly useful as it is, essentially, the same idea behind my bookmarklet, only available inside Tweetbot: if you see a link for a website that you also want to log into, you can use 1Password’s built-in browser to access it.

Using Chrome alongside Tweetbot is my new favorite option, as it leverages Chrome’s support for x-callback-url to enable a completely automated workflow to open Chrome and go back to Tweetbot. If you open a link in Google Chrome, a new tab will open showing a back button labeled “Tweetbot”; once you’re done reading, you can hit that button to automatically close the tab and be taken back to your position in the Tweetbot timeline. Chrome is smart in hiding the back button if you navigate to other pages from the Tweetbot-created tab; the browser also remembers the “special” tab if you switch to other tabs and then go back to the one created by Tweetbot. There’s a minor bug in this version that will redirect to the Tweetbot’s Timeline when you open a link from Mentions, but Tapbots is aware of it. For me, this is a very welcome addition to Tweetbot as it allows my two most-used iOS apps to better communicate with each other without requiring me to manually move between apps. I can get all the benefits of using an external browser (Facebook sharing, using bookmarklets) while still being able to go back to Tweetbot seamlessly.

For Flickr and Vine users, Tweetbot 2.7 also adds inline previews. Vine’s short videos are shown with a standard iOS video player that has a play/pause button.

Tweetbot 2.7 is a minor, yet useful update for Chrome and 1Password users who have been wishing the app could open links in other browsers. You can find the update on the App Store (iPhone, iPad).

A few weeks ago I switched back from Safari to Google Chrome. I wanted to give Safari a fair chance, especially after the introduction of iCloud Tabs, but, alas, the browser never “clicked” for me the way Chrome did. Worse, using Safari on a daily basis for work-related tasks became an unsafe bet, as it was crashing too often, taking several minutes to sync my iCloud Tabs, or generally hanging for no apparent reason. I’m still figuring out the ins and outs of Chrome — particularly how to handle the lack of a “default browser” option on iOS — but, so far, Chrome is working better for me.

One thing I miss from Safari is the ability to launch bookmarks in the Bookmarks Bar with a simple CMD+1…9 keyboard shortcut. I use a lot of bookmarklets (which, by the way, Chrome syncs faster than Safari across devices), and I’m too used to hitting CMD+2 for OmniFocus and CMD+4 for Pinboard to give up the convenience of quick bookmarklet activation. Unfortunately, Chrome uses Safari’s CMD-based shortcuts for switching between open tabs.

The solution was laying in my dock the whole time. As cleverly shown by Patrick Welker, you can use a Keyboard Maestro macro to assign a keyboard shortcut to what is, essentially, Keyboard Maestro’s own GUI scripting, only done with a visual workflow. Make sure to read Patrick’s post to see how you can create a simple macro to “click” a bookmark in Google Chrome.

For the non-Keyboard Maestro users, a solution is to actually use AppleScript GUI scripting to simulate clicking a bookmark’s name. Using something like the script below, you can use any launcher that supports assigning a keyboard shortcut to an AppleScript to quickly launch a Google Chrome bookmark.

tell application "System Events"
	tell process "Google Chrome"
		click menu item "pin" of menu "Bookmarks" of menu bar 1
	end tell
end tell

The script could use an error-checking system to see if Chrome is the frontmost application, but I avoided adding it because I know I won’t use the shortcut anywhere else.

As for Chrome on iOS: because the browser forces you to type out bookmarklet names to launch them, my suggestion is to use a standard prefix so you’ll be able to launch them easily from the iOS keyboard. For instance, I prepend “xx” to my most used bookmarklets, so Chrome for iOS will filter the names right away.

Personal Search Results In Google with CloudMagic and Evernote

Following my decision to switch back to Google Chrome as my default desktop browser, I have installed two extensions that are making Google search results more useful for me.

Last week, I installed the Evernote web clipper for Chrome, which was capable of displaying my own Evernote notes alongside Google’s search results. This means I can look for, say, “AppleScript iTunes” and likely find something that I had already clipped in Evernote in the past. It is a powerful addition when combined with Evernote’s new Related Notes feature; it also allows me (in the extension’s options) to make the thumbnail results open directly with the Evernote Mac app when clicked. Evernote announced yesterday the possibility to have the same kind of inline results with Safari.

The second addition is CloudMagic’s new extension, which I discovered today thanks to TechCrunch. MacStories readers know why I like CloudMagic:

CloudMagic is fast: it can search across thousands of indexed items in seconds, with results updating in real time. It is astonishingly accurate, even when it has to match a couple of words with, say, hundreds of tweets from last year or an Evernote PDF inside a nested notebook. I use CloudMagic on a daily basis to retrieve old tweets (as reference material), email messages, or notes; in fact, I would say the app has better search than Evernote’s iOS app. Which, by the way, is supported with an URL scheme – so you’ll be able to search notes and open them directly in the Evernote app.

The new CloudMagic extension is exactly what you think it is. Once installed, it’ll find results for your Google query by looking inside the accounts you’ve already configured with CloudMagic. By using both Evernote and CloudMagic, I can get Google results in an instant (the main Google search results load first), then get relevant results from my email inbox, Twitter accounts, Dropbox and Evernote notes, and more Evernote related notes thanks to Evernote’s different algorithm. I would say that 50% of my searches are for items that I have already saved in the past but that I have also likely forgotten about. CloudMagic and Evernote results in the browser allow me to keep using Google but also have my own results show up alongside the normal search I’m used to.

The updated CloudMagic extension is available here.