Search code examples
google-chromegoogle-chrome-extension

Chrome Extension: How can I get global settings in preference


As you know that there are many entries in chrome://settings, is there any way that I can read the value in my extension JS code? e.g. get the "homepage", "account_info" etc.

The values present in the file names Preferences which locates in folder Google\Chrome\User Data\Default.

Thanks. Easton


Solution

  • Marco's answer stating you can't access settings is not entirely true.

    Chrome APIs provide access to some settings:

    and maybe the identity API can read account info.

    Homepage, though, is not directly accessible, as are many other settings. It is correct that this is done for security reasons.