360 Secure SkillHub
360 安全技能中心

Chrome Extension Installer

该 Skill 面向 macOS 上的 Chrome 扩展安装,支持打开 Chrome 应用商店页面由用户确认、通过托管策略强制安装,以及从本地目录加载未打包扩展;需要扩展 ID、商店链接或本地路径,并涉及 sudo 写入系统策略。

ryanpwelliver-oss
ryanpwelliver-oss
热度 22.33
最近更新 2026-06-11 08:00:13
分类:自动化依赖:代码执行 / 联网浏览搜索 / 读写文件应用场景:自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add chrome-extension-installer
Metadata
name
chrome-extension-installer
description
Install a Chrome extension by ID or Chrome Web Store URL on this Mac.
user-invocable
true

Chrome Extension Installer

Installs Chrome extensions to the user's Chrome profile on Ryans-MacBook-Air-2.local.

Methods

Method 1 — Chrome Web Store URL (preferred)

Open the extension's Chrome Web Store page directly in the user's Chrome. User clicks "Add to Chrome."

open -a "Google Chrome" "https://chromewebstore.google.com/detail/<extension-id>"

Method 2 — Force-install via policy (no user click, macOS only)

For extensions that need silent install, use macOS Chrome policy. Requires the extension ID.

  1. Write the extension ID to Chrome's managed preferences:
EXTENSION_ID="<id>"
PLIST="/Library/Managed Preferences/com.google.Chrome.plist"
sudo defaults write "$PLIST" ExtensionInstallForcelist -array-add "$EXTENSION_ID;https://clients2.google.com/service/update2/crx"
  1. Relaunch Chrome — extension installs automatically.

Method 3 — Load unpacked (dev/local extensions)

# Open Chrome with the extension loaded from a local directory
open -a "Google Chrome" --args --load-extension="/path/to/extension"

Finding extension IDs

  • From Chrome Web Store URL: https://chromewebstore.google.com/detail/NAME/**<ID_IS_HERE>**
  • From installed extension: chrome://extensions → enable Developer Mode → ID shown under each extension

Known extensions on this Mac (Chrome Default profile)

  • html.to.design
  • Anima
  • Claude
  • Codex (OpenClaw Browser Relay)
  • Chrome Remote Desktop
  • YouTube Summary by Glasp

Notes

  • Method 1 is always safe — opens the store page, user approves.
  • Method 2 requires sudo and persists across Chrome updates.
  • The OpenClaw sandbox browser (profile=openclaw) is separate from the user's Chrome profile — extensions installed here do NOT appear there.