1

我需要一些幫助,我之前有一個自定義的.json主題用於chrome。 不管怎樣,我的問題是關於「manifest_version 2」的事情。我現在的代碼一直工作,當我進入擴展並點擊「加載解壓後的擴展名」,它將完全適用我的主題,但直到今天它不再有效,我不能將我的主題應用到Chrome。我能想到的唯一的事情就是我猜chrome更新了?需要幫助應用自定義的Chrome json主題

備註:當涉及到編輯或知道json文件的詞彙或這種編碼的工作方式時,我有點遺憾。所以,如果任何人都可以,請問你幾乎可以通過layman /特別儘可能地告訴我必須改變到我之前工作的代碼中,以便它可以在這個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" 
} 
} 
} 

回答

1

將這個在頂部:

{ 「manifest_version」:2, 「版本」: 「1.0」,

完成