如何做一个简单的Chrome Extension用于网页截屏
Chrome extension是一个文件包,里面包含了一个配置文件manifest.json,以及一些用于Web开发的文件和资源 (HTML, JavaScript, CSS,等)。 参考原文: A Simple Chrome Extension to Save Web Page Screenshots to Local Disk Chrome Extension开发指南 Chrome Extension Overview Chrome Extension Debugging Chrome Extension Samples 如何实现网页截屏功能 看一下manifest文件: { "name": "Screenshot Extension", "version": "1.0", "description": "A simple screenshot extension", "background": { "persistent": false, "scripts": ["background.js"] }, "content_scripts": [ { "matches" : ["<all_urls>"], "js": ["content.js"] } ], "browser_action": { "default_icon": "camera.png", "default