示例
浏览 Chrome 扩展程序示例 代码库中的示例。您可以使用这些教程了解扩展程序的工作原理,也可以将其作为构建自己的扩展程序的起点。
Multiple side panels
This recipe shows how to use sidePanel.getOptions() to retrieve the current side panel and switch between side panels.
Site-specific side panel
Shows how to display the side panel only on google.com using the Side Panel API.