I saw this thread and decide to make a script. :)
Then Syphorlate show a very elegant solution for quadratic extrusion and I add it to the script.
This is the final version of this script. Any future development of smart extrusion is in Syphorlate hands.