<?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>henry&#039;s blog &#187; gmaillastfmsig</title>
	<atom:link href="http://prehensile.co.uk/blog/?feed=rss2&#038;cat=27" rel="self" type="application/rss+xml" />
	<link>http://prehensile.co.uk/blog</link>
	<description></description>
	<lastBuildDate>Thu, 18 Feb 2010 18:01:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Gmail Last.fm Signature Greasemonkey script released</title>
		<link>http://prehensile.co.uk/blog/?p=10</link>
		<comments>http://prehensile.co.uk/blog/?p=10#comments</comments>
		<pubDate>Tue, 20 May 2008 16:37:12 +0000</pubDate>
		<dc:creator>Henry</dc:creator>
				<category><![CDATA[geekery]]></category>
		<category><![CDATA[gmaillastfmsig]]></category>
		<category><![CDATA[greasemonkey]]></category>

		<guid isPermaLink="false">http://prehensile.co.uk/blog/?p=10</guid>
		<description><![CDATA[Available from userscripts.org.
This has been knocking around in my head for a while, but I&#8217;ve finally got around to doing it: it&#8217;s a Greasemonkey script that fetches recently played information from last.fm, injects it into a sig file containing certain tokens (%artist% and %track% for now, example here) and inserts the whole lot as a [...]]]></description>
			<content:encoded><![CDATA[<p>Available from <a href="http://userscripts.org/scripts/show/26911">userscripts.org</a>.</p>
<p>This has been knocking around in my head for a while, but I&#8217;ve finally got around to doing it: it&#8217;s a Greasemonkey script that fetches recently played information from <a href="http://www.last.fm">last.fm</a>, injects it into a sig file containing certain tokens (%artist% and %track% for now, example <a href="http://www.prehensile.co.uk/greasemonkey/lastfmsig.txt">here</a>) and inserts the whole lot as a signature when you start composing a new Gmail message.</p>
<p>It&#8217;s pretty classic scratch-itch-ware, in that it does something that I wanted done in a way fairly specific to my needs &#8211; there&#8217;s no way to input your sigs directly and store on the local machine, for instance, because I wanted it to work across all the computers I use regularly and therefore use a remote sig. Likewise, because I don&#8217;t use Gmail&#8217;s rich formatting, I haven&#8217;t tested it in that context, though I doubt it&#8217;ll work there.</p>
<p>I&#8217;m setting it loose in the wild in the hope that it&#8217;ll prove useful  to people other than me, and the missing functionality can get added by people who need it!</p>
<p>First Greasemonkey script, and in fact the first relatively complex Javascript I&#8217;ve done for a while. I&#8217;m pretty happy with the way it turned out, and learnt a fair bit about JS while doing it. That said, I&#8217;m sure that there&#8217;s a lot wrong with it to the experienced eye; it is a bit of a collection of hacks ;)</p>
<p>Based on <a href="http://www.kryogenix.org/days/2006/07/11/gmail-random-signatures">Gmail: Random Signature Remote 1.0</a> by Stuart Langridge and <a href="http://blankcanvasweb.com/gmail2_html_sigs">Gmail HTML Signatures 1.07</a> by Jerome Dane.</p>
]]></content:encoded>
			<wfw:commentRss>http://prehensile.co.uk/blog/?feed=rss2&amp;p=10</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
