<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Wizard&#039;s Blog &#187; Google Web History</title>
	<atom:link href="http://www.wizardstower.co.uk/wordpress/tag/google-web-history/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wizardstower.co.uk/wordpress</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 05 Apr 2010 17:59:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>My first Chrome extension &#8211; Google Web History Updater</title>
		<link>http://www.wizardstower.co.uk/wordpress/2010/02/06/my-first-chrome-extension-google-web-history-updater/</link>
		<comments>http://www.wizardstower.co.uk/wordpress/2010/02/06/my-first-chrome-extension-google-web-history-updater/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 20:13:54 +0000</pubDate>
		<dc:creator>Mr.Wizard</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[Google Chrome]]></category>
		<category><![CDATA[Google Web History]]></category>

		<guid isPermaLink="false">http://www.wizardstower.co.uk/wordpress/?p=1293</guid>
		<description><![CDATA[I&#8217;ve created my first extension for Google Chrome &#8211; Google Web History Updater! One of my favorite features of the Google Toolbar is that it records your browsing history in Google Web History.  If you don&#8217;t like that feature or are paranoid about Google keeping information about you then you might as well stop reading [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1296" class="wp-caption alignleft" style="width: 74px"><a href="http://files.wizardstower.co.uk/wordpress/wp-content/uploads/2010/02/icon.png"><img class="size-full wp-image-1296" title="Google Web History Updater extension icon" src="http://files.wizardstower.co.uk/wordpress/wp-content/uploads/2010/02/icon.png" alt="Google Web History Updater extension icon" width="64" height="64" /></a><p class="wp-caption-text">Google Web History Updater extension icon</p></div>
<p>I&#8217;ve created my first extension for Google Chrome &#8211; <a href="https://chrome.google.com/extensions/detail/ibhehjeahclandhcpbajhdfjeffnbcoa">Google Web History Updater</a>!</p>
<p>One of my favorite features of the Google Toolbar is that it records your browsing history in Google Web History.  If you don&#8217;t like that feature or are paranoid about Google keeping information about you then you might as well stop reading now.</p>
<p>The benefits of Google Web History are that Google uses your history to personalize your search results, and that you can track down a site you visited while on another computer.</p>
<p>Unfortunately Google Toolbar isn&#8217;t available in Chrome.  The reasons for this are fairly clear (Chrome doesn&#8217;t do toolbars at all because of its minimalist aesthetic) but I still missed my Google Web History.</p>
<p>Several people entered bug reports for adding Toolbar&#8217;s features to the browser, but I got tired of waiting and decided to try and make an extension that would update Web History.  I quickly hit a dead end and <a href="http://groups.google.com/group/chromium-dev/browse_thread/thread/8d31c1f2721a9465/">contacted the Chrome developers</a> to ask them for help.  They said there was no published API for updating Web History and suggested I reverse engineer the way Toolbar does it.  I couldn&#8217;t work out how to do it, and the developers said that the Toolbar team were thinking about making an official extension to do it, so I waited some more.</p>
<p>Then I read <a href="http://lifehacker.com/5458509/get-google-toolbars-features-without-the-toolbar">an article</a> that reminded me that some browsers (<a class="zem_slink" title="Opera Software" rel="homepage" href="http://www.opera.com">Opera</a>) have had this problem for a long time, and there was a solution available for them &#8211; <a href="http://userscripts.org/scripts/show/19741">the UseGoogleWebHistory userscript</a>.  This is a small javascript file that runs whenever a page loads, and sends the URL to Web History.  I could have converted the userscript to an extension pretty easily or even had the conversion done for me automatically using a <a href="http://blog.chromium.org/2010/02/40000-more-extensions.html">new feature of Chrome</a> but although the userscript worked, it didn&#8217;t work for <em>every </em>URL.  I couldn&#8217;t work out what was wrong with it, so I went looking for another solution.</p>
<p>It turns out that sending a URL to Web History is actually done as a side effect of asking Google for the PageRank of the URL.  This means that PageRank extensions like <a href="https://chrome.google.com/extensions/detail/pneoplpmnpjoioldpodoljacigkahohc">this one</a> actually do exactly what I want, except that they also take up space on the screen.</p>
<p>I ended up just modifying that extension (mostly just removing the UI) so I can&#8217;t take much credit, but the majority of the code is lifted from the Toolbar anyway.</p>
<p>In the end I got what I wanted &#8211; Chrome updating Web History.</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://googlesystem.blogspot.com/2009/10/how-google-uses-toolbar-data.html">How Google Uses the Toolbar Data</a> (googlesystem.blogspot.com)</li>
<li class="zemanta-article-ul-li"><a href="http://www.techcrunch.com/2009/08/26/google-toolbar-fail-doesnt-work-on-chrome/">Google Toolbar Fail; Doesn&#8217;t Work On Chrome</a> (techcrunch.com)</li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/1d768988-8652-4690-945f-ff9538ac4ced/"><img class="zemanta-pixie-img" style="border: none; float: right;" src="http://img.zemanta.com/reblog_c.png?x-id=1d768988-8652-4690-945f-ff9538ac4ced" alt="Reblog this post [with Zemanta]" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.wizardstower.co.uk/wordpress/2010/02/06/my-first-chrome-extension-google-web-history-updater/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
