Archived Comments (locked)

in
Subscribe to Archived Comments 21 posts, 12 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
JoeSimmons Scriptwright

It's now sorting by fans not install count.

 
w35l3y Scriptwright

Change:

date = scripts[i].getElementsByTagName('created-at')[0].textContent.replace(/[T:Z]/g, "-").split("-");
days = Math.ceil(new Date(new Date() - new Date(date[0], date[1]-1, date[2], date[3], date[4], date[5], 0).getTime()) / (24*60*60*1000));

To:

date = Date.parse(scripts[i].getElementsByTagName('created-at')[0].textContent.replace(/[TZ]/g,' ').replace(/-/g,'/'));
days = Math.max(Math.ceil((new Date() - date) / (24*60*60*1000)),1);

 
znerp Script's Author

Well I've tried this on a XP and Vista, ff2 and ff3, and I can't seem to replicate this problem. So to be honest, I really don't know what I can do about this.

 
Avindra V.G. Scriptwright

this happens with me as well... if there is a script with 0 installs, the rate for that is messed up, and consequently, the total rate shows up as NaN (not a number)

 
znerp Script's Author

Ok, I've just created a test script and immediately checked back to my scripts page. It showed up as (0/day).

You're not being particulatrly helpful here ... does this only happen for you for scripts with zero installs, or can you see if there's some threshold time whereby it will appear as NaN/day before this time, and 0/day after this time?

 
JoeSimmons Scriptwright

http://i37.tinypic.com/20aow35.png

 
znerp Script's Author

Well you're going to have to give me more details than that, Joe.

I've looked at your scripts, and the one I think you might be referring to (2 hours old, zero installs) is showing up as (0/day). If you give me some way of replicating this problem I might be able to fix it.

 
JoeSimmons Scriptwright

(NaN/day)
Please fix this. It's putting the scripts that aren't even a day old up at the top of the sorting list.

 
znerp Script's Author

@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.

 
JoeSimmons Scriptwright

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.

 
steeev Scriptwright

cool script! thanks! :)

 
znerp Script's Author

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

 
ekbworldwide Scriptwright

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.

 
mugzy User

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

 
pandaking User

Not working for me?!

 
znerp Script's Author

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

 
norz User

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.

 
znerp Script's Author

@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.)

 
FryGuy Scriptwright

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

 
deodrus Scriptwright

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

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel