scripts save on exit and load on entry
Merge pull request #1599 from hifialanwu/master

#19488 scripts save on exit and load on entry