<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on reddit commentroversy | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/31002</link>
    <description>Recent comments on userscript: reddit commentroversy</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>duplicate scores, replied by Matt Preston</title>
      <description>&lt;p&gt;Nice fix, worked for me too.&lt;/p&gt;</description>
      <pubDate>Thu, 19 Nov 2009 20:47:46 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:28583:191569</guid>
      <author>Matt Preston</author>
      <link>http://userscripts.org/posts/191569</link>
    </item>
    <item>
      <title>duplicate scores, replied by fiatpandas</title>
      <description>&lt;p&gt;Thanks&lt;/p&gt;</description>
      <pubDate>Fri, 07 Aug 2009 06:02:50 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:28583:155520</guid>
      <author>fiatpandas</author>
      <link>http://userscripts.org/posts/155520</link>
    </item>
    <item>
      <title>Opera, replied by trex279</title>
      <description>&lt;p&gt;Have done some (minor) edits to make it work with Opera. Can be found &lt;a href=&quot;http://userscripts.org/scripts/show/54679&quot;&gt;here&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 29 Jul 2009 16:17:14 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:31728:152035</guid>
      <author>trex279</author>
      <link>http://userscripts.org/posts/152035</link>
    </item>
    <item>
      <title>Problem when used along with Autopager plugin, replied by trex279</title>
      <description>&lt;p&gt;When autopager plugin is also used, commentroversy doesn't show the upvotes/downvotes for the newly loaded page below.&lt;/p&gt;</description>
      <pubDate>Wed, 29 Jul 2009 12:58:57 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:31729:151971</guid>
      <author>trex279</author>
      <link>http://userscripts.org/posts/151971</link>
    </item>
    <item>
      <title>Opera, replied by trex279</title>
      <description>&lt;p&gt;Any way to make this work in Opera? Does a port exist? Will be very grateful to those who can help.&lt;/p&gt;</description>
      <pubDate>Wed, 29 Jul 2009 12:54:11 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:31728:151969</guid>
      <author>trex279</author>
      <link>http://userscripts.org/posts/151969</link>
    </item>
    <item>
      <title>duplicate scores, replied by ohkine</title>
      <description>&lt;p&gt;I noticed today that my commentroversy scores are suddenly showing up three times for each comment instead of once. Looking at the source, it seems like reddit have added a bunch of extra spans to the 'tagline' that the script is picking up on. So, to fix it, change this line:&lt;/p&gt;

&lt;p&gt;    votes.insertAfter(tagline.find('.score'));&lt;/p&gt;

&lt;p&gt;to this:&lt;/p&gt;

&lt;p&gt;    votes.insertAfter(tagline.find('.unvoted'));&lt;/p&gt;

&lt;p&gt;just fyi&lt;/p&gt;</description>
      <pubDate>Thu, 11 Jun 2009 04:57:09 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:28583:131457</guid>
      <author>ohkine</author>
      <link>http://userscripts.org/posts/131457</link>
    </item>
    <item>
      <title>Causes freezing when there are a large number of comments, replied by the13thzen</title>
      <description>&lt;p&gt;Same problem. This would be a really useful script if it didn't cause the browser to break.&lt;/p&gt;</description>
      <pubDate>Thu, 16 Apr 2009 08:21:02 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:24844:111413</guid>
      <author>the13thzen</author>
      <link>http://userscripts.org/posts/111413</link>
    </item>
    <item>
      <title>Causes freezing when there are a large number of comments, replied by trunks7</title>
      <description>&lt;p&gt;When I go to a comment page with more than 100 or so comments, Firefox freezes for a couple seconds when I have commentroversy enabled.&lt;/p&gt;</description>
      <pubDate>Tue, 14 Apr 2009 14:48:23 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:24844:110927</guid>
      <author>trunks7</author>
      <link>http://userscripts.org/posts/110927</link>
    </item>
    <item>
      <title>Stopped working, replied by Stretch</title>
      <description>&lt;p&gt;hobo,&lt;/p&gt;

