Jason Mayes
unread,Sep 14, 2021, 7:25:20 PM9/14/21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to TensorFlow.js Discussion, sonin...@gmail.com, x x, Arman Oganesian
Please note, we no longer support Google Groups as we now have the TF Forum to ask questions like this - please consider starting a thread there if still unresolved.
As FYI you may need to also check your chrome extension manifest.json file has correct permissions to load external scripts etc in else it will be blocked by default and you wont be able to use 3rd party JS in your extension at runtime. Here is an example I made that works for me:
{
"manifest_version": 2,
"name": "AppName",
"description": "Blah",
"version": "1",
"permissions": [
"activeTab",
"declarativeContent",
"webRequest",
"webRequestBlocking",
"<all_urls>",
"storage",
"tabs",
"videoCapture",
"audioCapture"
],
"background": {
"page": "background.html",
"persistent": true
},
"browser_action": {
"default_title": "TFJS Example"
},
"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["main.js"],
"css": ["style.css"],
"run_at": "document_start",
"all_frames": true
}
],
"commands": {
"_execute_browser_action": {
"suggested_key": {
"windows": "Ctrl+Shift+S",
"mac": "Command+Shift+S",
"chromeos": "Ctrl+Shift+S",
"linux": "Ctrl+Shift+S"
}
}
},
"web_accessible_resources": [
"yourscripts.js"
]