Advanced settings button reprogrammed

So that it will work in Google Docs.
Introduced a flag to turn off local storage

Since it breaks Google Docs.