There seem to be methods to do this in Firefox and Google Chrome, what about Safari?
If there aren't any hidden settings to do this, is there a method to monitor the process so that when it quits a script could be ran? I'm thinking a script that calls a policy to replace the Safari folder with a packaged Safari folder would do the trick. This is for a lab so replacing the bookmarks and other settings is perfectly fine.