chrome-extensions-samples README

The project's README from github.com/GoogleChrome/chrome-extensions-samples. As one markdown file: README.md.

Chrome Extensions samples

Official samples for Chrome Extensions and the Chrome Apps platform. (Chrome Apps are deprecated. Learn more on the Chromium blog).

For more information on extensions, see Chrome Developers.

Explore samples

The directory structure is as follows:

You can also use the Samples page to discover extensions by type, permissions, and extension API.

Installation

To experiment with these samples, please clone this repo and use 'Load Unpacked Extension'. Read more on Development Basics.

Contributing

Please see the CONTRIBUTING file for information on contributing to the chrome-extensions-samples project.

License

chrome-extensions-samples are authored by Google and are licensed under the Apache License, Version 2.0.

chrome-extensions-samples (GoogleChrome/chrome-extensions-samples)

Searching Database…

这是什么?这是谷歌官方提供的一组 Chrome 扩展程序示例(以及旧版 Chrome 应用示例),用来演示如何使用各种扩展程序 API。
这是一个大型扩展程序,还是一堆独立的示例?这是一个仓库,里面按文件夹整理了许多相互独立的小型示例项目,而不是一个单独的扩展程序。
我该怎么试用其中的某个示例?先克隆仓库,然后在 Chrome 的 chrome://extensions 页面中,使用“加载已解压的扩展程序”选项加载某个示例文件夹。
运行这些示例需要什么特殊工具吗?除了 Chrome 浏览器之外不需要其他特殊工具。仓库本身使用 prettier 和 eslint 等 npm 脚本来维护代码,但运行示例并不需要它们。
Chrome 应用的示例还能用吗?不能再用了。Chrome 应用平台已被弃用,这些示例放在一个归档文件夹中,不再积极维护,也不再列出。
这些扩展程序在哪里运行?它们在 Chrome 浏览器中运行,通过开发者模式加载未打包的扩展程序即可。
我怎样找到针对某个 API 或权限的示例?README 中提供了一个示例页面,你可以按类型、权限或 API 浏览扩展程序,无需手动逐个翻找文件夹。
api-samples 和 functional-samples 有什么区别?api-samples 每个只涵盖一个 API 包;functional-samples 则是更完整的扩展程序,会组合多个 API 包来展示一个真实的功能。
manifest version 2 归档是做什么用的?archive/mv2 文件夹保存的是旧版 Manifest V2 扩展程序格式的相关资源,与当前的 MV3 示例分开存放。
Size
57.7 MB
Stars
17.8K
Updated
CommitOct 14
Age
14y
Commits · 90 Days