【发布时间】:2013-02-15 13:35:29
【问题描述】:
我需要一些帮助,我之前制作了一个自定义 .json 主题以用于 chrome。 无论如何,我的问题是关于“manifest_version 2”的事情。当我进入扩展程序并单击“加载未打包的扩展程序”时,我当前的以下代码一直有效,它会完美地应用我的主题,但直到今天它不再有效,我无法将我的主题应用到 Chrome。我唯一能想到的就是我猜 Chrome 更新了?
旁注:在编辑或了解 json 文件的词汇或这种编码如何工作时,我有点迷茫。因此,如果有人可以的话,您能否用外行人/特别是尽可能详细地告诉我,我必须更改下面以前工作的代码,以便它可以与这个 manifest_version 2 一起使用?基本上,我必须做些什么才能将我的主题重新应用到 chrome 上才能正常工作。
谢谢!
这是以前工作的 .json 代码
{
"version": "1.0",
"name": "02 Lancer Dark World",
"theme": {
"images" : {
"theme_frame" : "images/frame.png",
"theme_toolbar" : "images/toolbar.png",
"theme_ntp_background" : "images/background.png",
"theme_tab_background" : "images/tab.png"},
"colors" : {
"ntp_link": [25,110,172],
"ntp_text": [49,143,255],
"ntp_section_link": [89,4,255],
"ntp_section_text": [25 , 110 , 172],
"ntp_background": [10 , 17 , 27],
"frame": [10 , 17 , 27],
"toolbar": [10 , 17 , 27],
"tab_text": [93,205,255],
"tab_background_text": [82 , 127 , 204],
"bookmark_text": [49,143,255],
"button_background": [5, 23, 37]
},
"tints" : {
"buttons" : [0.6, 0.9, 0.4],
"frame_inactive": [0.5, 0.6, 0.1],
"frame_incognito_inactive": [0.5, 0.6, 0.1]
},
"properties" : {
"ntp_background_alignment" : "top",
"ntp_background_repeat": "no-repeat"
}
}
}
【问题讨论】:
标签: json google-chrome google-chrome-extension manifest google-chrome-theme