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

5 random scripts

Shows 5 random scripts in the right hand column on the us.o (userscripts.org) front page

UPDATE 9-December-2007: Now displays again on script page.
UPDATE 5-September-2007: Fixed bug. Thanks to Yansky for noticing the bug and adding the fix to the comments.
UPDATE 12-July-2007: Few issues due to red and green announcements on us.o now fixed.

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






Oct 22, 2007
znerp Script's author

@viperesque: This script shows 6 scripts because that's how userscripts used to do their 5 random scripts before the redesign (see here, for example). Also, well spotted ... I'm surprised no one commented on this before now. Have a cookie.

 
Oct 22, 2007
viperesque User

I'm curious as to why this shows 6 scripts, but it's still great.

 
Sep 4, 2007
Yansky Scriptwright

You can fix the script by changing "sibling = rightDiv.getElementsByTagName("h5")[1];" on line 56 to "sibling = rightDiv.getElementsByTagName("h5")[0];"

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