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

Userscripts Top Scripts

Adds a "Most Popular Scripts" box to the userscripts.org front page -- updated and working again.

This script displays the most popular scripts on userscripts.org in a box on the right-hand side of the main page. You can choose between showing the most popular scripts of all time, the most popular in the last week, or yesterday's most popular. You can display between 10 and 50 results, depending on your preference. The data are updated every 24 hours.

The way this works is that I have a Python script that runs daily on my web host and caches the download numbers for every script on userscripts.org (by parsing the script list from the front pages, it doesn't individually crawl each script's page). It keeps track of these numbers for each day, which allows me to determine how many times a script has been downloaded in a day, week, month, or whatever. After updating its data from userscripts.org, the script generates the stats table for the day.

The greasemonkey script also only downloads the statistics once a day and caches them on the user's local machine.

Update Nov. 28:

  • Adjusted to deal with the new front-page layout. Now replaces the "Recent Scripts" list on the right. The visual style totally doesn't match with the new layout, this will need to be changed in the future. Also, the "Recent Scripts" box is actually a useful feature, so suggestions on a better place to put the top scripts box are welcome.
  • I have blacklisted all of those annoying "scrap all" scripts
  • Sadly, while trying to fix some errors getting things running on my new host, I accidentally wiped the cached script data, so it'll be another week before all of the view are working properly. Sorry for the inconvenience.
Update Nov. 23: I have repaired this script, it is working again. The database and top scripts data are now on a different server, so the database has been wiped -- as such, the new scripts, top for the previous day and top for the previous week views will be meaningless for several days, until enough data have been collected for them to be generated properly. Also, there are a couple of scripts that have more installs than the #1 on the top downloads -- both listing over 2 million installs, which appears to be unreasonably inflated. These scripts have been blacklisted and will not be included in the top scripts lists.
Update Apr. 18: Updated to use your last selected display (new, yesterday, week, total) by default.
Update Apr. 15: Added tracking of new popular scripts. (The download numbers will show the most popular new scripts by downloads in the last week, though as of right now this has only been tracked for one day, so the numbers will increase over the next week)
Update Apr. 13: Added licensing info to the source & some aesthetic fixes by Aleksandar.
Update Apr. 11: Added ranking numbers beside script names.
Update Apr. 8: Various aesthetic fixes, thanks to Aleksandar Djurić.
Update Apr. 5: Fixed jumping to the top of the page when you change what the box displays. (Thanks to LouCypher).




Feb 5, 2008
arslan Scriptwright

hay m new here

 
Dec 23, 2007
Kashif Ali Scriptwright

Hi Friends this is Kashif Ali and im new user so plz tell me how can me use Scrap to all?? im not understand it so whoz help me abt that

 
Dec 2, 2007
nimd4 User

Is it not possible to limit results to English only?

 
Nov 29, 2007
Jesse Andrews Admin

I added a id for you on the main ul - id="mainmenu"

Feel free to email me with anything that would help your hacking... I would even run the python script locally for you if it helps.

 
Nov 28, 2007
Brad Stewart Script's author

Thanks Dust, it's fixed now. This is a bit of a quick, hackish fix, so it still needs to be adjusted some, but at least it works.

 
Nov 28, 2007
Dust User

Hi, and thanks for the script, I have noted 1 thing, practically i see that the page for the list of the script have changed:

Before was: http://userscripts.org/?page=*

Now is: http://userscripts.org/scripts?page=*

Am i wrong with something?

Thanks in advance and sorry for my bad english.

Stefano

 
Nov 28, 2007
Brad Stewart Script's author

Yeah, that's because the script hasn't been caching data for long enough yet, it should sort itself out in a few days.

 
Nov 26, 2007
Rudi Pittman Scriptwright

I'm clicking on the links at top for New Week Ever etc and nothing changes?

 
Sep 25, 2007
manixrock Scriptwright

The script is unworkable for 2 reasons:

1) The userscripts page has changed a bit, which is easily fixed by changing this line:
"sibling = rightDiv.getElementsByTagName("h5")[1];"
to this:
"sibling = rightDiv.getElementsByTagName("form")[0];"

2) This is the main cause, the author's website seems to be down: http://brad.bradmont.net/ so the script at http://brad.bradmont.net/nums.txt is returning a 404 response.

 
Sep 21, 2007
Desi User

still not working :(

 
Sep 6, 2007
ZAKhan User

Any update on this or any related script?

 
Aug 9, 2007
vOidSenses Scriptwright

userscripts.org changed some stuff in the main page which the script was dependable on, thats why nothing happens because on failing to have those elements the script fails and stops

 
Aug 8, 2007
Rudi Pittman Scriptwright

Script is DOA and needs to be updated apparently as it was working and recently stopped.

 
Aug 7, 2007
ZAKhan User

I installed the script and its not working.

 
May 3, 2007
Teecee User

Working now. Thank you.

 
May 2, 2007
Brad Stewart Script's author

Sorry for the downtime, guys... DNS issues. It should be back up some time this afternoon.

 
May 2, 2007
znerp Scriptwright

Unless I'm missing something glaring, this appears to have stopped working for me today too.

 
May 2, 2007
Teecee User

Is this working for anyone? I am getting google adds now on the right side.

 
Apr 23, 2007
Hey there st... User

Hi,

I just wanted to say thanks and good job real quick. When I first tried Greasemonkey a while ago, I actually gave up on it because I couldn't find any good scripts (and really didn't want to write - not to mention debug - everything from scratch). Your script is awesome. Thanks so much.

 
Apr 16, 2007
anony User

I was wondering why the webmaster didn't do that, i guess its because he wanted us to do it :)

Great feature! :D

 
Apr 14, 2007
dschoon Scriptwright

@Brad: Yeah, I totally agree. It'd be so much easier for them to just parse this out of the logs than for you to peck at their connection all day.

 
Apr 13, 2007
Aleksandar D... Scriptwright

Brad, GPL sounds great and thanks for including me in the script credits.

Looking forward to see Top Scripts as built in functionality on userscripts.org

 
Apr 12, 2007
LouCypher Scriptwright

No problems with me. It's fully your script anyway.

 
Apr 12, 2007
Brad Stewart Script's author

Hey Aleks and LouCypher, I forgot to put license info in the script before releasing it, and since you guys have contributed to it now, I need your permission to add that -- are you both OK with making it GPL'ed?

 
Apr 12, 2007
Brad Stewart Script's author

Aleks: Thanks for the patches. I'm away from home until tomorrow night, but I'll check them out when I get back.

Fedallah: I haven't got anything like that set up right now. I think it would be cool to do, but I don't really want to create that kind of traffic to my server. Ideally I think it would best to have that sort of thing built into userscripts.org (actually, ideally, this whole thing would be built into the site...)

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