Chrome扩展程序:如何优先获得全局设置 [英] Chrome Extension: How can I get global settings in preference

查看:129
本文介绍了Chrome扩展程序:如何优先获得全局设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您知道chrome://settings中有很多条目,是否可以通过任何方式读取扩展JS代码中的值?例如获取首页",帐户信息"等.

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.

位于"Google \ Chrome \ User Data \ Default"文件夹中的"Preferences"文件名中的值.

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

谢谢. 伊斯顿

推荐答案

Marco的答案表明您无法访问设置并不完全正确.

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

Chrome API 可访问某些设置:

  • accessibility,
  • privacy settings,
  • font settings,
  • content settings,

,也许身份API 可以读取帐户信息.

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.

这篇关于Chrome扩展程序:如何优先获得全局设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