|
Script Summary:
Adds a "Most Popular Scripts" box to the userscripts.org front page -- updated and working again. |
this script has 2 topics, 52 posts |
This script has no reviews. |
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 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).





