1

我需要一些帮助,我前段时间制作了一个自定义 .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"
}
}
}
4

1 回答 1

1

把它放在顶部:

{“manifest_version”:2,“版本”:“1.0”,

完毕

于 2013-04-01T02:48:59.473 回答