<?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>Gatellier.be &#187; bookmarklet</title>
	<atom:link href="http://www.gatellier.be/blog/tags/marin/bookmarklet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gatellier.be/blog</link>
	<description>Interwebs with passion.</description>
	<lastBuildDate>Thu, 01 Jul 2010 12:17:25 +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://www.gatellier.be/blog/?pushpress=hub'/>
		<item>
		<title>Flic.kr Short URI Bookmarklet</title>
		<link>http://www.gatellier.be/blog/flickr-short-uri-bookmarklet/</link>
		<comments>http://www.gatellier.be/blog/flickr-short-uri-bookmarklet/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 12:43:20 +0000</pubDate>
		<dc:creator>Marin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[bookmarklet]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.gatellier.be/blog/?p=312</guid>
		<description><![CDATA[Voici donc le bookmarklet permettant de faciliter la copie des short URI flic.kr]]></description>
			<content:encoded><![CDATA[<p>Sur <a href="http://twitter.com/maxvoltar/statuses/2014913008">Twitter</a>, on voit apparaître un nouveau type de Short <abbr title="Uniform Resource Identifier">URI</abbr> associées à <a href="http://www.flickr.com/photos/marin-gatellier/">Flickr</a>.</p>
<p>Ces adresses web abbréviées sont incluses dans le code source de la page d'une photo (récente) mais <a href="http://twitter.com/fred_dela/statuses/2015593657">ne sont pas facile à copier/coller</a>.</p>
<p>Voici donc le <strong>bookmarklet</strong> permettant de faciliter la <strong>copie des short URI flic.kr</strong></p>

<p><strong><a style="padding:5px;border:1px solid #4960A3" href="javascript:void((function(){var%20a=document.getElementsByTagName('link');for(var%20i=0,j=a.length;i%3Cj;i++){if(a[i].href.indexOf(('flic.kr'))%3E-1){prompt('copy...',a[i].href);}}})());">Flic.kr</a></strong></p>

<p>Je rappelle&nbsp;: un bookmarklet est une micro application JavaScript qui s'installe en glissant un lien dans ses bookmarks.</p>

<p>Pour les curieux, voici le code&nbsp;:</p>
<pre class="brush: javascript;">
void((function(){
	var a=document.getElementsByTagName(&quot;link&quot;);
	for (var i=0,j=a.length;i&lt;j;i++){
		if(a[i].href.indexOf(('flic.kr'))&gt;-1){
			prompt(&quot;copy...&quot;,a[i].href);
		}
	}
})())
</pre><hr />
<p><small>© Marin for <a href="http://www.gatellier.be/blog">Gatellier.be</a>, 2009. |
<a href="http://www.gatellier.be/blog/flickr-short-uri-bookmarklet/">Permalink</a> |
<a href="http://www.gatellier.be/blog/flickr-short-uri-bookmarklet/#comments">4 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.gatellier.be/blog/flickr-short-uri-bookmarklet/&title=Flic.kr Short URI Bookmarklet">del.icio.us</a>
<br/>
Post tags: <a href="http://www.gatellier.be/blog/tag/bookmarklet/" rel="tag">bookmarklet</a>, <a href="http://www.gatellier.be/blog/tag/flickr/" rel="tag">flickr</a>, <a href="http://www.gatellier.be/blog/tag/javascript/" rel="tag">javascript</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.gatellier.be/blog/flickr-short-uri-bookmarklet/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
