If I'm reading this right, it's also loading your login credentials from a local file?
Yes but that comes from m15o's original midnight.sh, you can find it down at 'read manual'. I had to copy the data from a cookie as directed, and sadly it might expire in a month.