Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google chrome 使用chrome扩展将OLAK聊天窗口添加到任意url?_Google Chrome_Google Chrome Extension - Fatal编程技术网

Google chrome 使用chrome扩展将OLAK聊天窗口添加到任意url?

Google chrome 使用chrome扩展将OLAK聊天窗口添加到任意url?,google-chrome,google-chrome-extension,Google Chrome,Google Chrome Extension,我想做一个chrome扩展,包括在点击浏览器操作按钮的任何网页上添加一个olark窗口。olark客户支持不确定这是否可行,但认为可能。这有什么原因不起作用吗 我一直在用 document.body.appendChildscript;方法添加olark代码段,这是合理的方法吗?是的,您可以在myscript.js中使用document.body.appendChildscript,并使用content_scripts字段将其注册到扩展清单中:content_scripts:[{matches:

我想做一个chrome扩展,包括在点击浏览器操作按钮的任何网页上添加一个olark窗口。olark客户支持不确定这是否可行,但认为可能。这有什么原因不起作用吗

我一直在用
document.body.appendChildscript;方法添加olark代码段,这是合理的方法吗?

是的,您可以在myscript.js中使用document.body.appendChildscript,并使用content_scripts字段将其注册到扩展清单中:content_scripts:[{matches:[http://*/*,https://*/*],js:[myscript.js],…请参阅链接上的参考信息:谢谢!我一直在使用标记,您上面列出的标记是否有优势?:-匹配任何以允许的方案http、https、文件、ftp或chrome扩展名http://*/*:-匹配任何使用http方案的URL https://*/*:-匹配任何使用https方案的URLE