没有合适的资源?快使用搜索试试~ 我知道了~
首页掌握Chrome扩展开发:从想法到实用工具
掌握Chrome扩展开发:从想法到实用工具
需积分: 10 15 下载量 158 浏览量
更新于2024-07-19
收藏 8.39MB PDF 举报
"《创建谷歌Chrome扩展》是一本专著,由Prateek Mehta撰写,深入探讨如何利用Google Chrome浏览器的强大功能来实现您的Web应用创新想法,将其转化为实用的Chrome插件。本书是Web开发领域的权威指南,适合想要提升技能并展示现代技术能力的开发者阅读。 在本书中,作者详细介绍了如何选择和利用Chrome扩展API,这是一个强大的开发工具,能够让你扩展浏览器的功能,为用户提供个性化的浏览体验。无论是对于初学者还是有经验的开发者来说,通过学习如何编写、测试和发布Chrome扩展,你可以将原有的Web开发技能以一种前沿的方式来呈现。 作者会指导你如何设计用户界面,处理数据同步,实现与网页交互,以及遵循Chrome的隐私和安全规范。此外,书中还涵盖了关键的最佳实践,包括性能优化、代码组织和调试技巧,确保你的扩展既高效又易于维护。 《创建谷歌Chrome扩展》不仅提供了理论知识,还包含了大量的示例和实际项目,让读者能够通过实践加深理解和掌握。通过阅读这本书,你不仅能掌握Chrome扩展开发的基本原理,还能了解到如何将自己的创新思维转化为吸引人的网络应用,从而在日益竞争激烈的浏览器扩展市场中脱颖而出。 版权方面,该书受法律保护,所有权利归作者所有。但为了学术研究或教学目的,可以引用部分章节进行短评或分析,只要符合版权法规定,不涉及复制、再版或商业用途即可。 《创建谷歌Chrome扩展》是一本不可或缺的参考资料,无论你是寻求技术提升,还是希望了解如何利用Chrome扩展平台创造商业价值,都将为你提供宝贵的知识和实践指导。"
资源详情
资源推荐
xv
Acknowledgments
My sincere thanks go to Steve Anglin and Ben Renow-Clarke for giving me this wonderful
opportunity to write for Apress! Thanks to my coordinating editor, Nancy Chen, for
handling this project to completion.
Thanks to Matthew Moodie, for his efforts to improve the content, and to Massimo
Nardone, the tech reviewer for this book, for providing his helpful insights. Thank you
to Tom Welsh and Jill Balzano—the editors on my first book Learn OpenGL ES —for
mentoring me and preparing me as an author.
Thanks to my friends—Anupam Appar and Pratik Sharma—for reviewing the source
code and providing the necessary encouragement to write this book. Also thanks to my
pro-gamer comrade, Tejas Tilak, for lending his amazing photography skills.
xvii
Introduction
Creating Google Chrome Extensions is an intermediate-level book that teaches
development of browser extensions for Google Chrome web browser. Browser extensions
are extremely viable in enhancing functionality of web browsers. They have access to
almost all the features provided by the browser. And they can encapsulate such features
in the form of a bundled application to provide a targeted functionality to users – such as
an extension that can summarize the current page you are reading, or another extension
that can save all the images in the page you are browsing. Extensions run in a sandboxed
environment, making them secure – which is a huge plus!
The APIs provided by Chrome Extensions framework help to empower web
applications by coupling them with amazing features provided by the Google Chrome
web browser, such as bookmarks, history, tabs, actions, storage, notifications, search, and
a lot more other features.
After understanding the examples and lessons in this book, you will be able to
transform your existing web applications as (into) Google Chrome browser extensions,
as well as create brand new extensions that serve some useful purpose.
In this book we will go from discovering what Google Chrome Extensions are, how
to create them, extension components and messaging, to publishing of extensions on the
Chrome Web Store (formerly the Google Chrome Extensions Gallery).
“Extensions” is the only way out for sped-up productivity on Google Chrome
browsers.
So, showcase your existing web development skills in a completely modernized way,
by “Creating Google Chrome Extensions”.
1
© Prateek Mehta 2016
P. Mehta, Creating Google Chrome Extensions, DOI 10.1007/978-1-4842-1775-7_1
CHAPTER 1
Introduction to Google
Chrome Extensions
In this chapter you will learn about Google Chrome Extensions, which are a useful way
to add functionality to the Google Chrome web browser. We will first take a quick look
at some popular Google Chrome Extensions and the technologies that are used to code
Chrome Extensions. Then, you will learn how to create your own “Hello World” style
Chrome Extension—but only after we describe the features and abilities of Chrome
Extensions. Finally, you will learn about publishing Chrome Extensions on the Chrome
Web Store (formerly the Google Chrome Extensions Gallery).
This chapter assumes you have some experience writing simple web pages using
technologies such as HTML, CSS, and JavaScript. That said, let’s get started!
What Are Google Chrome Extensions?
Google Chrome Extensions are browser extensions for the Google Chrome web browser.
Browser extensions are programs that run within the context (security sandbox) of a web
browser. They help to provide new functionality(ies) by combining existing features of the
web browser and make it possible for users to do many things at once!
■ Note At the time of this writing, Google Chrome Extensions are only supported on the
desktop versions of the Google Chrome web browser.
Support for Browser Extensions
The Google Chrome web browser started supporting browser extensions in its fourth
version, which was released in 2010. It is also possible to create extensions for browsers
such as Safari, Mozilla Firefox, and Opera. Extensions created for the Google Chrome
Electronic supplementary material The online version of this chapter
(doi:
10.1007/978-1-4842-1775-7_1 ) contains supplementary material, which is available to
authorized users.
CHAPTER 1 ■ INTRODUCTION TO GOOGLE CHROME EXTENSIONS
2
web browser are compatible with the Opera web browser, ever since Opera shifted to the
Chromium’s extension model (after Opera dropped its own Presto engine, in favor of the
WebKit engine used by the Google Chrome web browser, from the Chromium project).
Developing extensions for the Safari web browser has a similar learning curve to that
of the Google Chrome web browser, and developing extensions for both is easy because it
does not require you to learn any newer technologies (only existing web technologies are
used). But developing extensions for the Firefox web browser is comparatively difficult
as it involves the use of technologies apart from web technologies, such as XUL, XPCOM,
etc. (you can read more about these at
https://en.wikipedia.org/wiki/Add-on_
(Mozilla)#Extension_technologies
). This book only covers development of extensions
on the Google Chrome web browser.
■ Note The Chrome Web Store is an online marketplace where users can browse for
Chrome apps, extensions, and themes. The store helps users find, purchase, and install
content on the Chrome browser.
Extensions Are Not Plug-ins
An important point to note is that browser extensions are different from browser plug-
ins . While browser extensions are sandboxed within the host web browser (software),
plug-ins are not. Here, a sandbox can be thought of as a software container – allowing the
execution of web technologies, and at the same time providing access to the features of
browsers, such as tabs, history, buttons, popups, etc.
In addition to this, extensions add new functionality(ies) to browsers by combining
existing features that are already available on browsers (in case of Chrome Extensions,
this is done using the API provided by the Extensions framework). Plug-ins, however,
provide new functionality(ies) by providing support for particular media types to
browsers. In the former case, the example could be an extension that allows users to save
all the opened tabs that are not in incognito mode, to the local storage. For the latter
case, the example could be a plug-in that allows reading and rendering of PDF files on
the browser.
Also note that there is another kind of web application that developers can create
for the Chrome browser. These applications are known as Google Chrome Apps . From
a development’s standpoint, Google Chrome Apps are somewhere in between Google
Chrome Extensions and browser plug-ins.
This book does not discuss developing Google Chrome Apps, as it only targets the
development of Google Chrome Extensions. But keep in mind that developing Chrome
Apps is very similar to developing extensions for the Chrome browser. If you want to
know more about Google Chrome Apps, you can visit the following URLs:
•
https://en.wikipedia.org/wiki/Google_Chrome_Apps
•
https://developer.chrome.com/apps/about_apps
•
http://stackoverflow.com/questions/tagged/google-chrome-app
剩余182页未读,继续阅读
shang_1991
- 粉丝: 6
- 资源: 44
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 多模态联合稀疏表示在视频目标跟踪中的应用
- Kubernetes资源管控与Gardener开源软件实践解析
- MPI集群监控与负载平衡策略
- 自动化PHP安全漏洞检测:静态代码分析与数据流方法
- 青苔数据CEO程永:技术生态与阿里云开放创新
- 制造业转型: HyperX引领企业上云策略
- 赵维五分享:航空工业电子采购上云实战与运维策略
- 单片机控制的LED点阵显示屏设计及其实现
- 驻云科技李俊涛:AI驱动的云上服务新趋势与挑战
- 6LoWPAN物联网边界路由器:设计与实现
- 猩便利工程师仲小玉:Terraform云资源管理最佳实践与团队协作
- 类差分度改进的互信息特征选择提升文本分类性能
- VERITAS与阿里云合作的混合云转型与数据保护方案
- 云制造中的生产线仿真模型设计与虚拟化研究
- 汪洋在PostgresChina2018分享:高可用 PostgreSQL 工具与架构设计
- 2018 PostgresChina大会:阿里云时空引擎Ganos在PostgreSQL中的创新应用与多模型存储
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功