在Chrome扩展访问Chrome浏览器设置 [英] Access Chrome settings in Chrome Extension

查看:190
本文介绍了在Chrome扩展访问Chrome浏览器设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望开发一款Chrome扩展程序可以访问[扳手]的内容设置 - >选项 - >高级。那可能吗?我一直在寻找在 API页面并没有运气。任何想法?

I'm looking to develop a chrome extension that can access the Content Settings in [wrench] -> Options -> Under the Hood. Is that possible? I was looking on the API page and had no luck. Any ideas?

推荐答案

如果它的语言设置你后,你可以使用支持i18n通过在每个区域设置文件中定义不同的字符串,然后阅读它以获得浏览器语言在你的主脚本。

If it's the language settings you're after, you can use the i18n support to get the browser language by defining different strings in each locale file, then reading it in your main script.

它看起来并不像您可以获取字体设置,而不是通过Chrome的API最少。

It doesn't look like you can obtain the font settings, not through the Chrome APIs at least.

这篇关于在Chrome扩展访问Chrome浏览器设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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