Wednesday, November 4, 2009

Google Chrome Converts User Scripts into Extensions

A recent Chromium build added a feature that converts user scripts into extensions. Until now, Google's browser didn't provide an interface for adding and managing user scripts, so you had to manually copy the scripts to a folder.

"Lots of users still complain that Chrome does not support Greasemonkey user scripts. Even though we have had the infrastructure in place to handle user scripts for some time now, it has never been clear how the feature would relate to full extensions, and so it has remained incomplete," explains Aaron Boodman, a Google Chrome developer who created the Greasemonkey extension.

Now you can visit userscripts.org and any other site that links to Greasemonkey scripts and other flavors of user scripts, click on the link to a *.user.js file and install it in one click.



Like any other extensions, user scripts can be disabled or uninstalled by visiting chrome://extensions/ or selecting "Extensions" from the Tools menu.

This feature is only available in the latest Chromium builds, but it will soon be added to Google Chrome's dev channel, which already enables the support for extensions.

This week, Google released the first beta version of Chrome 4 for Windows, so the stable version should be available in the coming weeks. Chrome 4's major selling points should be the support for extensions and the long-awaited Mac & Linux ports.

Tuesday, November 3, 2009

Google Related Links, Second Edition

Google Related Links is a new Google Labs service that lets you add a list of related web pages and searches to your site. Unlike the homonymous service released by Google in 2006, the new Related Links restricts the results to your site.

"Related Links is a tool to help webmasters increase page views on their sites. Given a page on your site, Related Links can choose the most related pages from your site and show them in a gadget. You can embed this gadget in your page to help your users reach other pages easily. Related Links also suggests searches that users can run within your site to find even more related pages."

The service is not publicly available, but you can try a demo and ask for an invitation. "To apply for an invitation, please send an email to relatedlinks@google.com stating your Gmail address, website domains and approximate pageviews per day."

Once you get the invitation, log in using your Google account and click on "Manage Related Links". You'll be able to configure the gadget, customize the look and feel and enable some advanced features: highlighting the keywords from the page for visitors that come from a search engine, blacklisting web pages from the list of related links and removing prefixes or suffixes from titles.


After configuring the gadget, paste the code in one of your sites and test if it works well. If you edit the gadget's configuration, the changes are reflected instantly and you don't need to change the code.

Here's a screenshot that shows the related links and searches for a post about Google Voice.


The results are relevant, but there are some issues which show that the service is still in an early phase: there's an encoding bug when displaying page titles and links are only opened in a new window.

Monday, November 2, 2009

Preview Google's Search Results

Google added a new option to the web search toolbelt: page previews. If you click on "Show options" and select "Page previews" after performing a search, Google will show a longer snippet and a thumbnail for each search result.

Google's thumbnails include a small part of the page, so they aren't always helpful. Another issue is that all the thumbnails from a search results pages are merged and the resulting image doesn't load instantly.



Example: search results for [maps].

Google Tests a Clutter-Free Homepage

Google has been testing a new version of its homepage that hides the navigation links and the search buttons until you move your cursor. The page appears to load faster, it's less cluttered and better suited for searching, but it might confuse some users.

Search Engine Roundtable noticed an experiment that displayed "This space intentionally left blank" below the search box. Most likely, it's an attempt to explain that the page is already loaded.



Google's idea is interesting, but I don't think that it's really necessary to remove the navigational elements from a homepage that's already simple.

Some feedback for Google's help forum:

"The fade in thing is pointless, and I really would like my search buttons back. Yes, I can indeed hit return, but when I'm copying and pasting text into the search box using my mouse, I want to then move my mouse to click a button, and not have to put the mouse down to use the keyboard to hit return before going back to mousing. Small thing but *really* frustrating. Why take the buttons away? Some people like to click them, other people like to hit return, I tend to do both depending on whether I'm copy/pasting with the mouse or typing text in with the keyboard."

