Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

User Scripts Search Sorting - With Install Rate

Modified version of a script by Brad Stewart. Adds installs per day to scripts on userscripts.org, enables sorting by this as well as all other sorts from the original script.

See original script for more detailed information -- http://userscripts.org/scripts/show/7884

Scripts can be sorted by install rate, although only on a page-by-page basis, not the entire list like the new built-in functionality.

IMPORTANT! When searching scripts, the install rate is calculated as the total number of installs divided by the number of days since its last modification. The install rate for these is NOT calculated using the date scripts were created. However, the actual value is now displayed when looking at a user's scripts.

Update Log

24-March-2007: Two minor changes to the code. No change in functionality, just minor presentation things that were bugging me.
6-May-2007: Actual install rate calculated on user pages, new subheadings added to top of these pages. Also, tilde's now used to show where rates are approximate.
7-May-2007: Fixed to work with Userscripts.org - show new comments and installs.
14-May-2007: Now works when a user has a script with zero installs.
13-September-2007: Small fix to put the total install rate for users back where it should be.
26-December-2007: Changed so it now diplays well with the new look of the site, and removed functionality to sort by name, date, comments and installs.
2-October-2008: Fixed for users with multiple pages of scripts.

Known Issues

  • Some of the older scripts still don't have an accurate value, but there is no way of fixing this problem
  • Load time of values when looking at user's tables is at times sub-optimal
  • It would be possible to get actual install rates for every script, but the slow load time makes it unfeasible

Did this script help you? Please donate, but don't feel forced to! Make payments with PayPal - it's fast, free and secure!






1 point
login to vote
JoeSimmons scriptwright
Posted Oct 3, 2008 4:18am

Oh cool man. Thanks.

1 point
login to vote
znerp script's author
Posted Oct 2, 2008 7:22am

@JoeSimmons: That's my bad, I guess I hadn't tested it with users with multiple pages of scripts. It should work now, but it will only calculate overall rates (at the top of the table) for one page at a time. Same for sorting.

1 point
login to vote
JoeSimmons scriptwright
Posted Oct 2, 2008 2:24am

I'm getting this error on my own scripts...

Error: scriptsTable.getElementsByTagName("tr")[j + 1] is undefined

It says greasemonkey.js is the source, not your script. I know it is though because I can disable it and the error goes away.

1 point
login to vote
steeev scriptwright
Posted Jun 6, 2008

cool script! thanks! :)

1 point
login to vote
znerp script's author
Posted Mar 28, 2008

@ekbworldwide: I'm looking at your scripts and I'm not expriencing any problems. Have you noticed this with any other users scripts?

1 point
login to vote
ekbworldwide scriptwright
Posted Mar 28, 2008

Bug?

I have two scripts...

ekbworldwide's scripts – Userscripts.org
http://userscripts.org/users/39581/scripts

.. but only one showed up when I used an old version of your script. I just upgraded a few minutes ago - the problem persists. If I use the ff add-on IE tab - or disable your script - both scripts are visible.

1 point
login to vote
mugzy user
Posted Oct 18, 2007

Not working for me, here is the error from firebug.

scriptRows.getElementsByTagName("p")[2] has no properties
file:///C:/.../gm_scripts/userscriptssearchsorting.user.js
Line 50

and

scriptsTable has no properties
file:///C:/.../gm_scripts/userscriptssearchsorting.user.js
Line 47

1 point
login to vote
pandaking user
Posted Oct 3, 2007

Not working for me?!

1 point
login to vote
znerp script's author
Posted Sep 26, 2007

@norz: I don't know why this should be; it works fine for me. Is anyone else experiencing problems?

1 point
login to vote
norz user
Posted Sep 20, 2007

Couldn't make it work properly: I didn't see any extra links in the table headers, whereas I got them with the original script.
I see the nb of installs/day in the rows, though.

1 point
login to vote
znerp script's author
Posted Sep 14, 2007

@FryGuy: Glad you like the script, but I can't seem to replicate the bug you described. Can you give me specific details of such an example (the install count, how long ago a script was created and in what context you're viewing the script, ie. in a search, in a user's scripts etc.)

1 point
login to vote
FryGuy scriptwright
Posted Sep 13, 2007

Good script!
Bug: if the script was developed today, it shows the message 'NaN installs/day'

1 point
login to vote
deodrus scriptwright
Posted May 16, 2007

Another AWESOME script. Thank you very much!! This is one of the first things I looked for on userscripts. (^_^)

You could comment on this script if you were logged in.