<?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>Stefan&#039;s Stuff &#187; Script</title>
	<atom:link href="http://blog.epyon-1.com/tag/script/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.epyon-1.com</link>
	<description>Anything I feel like sharing.</description>
	<lastBuildDate>Thu, 08 Jul 2010 20:59:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<atom:link rel='hub' href='http://blog.epyon-1.com/?pushpress=hub'/>
		<item>
		<title>My first Greasemonkey Script</title>
		<link>http://blog.epyon-1.com/2009/07/02/my-first-greasemonkey-script/</link>
		<comments>http://blog.epyon-1.com/2009/07/02/my-first-greasemonkey-script/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 22:15:23 +0000</pubDate>
		<dc:creator>Stefan Dembowski</dc:creator>
				<category><![CDATA[Cool Stuff]]></category>
		<category><![CDATA[In Development]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[Greasemonkey]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://www.epyon-1.com/blog/?p=945</guid>
		<description><![CDATA[It&#8217;s been years since I did any Javascript programing, but I had a simple problem and decided to dive into it. Like many of the little programs I write, I had a &#8220;problem&#8221; and wanted to solve it. I wanted a convenient link on the photo page to cut and paste the short URL of [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-946" src="http://blog.epyon-1.com/files/2009/07/flickr_logo_gamma.gif" alt="flickr_logo_gamma" width="98" height="26" />It&#8217;s been years since I did any Javascript programing, but I had a simple problem and decided to dive into it.</p>
<p>Like many of the little programs I write, I had a &#8220;problem&#8221; and wanted to solve it.  I wanted a convenient link on the photo page to cut and paste the short URL of FLickr Images.  Look at this URL for a nice photo my wife took:</p>
<p><a href="http://www.flickr.com/photos/s_d/3665619548/" target="_self">http://www.flickr.com/photos/s_d/3665619548/</a></p>
<p>As a URL goes, not too bad, but suppose you wanted to insert the link in<br />
Twitter or Facebook? It’s a little verbose.  Wouldn’t this be better?</p>
<p><a href="http://flic.kr/p/6zVfZ3" target="_self">http://flic.kr/p/6zVfZ3</a></p>
<p>Yep, I think so too and so does Flickr:<br />
<a href="http://www.flickr.com/services/api/misc.urls.html#short" target="_self">http://www.flickr.com/services/api/misc.urls.html#short</a><br />
<a href="http://www.flickr.com/groups/api/discuss/72157616713786392/" target="_self">http://www.flickr.com/groups/api/discuss/72157616713786392/</a><br />
This thread showed how to do it: <a href="http://www.flickr.com/groups/api/discuss/72157616713786392/" target="_self">http://www.flickr.com/groups/api/discuss/72157616713786392/</a></p>
<p>The FlickrBase58 function in the script was written entirely by &#8216;Xenocryst @ Antares Scorpii&#8217;<br />
<a href="http://www.flickr.com/people/antares/" target="_self">http://www.flickr.com/people/antares/</a></p>
<p>Other than reformating, taken verbatim from link here<br />
<a href="http://www.flickr.com/groups/api/discuss/72157616713786392/72157620673064673/" target="_self">http://www.flickr.com/groups/api/discuss/72157616713786392/72157620673064673/</a></p>
<p>The Original way *I* wrote it was to retrieve the HTML, Parse it for<br />
&lt;link rev=&#8221;canonical&#8221; type=&#8221;text/html&#8221; href=&#8221;http://flic.kr/p/6zVfZ3&#8243; &gt;</p>
<p>And use that link. While fun to write, that&#8217;s the wrong way to do it so I rewrote it to use the function written by <a href="http://www.flickr.com/people/antares/" target="_self">&#8216;Xenocryst @ Antares Scorpii&#8217;</a> .  When installed on Firefox running the <a href="http://www.greasespot.net/" target="_self">Greasemonkey extension</a>, it will insert a link on the page on the right side just under &#8220;Flag your photo&#8221; that says:</p>
<p>The Flic.kr link is: <a href="http://flic.kr/p/6zVfZ3">http://flic.kr/p/6zVfZ3</a></p>
<p>This will allow you to right click the URL, copy it and paste into Twitter or Facebook.</p>
<p>Here  <a href="http://www.epyon-1.com/gm/flic.kr_link.user.js">is the script</a>.</p>
<p>NOTE: I&#8217;m pretty certain it&#8217;s harmless, but use at your own risk. It&#8217;s hardly great programming and I&#8217;m sure someone else would have done it too, if not better.</p>
<p><span style="font-weight: bold">Music I&#8217;m listening to right Now:</span><br />
&#8220;<span style="font-style: italic">Paralyzer </span>&#8221; by Finger Eleven from the &#8220;<a href="http://www.amazon.com/exec/obidos/ASIN/B000MV8CZW/stefansstuff-20" target="_blank">Them VS. You VS. Me</a>&#8221; Album.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.epyon-1.com/2009/07/02/my-first-greasemonkey-script/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc
Database Caching 5/12 queries in 0.001 seconds using apc
Object Caching 195/206 objects using apc

Served from: blog.epyon-1.com @ 2010-07-31 06:35:00 -->