I created a profile through Browser Settings and installed some extensions. Later I've reloaded the profile (by specifying its folder name) and the extensions are gone, none of them appears to be installed anymore.
Aren't they saved inside the profile folder?
For your second question read this post from @Fox ,
maybe its what you need. Its in Russian, but you can
use translator. There is an example script too >