我正在尝试构建一个Chrome扩展,它在地址栏中以图标的形式出现,当被点击时,它会在页面上的所有元素上设置contenteditable=true,然后当再次点击时,它会将它们设置回contenteditable=false。
然而,我在第一个障碍时就倒下了…该图标甚至没有出现在地址栏中。
这是我的清单文件:
{
"name": "Caret",
"version": "1.0",
"description": "Allows you to edit the content on any we
我的扩展正在使用页面操作(仅在twitter.com上可用),我希望在地址栏中使图标可见(并且功能至少为空),但我无法使其工作。我使用了并对其进行了修改,使其如下所示:
contentscript.js:
// Called when the url of a tab changes.
if(chrome.tabs.query(active(true),function{
// If the url is twitter
( {'url':'https://google.com/google-results-string'}
if (chrome.t