<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on Show Image URL[superseded] | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/60423</link>
    <description>Recent comments on userscript: Show Image URL[superseded]</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Script superseded by new script, replied by GustavoG</title>
      <description>&lt;p&gt;Please note, I just uploaded a new script that fully restores the lost functionalities: one can again drag-and-drop, and use contextual menu to get the URL, search via TinEye, etc.&lt;/p&gt;

&lt;p&gt;  ---&gt; &lt;a href=&quot;http://userscripts.org/scripts/show/61779&quot;&gt;http://userscripts.org/scripts/show/61779&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 12 Nov 2009 03:05:05 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:39393:189384</guid>
      <author>GustavoG</author>
      <link>http://userscripts.org/posts/189384</link>
    </item>
    <item>
      <title>Slight tweak to change position of link, replied by GustavoG</title>
      <description>&lt;p&gt;Thanks gingerbeardman. :)&lt;/p&gt;</description>
      <pubDate>Tue, 10 Nov 2009 18:38:13 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:39298:188930</guid>
      <author>GustavoG</author>
      <link>http://userscripts.org/posts/188930</link>
    </item>
    <item>
      <title>Slight tweak to change position of link, replied by gingerbeardman</title>
      <description>&lt;p&gt;I've made a second set of changes to maintain the positioning of the photo caption.&lt;/p&gt;

&lt;p&gt;1. newdiv attributes changed
&lt;br /&gt;2. additional CSS added for photoImgDiv&lt;/p&gt;

&lt;p&gt;Here's the full code:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;// ==UserScript==
&lt;br /&gt;// @name           Show Image URL
&lt;br /&gt;// @namespace      http://www.flickr.com/photos/gustavog
&lt;br /&gt;// @include        http://www.flickr.com/photos/*/*
&lt;br /&gt;// ==/UserScript==
&lt;br /&gt;var images = document.evaluate(
&lt;br /&gt;	'//div[starts-with(@id,&quot;photoImgDiv&quot;)]//img',
&lt;br /&gt;    document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
&lt;br /&gt;var image = images.snapshotItem(0);
&lt;br /&gt;GM_addStyle(&quot;div.photoImgDiv { position: relative; }&quot;);
&lt;br /&gt;var newdiv = document.createElement('div');
&lt;br /&gt;var urltext = '[URL]';
&lt;br /&gt;var text = document.createTextNode(urltext);
&lt;br /&gt;var	link = document.createElement('a');
&lt;br /&gt;link.setAttribute('href', image.src);
&lt;br /&gt;link.appendChild(text);
&lt;br /&gt;newdiv.appendChild(link);
&lt;br /&gt;newdiv.setAttribute('style', 'position:absolute;right:0;top:-1.75em;');
&lt;br /&gt;image.parentNode.appendChild(newdiv, image);
&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 10 Nov 2009 15:52:00 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:39298:188901</guid>
      <author>gingerbeardman</author>
      <link>http://userscripts.org/posts/188901</link>
    </item>
    <item>
      <title>Slight tweak to change position of link, replied by gingerbeardman</title>
      <description>&lt;p&gt;I've added the following code, after newdiv.appendChild(link)&lt;/p&gt;

&lt;p&gt;&lt;code&gt;newdiv.setAttribute('style', 'left:470px;position:relative;top:-395px;');&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This will position the [URL] link above the top right of the image, at the right of the other Flickr tools/buttons.&lt;/p&gt;

&lt;p&gt;Hopefully somebody else will find this useful.&lt;/p&gt;</description>
      <pubDate>Tue, 10 Nov 2009 15:35:01 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:39298:188898</guid>
      <author>gingerbeardman</author>
      <link>http://userscripts.org/posts/188898</link>
    </item>
  </channel>
</rss>
