Update main script

I really love this script, found it online but it doesn't work with the new 2014 Facebook and all its security. Now it does assuming you don't have CodeGenerator turned on.