2016-12-14 141 views
1

我为chrome创建了一个自定义扩展,并且它已成功安装,并且效果很好,但是我没有在右上角的选项菜单中看到它?自定义Chrome扩展没有显示?

我是否需要在manifest.json中包含其他内容,或者我需要编写更多需要显示的内容,因为我没有任何选项,它只是将Tampermonkey脚本转换为扩展名。

manifest.json

{ 
    "manifest_version": 2, 
    "name": "Name..", 
    "version": "0.7..", 
    "description": "Desc..", 
    "icons": { 
     "128": "icon_128.png" 
    }, 
    "author": "...", 
    "content_scripts": [{ 
     "exclude_globs": [], 
     "include_globs": ["*"], 
     "js": ["jquery-3.1.1.min.js", "myScript.user.js"], 
     "matches": ["https://example.com/*"], 
     "run_at": "document_start" 
    }], 
    "converted_from_user_script": true 
} 
+0

如果你不打算实际使用具备的能力'include_globs'(即用'“*”')或'exclude_globs'匹配所有内容,那么最好不要将它们包含在* manifest.json *中。如果不包含它们,那么匹配它们的处理将不需要在每个页面上进行。 – Makyen

+0

如果你没有选项或动作,为什么你要找一个UI界面来显示一些不存在的东西?你究竟在哪里*期待看到“它”?你期望看到什么(例如文字,图标)? – Makyen

回答