Script Summary: Change download links on SourceForge to direct ones.
Copyright: 2009-2010, Dmitry Marakasov <firstname.lastname@example.org>
2010-07-28: added copyright and license headers (the script is BSD licensed).
2010-03-01: the mirror is now set by default, thus you are no longer required to edit the script to use it. Still, you may need to change the mirror to the fastest one for your location.
2010-02-14: work on all pages under projects/, so "Download now" link in the summary is converted too
2009-11-09: work on all pages under projects/$NAME/files
2009-09-02: support https:// urls
2009-08-25: support files with only single directory level (project/XXX/filename in contrast to project/XXX/YYY/filename)
2009-08-20: the script was updated to handle new File Release System (with project/[many dirs] in URL)
2009-08-04: the script was updated to handle new URLs ending with /download.
Links in the `Download' section of any SourceForge project link not to files directly, but to immediate page `Your $PROJECTNAME download will start shortly...' which redirects you to one of the mirrors. This is not always convenient, as:
You can't copypaste links. Though links look like direct ones, they won't work unless followed from download page - this is no longer an issue, those links now work correctly (show immediate page when opened in browser, and redirect to real files when pasted into download tools).
- You need to wait extra time until the download starts.
- You need to select the mirror manually if you need a specific (fastest) one. You still can't select a mirror when copypasting a link.
Don't forget to change your favorite mirror in the source!