"Google's main page will no longer by my default browser homepage if they don't get rid of the fade. I hate it. Half the time I want to go to Gmail, and I have to move the mouse cursor over the window and wait a few seconds before I can click to go to Gmail. This is a loss of functionality in my mind. I love minimalism, but this just makes things worse."

"After considering for a week - I think I like it. The novelty is gone, but the simplicity of the interface ensures that I'm not distracted before I type my search term. I actually often use the box, type my query and press enter without ever moving my mouse. The interface is seamless and does everything I want it to do - getting me to results as quickly as possible. If I do need any other Google feature, they are still available just as quickly (perhaps the fade in on mouse movement should be just a touch faster). I appreciate this might not be a feature for the mainstream - but I would encourage you to at least keep it as an option. It embodies everything that keeps me using Google, simplicity with functionality."

{ The first image is licensed as Creative Commons by Barry Schwartz. }

Google Voice Stats

BusinessWeek found some information about Google Voice in a response to an inquiry from the Federal Communications Commission, an independent agency of the United States government:

"Google Voice, which provides people with a single phone number that can be used to reach them on their work, home, or cell phones, has 1.419 million users, according to the letter. Of those, 570,000 use it seven days a week, Google says."

The service is still limited to the US and it's available by invitation. Google Voice users can invite other users from the web interface.

Google now offers an additional version of the service for those who want to use their existing phone numbers. This version is more limited and it only offers voicemail-related features and international calling.

"Google Voice charges only for outbound calls to international locations; at present, fewer than 4% of all Google Voice users place outbound international calls," explains Google.

Google emphasizes that Google Voice is not a phone service, it's a Web-based software application. "Google Voice works with mobile phones, desk phones, work phones, and VoIP lines. There's nothing to download, upload, or install, and you don't have to make or take calls using a computer."

Why It's a Bad Idea to Send Huge Files by Email

Gmail has increased the maximum attachment size to 25 MB in June, but some people want to send larger files. Daniel wrote a thoughtful comment that explains why it's a bad idea to send huge files by email:
People who demand large message size limits rarely understand the limitations of the email transmission.

Because of the MIME encoding used when sending binary attachments, your files expand 33% when sent via email. In other words, a 15MB attachment requires 20MB plus the message text, plus message headers.

When you carbon copy 20 of your friends & coworkers, a separate message is sent to each. 20MB x 20 = 400MB. That's half a freaking CD.

If 5 of those friends are on the same small company email server, downloading those messages saturates the entire bandwidth of their T1 data line for nearly 9 minutes. Because each message has separate headers, it isn't easily cached and gets completely downloaded by each recipient.

Compare this to uploading the same attachment to a web server, FTP server, file transmission service like YouSendIt, or video streaming site like YouTube. One copy is uploaded. The download is typically 8-bit so minimal expansion factor. The small business' network can cache the content, so it's only downloaded once then fetched locally from the web caching server.

Bottom line, sending a large attachment via email is relocating using the U.S. Postal Service as your moving company. It is painful, limited, and expensive.

Link to a Page in Google's Document Viewer

Google's Document Viewer lets you preview PDF files, PowerPoint presentations and TIFF files without installing additional software. It's great for linking to documents available online and for embedding them in a site.

If you want to link to a certain page from your document, adjust the URL. This is the link generated by Google for a PDF file:

http://docs.google.com/viewer?url=http%3A%2F%2Finfolab.stanford.edu%2Fpub%2Fpapers%2Fgoogle.pdf

To load a specific page in the document, you need to add a hash to the end of the URL. Page IDs are numbered sequentially like this: :0.page.0, :0.page.1, :0.page.2...

So to load page #15 of the document, use this link:

http://docs.google.com/viewer?url=http%3A%2F%2Finfolab.stanford.edu%2Fpub%2Fpapers%2Fgoogle.pdf#:0.page.14

The same trick works for the embedded viewer:

http://docs.google.com/viewer?url=http%3A%2F%2Finfolab.stanford.edu%2Fpub%2Fpapers%2Fgoogle.pdf&embedded=true#:0.page.14

{ Thanks, Andy. }