<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on Flickr Titles + Descriptions Batch Tools | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/1379</link>
    <description>Recent comments on userscript: Flickr Titles + Descriptions Batch Tools</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Patch: Search + Replace Tags (regexp), replied by Anton Giguz</title>
      <description>&lt;p&gt;Thank you for your script, it saved me a lot of work.&lt;/p&gt;

&lt;p&gt;I thought it would be convenient to have Search + Replace functionality for tags, too. Moreover, I would like to use regular expressions for replacement, not just text.&lt;/p&gt;

&lt;p&gt;Here is a patch I made for myself and anyone who is interested. It adds &quot;Search + Replace Tags (regexp)&quot; link to the organizer page.&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;
diff -Naur flickr_titles__descripti.orig/flickr_titles__descripti.user.js flickr_titles__descripti/flickr_titles__descripti.user.js
--- flickr_titles__descripti.orig/flickr_titles__descripti.user.js      2009-08-08 13:08:52.000000000 +0000
+++ flickr_titles__descripti/flickr_titles__descripti.user.js   2009-08-12 23:17:32.000000000 +0000
@@ -184,6 +184,16 @@
 searchandreplacetitlesndesclink.setAttribute(&quot;href&quot;, &quot;&quot;);
 searchandreplacetitlesndesclink.addEventListener('click', searchandreplacetitlesndesclink_clickHandler, true);
 searchandreplacetitlesndesclink.innerHTML = 'Search + Replace Titles+Descriptions';
+
+var searchandreplacetaglink_clickHandler = function(event) {
+  searchandreplace(&quot;Tag&quot;);
+  event.preventDefault();
+}
+
+var searchandreplacetaglink = document.createElement(&quot;a&quot;);
+searchandreplacetaglink.setAttribute(&quot;href&quot;, &quot;&quot;);
+searchandreplacetaglink.addEventListener('click', searchandreplacetaglink_clickHandler, true);
+searchandreplacetaglink.innerHTML = 'Search + Replace Tags (regexp)';
 /* new stuff */
 
 
@@ -197,6 +207,8 @@
 toolsmenu.appendChild(document.createTextNode(' | '));
 toolsmenu.appendChild(searchandreplacedesclink);
 toolsmenu.appendChild(document.createTextNode(' | '));
+toolsmenu.appendChild(searchandreplacetaglink);
+toolsmenu.appendChild(document.createTextNode(' | '));
 toolsmenu.appendChild(appendtotitlelink);
 toolsmenu.appendChild(document.createTextNode(' | '));
 toolsmenu.appendChild(appendtodesclink);
@@ -317,6 +329,14 @@
       allTextareas[i].value = allTextareas[i].value.replace(repthis,reptext,'g');
     }
   }
+  if (command==&quot;Tag&quot;) {
+    allTextareas = document.getElementsByTagName('input');
+    for (var i = 0; i &amp;lt; allTextareas.length; i++) {
+      if ((allTextareas[i].getAttribute('id')) &amp;amp;&amp;amp; allTextareas[i].getAttribute('id').match(/^together_tags/)) {
+        allTextareas[i].value = allTextareas[i].value.replace(new RegExp(repthis),reptext,'g');
+      }
+    }
+  }
 
 
   enablesavebutt();
&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;The patch is for version 1.8.&lt;/p&gt;</description>
      <pubDate>Thu, 13 Aug 2009 09:08:14 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:33004:157833</guid>
      <author>Anton Giguz</author>
      <link>http://userscripts.org/posts/157833</link>
    </item>
    <item>
      <title>Archived Comments, replied by steeev</title>
      <description>&lt;p&gt;:)&lt;/p&gt;</description>
      <pubDate>Tue, 03 Jul 2007 20:59:21 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:13580:43486</guid>
      <author>steeev</author>
      <link>http://userscripts.org/posts/43486</link>
    </item>
    <item>
      <title>Archived Comments, replied by B10m</title>
      <description>&lt;p&gt;I was just about to write something similar. Luckily I checked userscripts.org first, for this is most likely a lot better than I'd write.&lt;/p&gt;

&lt;p&gt;Thanks a bunch!&lt;/p&gt;</description>
      <pubDate>Mon, 11 Jun 2007 20:34:45 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:13580:43487</guid>
      <author>B10m</author>
      <link>http://userscripts.org/posts/43487</link>
    </item>
    <item>
      <title>Archived Comments, replied by steeev</title>
      <description>&lt;p&gt;ive updated the script so its now compatible with flickr gamma&lt;/p&gt;</description>
      <pubDate>Fri, 14 Jul 2006 08:32:09 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:13580:43488</guid>
      <author>steeev</author>
      <link>http://userscripts.org/posts/43488</link>
    </item>
    <item>
      <title>Archived Comments, replied by steeev</title>
      <description>&lt;p&gt;ive updated the userscripts.org version of this script to scragz updated version. thanks again scragz.&lt;/p&gt;</description>
      <pubDate>Tue, 02 May 2006 09:57:38 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:13580:43489</guid>
      <author>steeev</author>
      <link>http://userscripts.org/posts/43489</link>
    </item>
    <item>
      <title>Archived Comments, replied by steeev</title>
      <description>&lt;p&gt;scragz has updated this script to work with ff 1.5 + gm 0.6.4
&lt;br /&gt;you can get his updated version here: &lt;a href=&quot;http://scragz.com/files/dump/2006-03-26/flickrtitlesdescriptions.user.js&quot;&gt;http://scragz.com/files/dump/2006-03-26/flickrt...&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 12 Apr 2006 03:38:26 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:13580:43490</guid>
      <author>steeev</author>
      <link>http://userscripts.org/posts/43490</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jesse Andrews</title>
      <description>&lt;p&gt;The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)&lt;/p&gt;</description>
      <pubDate>Wed, 17 Nov 2004 01:05:13 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:13580:43485</guid>
      <author>Jesse Andrews</author>
      <link>http://userscripts.org/posts/43485</link>
    </item>
  </channel>
</rss>
