The link you provided does NOT link to any KM Macros. They are all AppleScripts.
Furthermore, for some strange reason he has embedded the scripts in a markdown file -- highly unusual.
IAC, to get to the AppleScript, you can just copy from the displayed Markdown page, or click on the "RAW" button to display plain text: