Random scripts that could be useful for QGIS users...
Look for the option "Download raw file" in the upper right corner.
Simply go to Processing Toolbox -> Scripts -> Add new script and select the file. (Or use "Create new script" option and copy-past the code, if the first option doesn't work.)