<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on OkCupid paragraphify comments automatically | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/22956</link>
    <description>Recent comments on userscript: OkCupid paragraphify comments automatically</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Better version, replied by Jonatron</title>
      <description>This works better.  Don't make me fork it:
&lt;pre&gt;
unsafeWindow.addComment = function paragraphify(id) {

  var form = document.forms.namedItem(id);

  var text = form.elements.namedItem(&quot;text&quot;);

  text.value = '&lt;p&gt;' + text.value
  text.value = text.value.replace(/(\n+)/g,'&lt;/p&gt;&lt;p&gt;$1');
  text.value = text.value + '&lt;/p&gt;'

  addComment(id);

};

&lt;/pre&gt;</description>
      <pubDate>Thu, 12 Mar 2009 01:59:54 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:23048:101998</guid>
      <author>Jonatron</author>
      <link>http://userscripts.org/posts/101998</link>
    </item>
    <item>
      <title>Broken *sniff*, replied by Johan Sundstr&#246;m</title>
      <description>&lt;p&gt;Should be fixed again now; pardon my absence.&lt;/p&gt;</description>
      <pubDate>Fri, 16 Jan 2009 18:42:13 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:19163:90370</guid>
      <author>Johan Sundstr&#246;m</author>
      <link>http://userscripts.org/posts/90370</link>
    </item>
    <item>
      <title>Broken *sniff*, replied by Tanya Veverka</title>
      <description>OKC's most recent changes seems to have broken this script.  Now I just get a newline instead of a paragraph break.

It seems like it should put a new paragraph after the line breaks, instead of before?  If I just insert a &lt;p&gt; at the beginning of the new paragraph, it still works fine.  The script added one at the end of the preceding paragraph, which no longer works.

Or that's what I thought... I'm no script master :)&lt;/p&gt;</description>
      <pubDate>Thu, 18 Dec 2008 04:01:58 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:19163:84450</guid>
      <author>Tanya Veverka</author>
      <link>http://userscripts.org/posts/84450</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jonatron</title>
      <description>&lt;p&gt;@avg  &lt;/p&gt;

&lt;p&gt;Line breaks are not the same thing as paragraphs.  Usually you want paragraphs.&lt;/p&gt;</description>
      <pubDate>Wed, 01 Oct 2008 04:15:43 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:15363:63420</guid>
      <author>Jonatron</author>
      <link>http://userscripts.org/posts/63420</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jonatron</title>
      <description>&lt;p&gt;This looks like the same thing: &lt;a href=&quot;http://userscripts.org/scripts/show/34577&quot;&gt;http://userscripts.org/scripts/show/34577&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 01 Oct 2008 04:15:04 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:15363:63421</guid>
      <author>Jonatron</author>
      <link>http://userscripts.org/posts/63421</link>
    </item>
    <item>
      <title>Archived Comments, replied by Avindra V.G.</title>
      <description>&lt;p&gt;why not&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;  text.value = text.value.replace(/(\n{2,})/g,&quot;&amp;lt;br/&gt;&quot;);&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;by the description, that's exactly what you want
&lt;br /&gt;:D&lt;/p&gt;</description>
      <pubDate>Mon, 22 Sep 2008 04:40:24 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:15363:63422</guid>
      <author>Avindra V.G.</author>
      <link>http://userscripts.org/posts/63422</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jonatron</title>
      <description>&lt;p&gt;This should work on forums, too.&lt;/p&gt;</description>
      <pubDate>Mon, 22 Sep 2008 03:22:35 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:15363:63423</guid>
      <author>Jonatron</author>
      <link>http://userscripts.org/posts/63423</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jonatron</title>
      <description>&lt;p&gt;I'm not a javascript master, but I fixed it by changing to this:&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;
  text.value = '&amp;lt;p&amp;gt;' + text.value
  text.value = text.value.replace(/(\n+)/g,'&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;$1');
  text.value = text.value + '&amp;lt;/p&amp;gt;'
&lt;/pre&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 28 Jul 2008 03:03:03 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:15363:63424</guid>
      <author>Jonatron</author>
      <link>http://userscripts.org/posts/63424</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jonatron</title>
      <description>&lt;p&gt;The first paragraph should get a tag, too.&lt;/p&gt;</description>
      <pubDate>Mon, 21 Jul 2008 04:43:22 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:15363:63425</guid>
      <author>Jonatron</author>
      <link>http://userscripts.org/posts/63425</link>
    </item>
    <item>
      <title>Archived Comments, replied by Cornelius</title>
      <description>&lt;p&gt;This is great.  The site has a mind-bogglingly odd engine for handling journaling, and runon comments are very hard to read.  This script restores readability which the author put in but OKCupid would want to strip out.&lt;/p&gt;</description>
      <pubDate>Mon, 18 Feb 2008 01:51:05 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:15363:63426</guid>
      <author>Cornelius</author>
      <link>http://userscripts.org/posts/63426</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:28 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:15363:63419</guid>
      <author>Jesse Andrews</author>
      <link>http://userscripts.org/posts/63419</link>
    </item>
  </channel>
</rss>