&lt;p&gt;Just tried this and works like a dandy.  Don't forget to copy the included pages over or you will have this script running on more than just the proper reddit pages.&lt;/p&gt;</description>
      <pubDate>Wed, 28 Jan 2009 04:21:19 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:20907:92548</guid>
      <author>Stretch</author>
      <link>http://userscripts.org/posts/92548</link>
    </item>
    <item>
      <title>Stopped working, replied by hobophobe</title>
      <description>&lt;p&gt;Edit: D'oh. Because of the javascript namespace and the fact that Reddit already is using jQuery, don't load it as part of the script.  Live and learn.&lt;/p&gt;

&lt;p&gt;Edit: Small change so if you &lt;code&gt;@include http://www.reddit.com/*&lt;/code&gt; it will display on story scores as well.
&lt;br /&gt;Edit: Added a proper header for the script per Stretch's comment&lt;/p&gt;

&lt;p&gt;-- if you use this, it should load before the Commentroversy script (put it higher in the Greasemonkey list) --&lt;/p&gt;

&lt;p&gt;Using jQuery (imported/downloaded when this script loads) I wrote this to manually add the ids for all of the comments.&lt;/p&gt;

&lt;p&gt;Could probably use some cleaning up.  Still, one hopes that the current state of Reddit will be amended to once again include ids in their markup and restore sanity to the (known) universe and premature code cleanup is for suckers.&lt;/p&gt;

&lt;p&gt;If you're bored feel free to improve on this.&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;// ==UserScript==
// @name           Reddit Add ids
// @description    Adds ids to comment scores
// @include        http://www.reddit.com/comments/*
// @include        http://reddit.com/comments/*
// @include        http://www.reddit.com/user/*
// @include        http://reddit.com/user/*
// ==/UserScript==

// Add jQuery
//var GM_JQ = document.createElement('script');
//GM_JQ.src = 'http://jquery.com/src/jquery-latest.js';
//GM_JQ.type = 'text/javascript';
//document.getElementsByTagName('head')[0].appendChild(GM_JQ);

// Check if jQuery's loaded
function GM_wait() {
    if(typeof unsafeWindow.jQuery == 'undefined') { window.setTimeout(GM_wait,100); }
else { $ = unsafeWindow.jQuery; letsJQuery(); }
}
GM_wait();

// All your GM code must be inside this function
function letsJQuery() {
  var IDed = $('.thing');
  for (var i = 0; i &amp;lt; IDed.length; i++)
  {
    if (IDed[i].className.indexOf('id-') == -1)
      continue;
    var classes = IDed[i].className.split(' ');
    var j = 0;
    for (; classes[j].indexOf('id-') == -1 &amp;amp;&amp;amp; j &amp;lt; classes.length;j++);
    var score = $(&quot;.tagline .score&quot;, IDed[i])[0];
    if (score != null)
      score.id = 'score_' + classes[j].substring(3);
  }
}&lt;/pre&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 28 Jan 2009 04:13:50 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:20907:92546</guid>
      <author>hobophobe</author>
      <link>http://userscripts.org/posts/92546</link>
    </item>
    <item>
      <title>Stopped working, replied by hobophobe</title>
      <description>&lt;p&gt;Not sure it's a concerted effort.  I'm wait and see on that one, could be they just made some changes without fully understanding the repercussions.&lt;/p&gt;

&lt;p&gt;Nonetheless, it's a pain to update the scripts.  Especially when you can only get at the id by class now.  Sigh.&lt;/p&gt;</description>
      <pubDate>Wed, 28 Jan 2009 02:18:48 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:20907:92533</guid>
      <author>hobophobe</author>
      <link>http://userscripts.org/posts/92533</link>
    </item>
    <item>
      <title>Stopped working, replied by Nicola Archibald</title>
      <description>&lt;p&gt;Looks like reddit has renamed the score text fields ID's from score_&amp;lt;name&gt; to just 'score likes' with no specific identifier as to the comment in question. Thus commentroversy no longer works.&lt;/p&gt;

&lt;p&gt;They've also killed off the undeletion ability, so it's looking like they're making a concerted effort to kill off the 'useful' userscripts.&amp;lt;/name&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 27 Jan 2009 23:44:47 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:20907:92503</guid>
      <author>Nicola Archibald</author>
      <link>http://userscripts.org/posts/92503</link>
    </item>
  </channel>
</rss>
