I use the greasemonkey scripts from the KoL wiki is it different than KoLmafia, is it possible to use that Automatic Dwaven Factory puzzle completer download with greasemonkey?
No, Master Soshi, Mafia functionality has nothing to do with GreaseMonkey.
If you want the Mafia script, you need Mafia.
Z has a special build (a bit faster and unstable than the official release, but it has our buffbot integrated in the list, so it may be more convenient). Mafia has a rather steep learning curve at the beginning, but it is a very powerful tool.
Wish I could help with a GM script but I did the quest manually, and I am not aware of any.
Please check the tools listed on wiki:
http://kol.coldfront.net/thekolwiki/index.php/Dwarven_Factory_Complex_Puzzle#External_Links