@different-ai/opencode-browser
Advanced tools
+12
-25
@@ -147,11 +147,20 @@ #!/usr/bin/env node | ||
| header("Step 3: Load Extension in Chrome"); | ||
| header("Step 3: Load Extension in Browser"); | ||
| log(` | ||
| Works with: ${color("cyan", "Chrome")}, ${color("cyan", "Brave")}, ${color("cyan", "Arc")}, ${color("cyan", "Edge")}, and other Chromium browsers. | ||
| To load the extension: | ||
| 1. Open Chrome and go to: ${color("cyan", "chrome://extensions")} | ||
| 1. Open your browser and go to: ${color("cyan", "chrome://extensions")} | ||
| (or ${color("cyan", "brave://extensions")}, ${color("cyan", "arc://extensions")}, etc.) | ||
| 2. Enable ${color("bright", "Developer mode")} (toggle in top right) | ||
| 3. Click ${color("bright", "Load unpacked")} | ||
| 4. Select this folder: ${color("cyan", extensionDir)} | ||
| 4. Select this folder: | ||
| ${color("cyan", extensionDir)} | ||
| ${os === "darwin" ? color("yellow", "Tip: Press Cmd+Shift+G and paste the path above") : ""} | ||
| 5. Copy the ${color("bright", "Extension ID")} shown under the extension name | ||
@@ -161,24 +170,2 @@ (looks like: abcdefghijklmnopqrstuvwxyz123456) | ||
| const openChrome = await confirm("Open Chrome extensions page now?"); | ||
| if (openChrome) { | ||
| try { | ||
| if (os === "darwin") { | ||
| execSync('open -a "Google Chrome" "chrome://extensions"', { stdio: "ignore" }); | ||
| } else { | ||
| execSync('xdg-open "chrome://extensions"', { stdio: "ignore" }); | ||
| } | ||
| } catch {} | ||
| } | ||
| const openFinder = await confirm("Open extension folder in file manager?"); | ||
| if (openFinder) { | ||
| try { | ||
| if (os === "darwin") { | ||
| execSync(`open "${extensionDir}"`, { stdio: "ignore" }); | ||
| } else { | ||
| execSync(`xdg-open "${extensionDir}"`, { stdio: "ignore" }); | ||
| } | ||
| } catch {} | ||
| } | ||
| log(""); | ||
@@ -185,0 +172,0 @@ const extensionId = await ask(color("bright", "Enter your Extension ID: ")); |
+1
-1
| { | ||
| "name": "@different-ai/opencode-browser", | ||
| "version": "1.0.1", | ||
| "version": "1.0.2", | ||
| "description": "Browser automation for OpenCode via Chrome extension + Native Messaging. Inspired by Claude in Chrome.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
50375
-0.59%1339
-1.18%