Trying to adapt the hack fot the new version isn't easy because the notes in this thread lack any reference to position other than line numbers. I've managed to correctly position the code for ammendments but not for the original registration.
I personally use an editor which can show differences between several files. For linux, I recommend meld. There are some alternatives for windows users, for example this www.compareandmerge.com/ (have not tried this one)
Open a hacked file to a comparison editor with the file which you have, and it is quite straightforward to see where you need to insert the code from the hack.