<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on Empornium Show Popular | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/3651</link>
    <description>Recent comments on userscript: Empornium Show Popular</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Archived Comments, replied by jordi2k</title>
      <description>&lt;p&gt;I modded the code to work with the current site layout..&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
&lt;br /&gt;// --[greasemonkey meta data start]--
&lt;br /&gt;// title: Empornium Show Popular
&lt;br /&gt;// version: 1.1 beta
&lt;br /&gt;// created: 2008-04-01
&lt;br /&gt;// copyright: (c) 2008, jordi2k
&lt;br /&gt;// license: [url=GPL license]http://www.gnu.org/copyleft/gpl.html[/url]
&lt;br /&gt;// description: [url=Empornium]http://empornium.us[/url] is a members only **ahem** adult site. Use this script to show only torrents with high seedcount. Thx 2 Shannon 4 layout.
&lt;br /&gt;// --[greasemonkey meta data stop]--
&lt;br /&gt;//
&lt;br /&gt;// --------------------------------------------------------------------
&lt;br /&gt;//
&lt;br /&gt;// This is a Greasemonkey user script.
&lt;br /&gt;//
&lt;br /&gt;// To install, you need Greasemonkey: http://greasemonkey.mozdev.org/
&lt;br /&gt;//
&lt;br /&gt;// --------------------------------------------------------------------
&lt;br /&gt;//
&lt;br /&gt;// ==UserScript==
&lt;br /&gt;// @name          Empornium Show Popular
&lt;br /&gt;// @description   Shows only popular torrents with more than &quot;threshold&quot; seeds. You can change threshold ofcourse.
&lt;br /&gt;// @include       *empornium.us/*
&lt;br /&gt;// @exclude       http://forums.empornium.us/*
&lt;br /&gt;// ==/UserScript==&lt;/p&gt;

&lt;p&gt;(
&lt;br /&gt;   function() {
&lt;br /&gt;   	if(document.location.href.indexOf(&quot;browse.php&quot;) &gt;= 0) {&lt;/p&gt;

&lt;p&gt;   		var newCode = &quot;&quot;; // new HTML code for table
&lt;br /&gt;		var threshold = 30; // threshold for seedcount, lower than this will not be showed
&lt;br /&gt;      
&lt;br /&gt;   		var tables = document.getElementsByTagName(&quot;TABLE&quot;);        
&lt;br /&gt;	
&lt;br /&gt;		if(tables.length &gt;= 4) {&lt;/p&gt;

&lt;p&gt;			var row = tables[11].rows; //this table contains the torrentslisting
&lt;br /&gt;			var rowLength = row.length;&lt;/p&gt;

&lt;p&gt;			newCode='&lt;table&gt;';
&lt;br /&gt;			newCode='&lt;tr&gt;';
&lt;br /&gt;			newCode=row[0].innerHTML; // row contains type etc
&lt;br /&gt;			newCode='&lt;/tr&gt;';
&lt;br /&gt;			newCode='&lt;tr&gt;';
&lt;br /&gt;			newCode=row[1].innerHTML; // row contains torrents added date
&lt;br /&gt;			newCode='&lt;/tr&gt;';&lt;/p&gt;

&lt;p&gt;			for (var i=2; i&amp;lt; rowLength;i++) {
&lt;br /&gt;				if (row[i].cells.length != 10) {
&lt;br /&gt;					newCode+='&lt;tr&gt;';
&lt;br /&gt;					newCode+=row[i].innerHTML; // row contains torrents added date
&lt;br /&gt;					newCode+='&lt;/tr&gt;';
&lt;br /&gt;				}
&lt;br /&gt;				if (row[i].cells.length == 10) {&lt;/p&gt;

&lt;p&gt;					if (row[i].cells[7].textContent &gt;= threshold) { //cells7] contains seedcount&lt;/p&gt;

&lt;p&gt;						newCode+='&lt;tr&gt;';
&lt;br /&gt;						newCode+=row[i].innerHTML;
&lt;br /&gt;						newCode+='&lt;/tr&gt;';
&lt;br /&gt;					}
&lt;br /&gt;				}
&lt;br /&gt;			}
&lt;br /&gt;			newCode+= '&lt;/table&gt;';
&lt;br /&gt;			tables[11].innerHTML = newCode;
&lt;br /&gt;     		}
&lt;br /&gt;     	}&lt;/p&gt;

&lt;p&gt;   }
&lt;br /&gt;   )();
&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 01 Apr 2008 20:00:26 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:12286:32797</guid>
      <author>jordi2k</author>
      <link>http://userscripts.org/posts/32797</link>
    </item>
    <item>
      <title>Archived Comments, replied by Skorpinox</title>
      <description>&lt;p&gt;One more thing, you can set the i in the for loop to 1.&lt;/p&gt;</description>
      <pubDate>Fri, 19 May 2006 16:53:45 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:12286:32798</guid>
      <author>Skorpinox</author>
      <link>http://userscripts.org/posts/32798</link>
    </item>
    <item>
      <title>Archived Comments, replied by Skorpinox</title>
      <description>&lt;p&gt;You're right. I didn't notice that at first. The first four newCode+= lines are fine. The last three should be deleted/commented out. That works for me at least.&lt;/p&gt;</description>
      <pubDate>Fri, 19 May 2006 16:52:34 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:12286:32799</guid>
      <author>Skorpinox</author>
      <link>http://userscripts.org/posts/32799</link>
    </item>
    <item>
      <title>Archived Comments, replied by reddwarf</title>
      <description>&lt;p&gt;Thx for the response.
&lt;br /&gt;Related to changing += to =, doesn't that also remove the &quot;Type, Name,DL,etc&quot; and the &quot;Torrents added on&quot;?
&lt;br /&gt;It would be very nice to get the contents of subsequent pages but I don't know with userscripts how to do that.&lt;/p&gt;</description>
      <pubDate>Fri, 19 May 2006 06:23:44 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:12286:32800</guid>
      <author>reddwarf</author>
      <link>http://userscripts.org/posts/32800</link>
    </item>
    <item>
      <title>Archived Comments, replied by Skorpinox</title>
      <description>&lt;p&gt;Last comment, or so I hope. :-/ Is it possible to bring entries from subsequent pages that match the threshold to the first page and so on to fill up the extra space? Also rowLenght is supposed to be rowLength of course.&lt;/p&gt;</description>
      <pubDate>Wed, 17 May 2006 03:19:22 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:12286:32801</guid>
      <author>Skorpinox</author>
      <link>http://userscripts.org/posts/32801</link>
    </item>
    <item>
      <title>Archived Comments, replied by Skorpinox</title>
      <description>&lt;p&gt;Err, not used to how these comments work.  Anyways, all the newCode lines below var rowLenght = row.length; and above for (var i=2; i&amp;lt; rowLength;i++) { should be newCode= instead of newCode+= to avoid adding the first torrent by default. This caused torrents below the threshold to show up.&lt;/p&gt;</description>
      <pubDate>Wed, 17 May 2006 03:12:20 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:12286:32802</guid>
      <author>Skorpinox</author>
      <link>http://userscripts.org/posts/32802</link>
    </item>
    <item>
      <title>Archived Comments, replied by Skorpinox</title>
      <description>&lt;p&gt;newCode+='&lt;table&gt;';
&lt;br /&gt;newCode+='&lt;tr&gt;';
&lt;br /&gt;newCode+=row[0].innerHTML;
&lt;br /&gt;newCode+='&lt;/tr&gt;';
&lt;br /&gt;newCode+='&lt;tr&gt;';
&lt;br /&gt;newCode+=row[1].innerHTML;
&lt;br /&gt;newCode+='&lt;/tr&gt;';&lt;/p&gt;

&lt;p&gt;should be:&lt;/p&gt;

&lt;p&gt;newCode='&lt;table&gt;';
&lt;br /&gt;newCode='&lt;tr&gt;';
&lt;br /&gt;newCode=row[0].innerHTML;
&lt;br /&gt;newCode='&lt;/tr&gt;';
&lt;br /&gt;newCode='&lt;tr&gt;';
&lt;br /&gt;newCode=row[1].innerHTML;
&lt;br /&gt;newCode='&lt;/tr&gt;';&lt;/p&gt;

&lt;p&gt;to avoid posting the first torrent even if it's below the threshold.&lt;/table&gt;&lt;/table&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 17 May 2006 03:09:33 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:12286:32803</guid>
      <author>Skorpinox</author>
      <link>http://userscripts.org/posts/32803</link>
    </item>
    <item>
      <title>Archived Comments, replied by reddwarf</title>
      <description>&lt;p&gt;It's fixed and now works with firefox/greasemonkey.
&lt;br /&gt;If there are enough people wanting it to work for Opera, leave a comment and I will to some more updating :)&lt;/p&gt;</description>
      <pubDate>Sat, 06 May 2006 19:09:02 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:12286:32804</guid>
      <author>reddwarf</author>
      <link>http://userscripts.org/posts/32804</link>
    </item>
    <item>
      <title>Archived Comments, replied by reddwarf</title>
      <description>&lt;p&gt;Ah yes, now I see. It works perfect with Opera userscripts, but I will release the fixed version that also works with firefox greasemonkey in a couple days.&lt;/p&gt;</description>
      <pubDate>Wed, 03 May 2006 16:01:44 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:12286:32805</guid>
      <author>reddwarf</author>
      <link>http://userscripts.org/posts/32805</link>
    </item>
    <item>
      <title>Archived Comments, replied by acardinale</title>
      <description>&lt;p&gt;Does not seem to work.&lt;/p&gt;</description>
      <pubDate>Fri, 28 Apr 2006 19:58:37 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:12286:32806</guid>
      <author>acardinale</author>
      <link>http://userscripts.org/posts/32806</link>
    </item>
    <item>
      <title>Archived Comments, replied by reddwarf</title>
      <description>&lt;p&gt;Could you be more specific? In Firefox or Opera?&lt;/p&gt;</description>
      <pubDate>Wed, 19 Apr 2006 17:18:43 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:12286:32807</guid>
      <author>reddwarf</author>
      <link>http://userscripts.org/posts/32807</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jeremiah</title>
      <description>&lt;p&gt;Would be great.. except it does nothing ;-/&lt;/p&gt;</description>
      <pubDate>Sat, 15 Apr 2006 23:09:16 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:12286:32808</guid>
      <author>Jeremiah</author>
      <link>http://userscripts.org/posts/32808</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:00 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:12286:32796</guid>
      <author>Jesse Andrews</author>
      <link>http://userscripts.org/posts/32796</link>
    </item>
  </channel>
</rss>
