Chrome browser high security sandbox technology, multi process technology, stealth mode, fast and efficient browsing experience to attract a large number of users. Chrome expansion can enhance the user experience, and even solve some of the practical problems encountered in the use of the process. This paper introduces the process and thread model analysis of the Chrome browser, and makes some analysis on the frame of the browser. Chrome browser based on the expansion of the development of HTML greatly facilitates developers. This article is a display picture and text as an example of the Chrome browser plug-in expansion development, describes the development process of Chrome expansion, and combined with Ajax technology to enhance the characteristics. The extension adds the browsers function, making the browser easy and personalized. The development of the plug-in will also become the direction of the major browser vendors, it is necessary to understand and write plug-in extensions.
This paper firstly introduces the related knowledge of auxiliary plug-in extension development, it has directive significance for the development of Chrome browser extensions, then introduced the Chrome browser plug-in framework and plug-in mechanism makes the development of the principle of clarity, finally introduced the use of Ajax technology to explain some of the common problems faced by the plug-in instance and solve plug-in development in the process of. In this paper, a simple study of Chrome browser plug-in development, help beginners learn.
Twenty-first Century is the era of the Internet, all aspects of society seem to be inseparable from the Internet, the rapid development of the Internet, the way people work, communication, learning the impact of growing [1]
. The Internet has improved the efficiency, but also expanded peoples imagination. With the combination of mobile communication, the Internet is like a ghost as the shadow follows the form become peoples daily life, part can not be separated. In particular, the interactive interface developed by DOS to the windows graphical interface [2]
With the Internet, the closer the distance, the browser as the information interaction tool has an irreplaceable role, function of the browser much seems to affect the amount of information, so it seems necessary to increase the function of the browser. The purpose of this paper is to increase the expansion of the browser, the browser to achieve a specific function to expand the amount of information browsing or browser specific basic functions. For example, increase the browsers computing expansion, increase the browsers information storage extensions.
In the era of rapid development of information, it seems that it is necessary and necessary to find information accurately. This is not impossible to achieve, you can plug in the browser to achieve specific information capture, such as in the browser to grab AD and delete. To save time, increase reading, to achieve a deeper level of browser interaction is to increase the purpose and significance of plug-ins. This paper is to achieve the development of Chrome browser plug-in research papers, with the guidance of the plug-in development methods, steps and problems encountered. This is also the purpose of this study.
Chrome browser is an open source project Google Corporation. The Chrome browser was released in 2008 of a new generation of browsers, web kit kernel and powerful v8javascript based rendering engine, with its fast, simple, safe and quickly occupied a considerable share of the market has become the worlds second largest browser.
Plug in is to extend the browser function to achieve a specific needs of the program. Chrome browser plug-in development compared to other browser plug-in development easier, with easy to develop the development of the model, plug-in debugging easier.
Chrome is a HTML document, including CSS, Java, script, pictures and other files, zip package, add some function for the browser, its essence is the web page, you can use the browser to provide all operations on the web page of the API, Http Request and JSON XML package. Chrome extended UI is divided into browser actions and page actions two class, any Chrome expansion can only choose one. This paper is the use of Ajax technology to achieve the development of Chrome browser plug-ins. Ajax is a kind of interactive web development technology for fast dynamic web technology, Ajax can realize web asynchronous update, can be a part of the web page without reloading the whole page under the update, there are a lot of application using Ajax case: Sina micro-blog map Google, etc..
This article is to achieve Chrome browser plug-in development. The article explains the relevant knowledge of Chrome browser, plug-in development environment to build, plug-in development language, which is the basic knowledge of this paper. The Chrome browser plug-in structure and knowledge is the core knowledge of this paper, this paper also provides a plug-in development related to the style of reference for readers, finally this paper briefly introduces some problems encountered in the process of plug-in development and provides some solutions. This article also has many deficiencies, this paper is limited to the level of beginner Chrome browser plugin developers reference.
Browser mainly through the HTTP protocol and web server interaction and access to web pages, these pages have URL (uniform resource locator) specified, the file format is usually HTML And MIME is specified in the HTTP protocol, which is the process of interpreting and translating hypertext language. Most of the browser support in addition to HTMLs wide format, such as JPEG, PNG, GIF and other image formats, and can be extended to support a large number of plug-in (plug-ins), in addition, many browsers also support other types of URL and their corresponding protocols, su
剩余内容已隐藏,支付完成后下载完整资料
Chrome浏览器高安全性的沙盒技术、多进程技术、隐身模式、快速高效的浏览体验吸引了大量用户。Chrome扩展可以提升用户体验,乃至解决一些使用过程中遇到的实际问题。本文介绍Chrome浏览器的进程与线程模型解析,对浏览器的框架也做出了一定的分析。Chrome浏览器基于HTML的扩展开发方式极大地方便了开发人员。本文是一显示图片和文字为例的chrome浏览器插件扩展开发,介绍了Chrome扩展的开发流程,并结合Ajax技术增强了特性。扩展插件增加了浏览器的功能,使得浏览器趋向便捷,个性化。扩展插件的开发也必定成为各大浏览器厂商竞争的方向,了解和编写插件扩展显得十分必要。
本文首先介绍了插件扩展开发的相关辅助知识,这对于chrome浏览器的扩展插件的开发具有指导意义,然后着重介绍了chrome浏览器的框架和插件的机构使得插件的开发原理清晰明了,最后介绍了运用Ajax技术的插件实例和解决插件开发过程中面临的一些常见问题的讲解。本文的简单研究chrome浏览器的插件开发,有助于初学者的学习。
21世纪是互联网的时代,社会的个个方面似乎都与互联网离不开,互联网的发展日新月异,对人们的工作方式,交往方式,学习方式的影响越来越大[1]
。互联网提高了办事效率,也扩展了人们的想象空间。加上与移动通讯相结合,互联网简直就像“幽灵”一般如影随形,成为人们日常生活须臾不可分离的组成部分。特别是由DOS的交互界面发展到windows图形界面[2]
,这些拉近与互联网的距离,浏览器作为信息的交互的工具具有不可替代的作用,浏览器的功能多少似乎影响着信息量的多少,所以似乎有必要增加浏览器的功能。本文研究的目的是增加浏览器的扩展功能,实现浏览器的特定的功能以扩展浏览信息量或者实现浏览器特定的基本功能。例如,增加浏览器的计算扩展,增加浏览器的信息存储扩展等。
在高速信息发展的时代似乎准确查找信息是有必要的也是必须的,扩展是解决浏览器信息的抓取的有效解决办法。这并不是不能实现,可以在浏览器增加插件实现特定信息的抓取,例如在浏览器中抓取广告并删除。节省时间,增加阅读性,实现更深层次的浏览器互动是增加插件的目的与意义。本文是实现chrome浏览器插件开发的研究论文,具有指导插件开发的方法,步骤以及遇到的问题。这也是本文研究的目的。
Chrome浏览器是谷歌公司的开源项目。Chrome浏览器是2008年发布的新一代浏览器,基于web kit内核和强大v8javascript渲染引擎,以其快速,简洁,安全性很快占据了相当大的市场份额一跃成为全球第二大浏览器。
插件就是扩展浏览器功能的实现某种特定需要的程序。Chrome浏览器插件开发相比于其他浏览器插件开发较容易,具有易于开发的开发者模式,插件的调试较易完成。
Chrome扩展是一个包括HTML文档、CSS、Java script、图片以及其它文件在内的zip压缩包,为浏览器添加某些功能,其本质其实是web页面,可以使用浏览器所提供的所有操作web页面的API,包XML Http Request和JSON等等。Chrome扩展UI分为browser actions和page actions两类,任何Chrome扩展最多只能选择其一。本文是运用Ajax技术实现chrome浏览器插件的开发。Ajax是一种创建交互式网页开发技术,用于快速动态网页的技术,Ajax可以实现式网页实现异步更新,可以在不重新加载整个网页的情况下对网页的某部分进行更新,有很多使用Ajax的应用程序案例:新浪微博,Google地图等。
本文是实现chrome浏览器的插件开发。文章讲解chrome浏览器的相关知识,插件开发的环境搭建,插件开发语言,这是本论文的基础知识。chrome浏览器与插件结构知识是本文的核心知识,本文也提供相关的插件开发的样式供读者参考,最后本文简要介绍了在插件开发的过程中所遇到的一些问题并提供了一定的解决办法。本文也存在许多不足之处,本文的研究水平有限仅供初学chrome浏览器插件开发人员参考。
浏览器主要通过HTTP协议与网页服务器交互并获取网页,这些网页有URL(统一资源定位器)指定,文件格式通常为HTML,并有MIME在HTTP协议中指明,其过程就是解释与翻译超文本语言的过程。大部分的浏览器支持除了HTML之外的广泛的格式,如JPEG,PNG,GIF等图像格式,并且能够扩展支持众多的插件(plug-ins),另外,许多浏览器还支持其他的URL类型及其相应的协议,如FTP、Gopher、HTTPS(HTTP协议的加密版本)。HTTP内容类型和URL协议规范允许网页设计者在网页中嵌入图像、动画、视频、声音、流媒体等。
浏览器的设计之初是为了更好的实现不同网络之间的交流,文档的互换与显示,并没有过多的考虑其它问题,随着网络的发展有太多的问题逐渐的显露出来,为了更好的人性化的服务许多应用插件应运而生。
插件 (Plug-in,又称addin、add-in、addon或add-on,又译外挂)是一种遵循一定规范的应用程序接口编写出来的程序。很多软件都有插件,插件有无数种。例如在IE中,安装相关的插件后,WEB浏览器能够直接调用插件程序,用于处理特定类型的文件。插件最大的好处就是实现浏览器不能实现的功能,也就是说扩展了浏览器的网页动作实现了许多功能。比如,可以设计一个插件实现过滤广告的功能,这是浏览器本身所不具有的网页过滤功能;同样也可以设计一个插件实现动态与服务器进行交换的功能,这就是我们所熟悉的众多的抢火车票插件;还有一些插件实现了用户的安全登录与退去的功能,比如我们经常使用的支付宝登录插件,这些插件就是在浏览器的脚本中添加与服务器不断进行交换并且显示的功能。插件实现了许多服务器没有的网页动作、功能,扩展了服务器的使用范围与使用的方便程度。插件的定位应该是开发实现原纯净系统平台/应用软件平台不具备的功能的程序,其只能运行在程序规定的系统平台下(可能同时支持多个平台),而不能脱离指定的平台单独运行。因为插件需要调用原纯净系统提供的函数库或者数据。
插件也有不利的一面,插件的开发有可能会涉及到网页的稳定性与安全性。插件可能会使浏览器的脚本与服务器运行的脚本发生混乱造成服务器的崩溃,插件中众多的js文件同样也会在浏览器的交换过程中获取用户的帐号密码等信息危害用户的安全。总之,插件的利于弊需要的是用户全面的衡量,插件的下载应该在其官方网站下载与安装,这样就能保证其一定的稳定,安全。
本文所涉及的chrome浏览器插件开发是是实现浏览器的扩展功能,如浏览器中增加一些小的实用性的工具,像计算器,日历,文档的编辑等工作,生活小工具。本文也是着重探讨chrome浏览器插件开发的步骤方法,明白简易原理以及实现自己的开发。
Chrome插件开发必然少不了chrome浏览器,谷歌的浏览器为免费产品所以可以从其官网中获取,差价开发也必然少不了编写语言,所以推荐有一文本编辑器。带语法亮点的是比较不错的,推荐使用edit plus能够满足插件开发所需要的所有文本编辑工作需求。
搭建开发环境是所有步骤的开始,硬件要求是比较低的,只要能够运行chrome浏览器就行了,其次,软件的要求同样只需要有chrome浏览器和文本编辑器就行了,至于网络的连接问题的需要看开发者的需求而行,互联网也可以获取许多帮助,有利于开发。这就是所需的开发环境。
不管什么样的浏览器大都可以开发出其特有的插件以实现各种功能实现目的,但是个个浏览器的插件开发语言就很大的不同了,有的需要C、C 语言,有的需要JavaScript语言以及网页编程语言。本文是以Google chrome浏览器为例开发插件所需的语言是JavaScript,HTML等就足以满足插件的开发,以下就是简要的介绍这几种语言。 Google chrome浏览器插件开发指南中可以得知需要的是以js为后缀的JavaScript脚本,
以HTML为后缀的HTML代码以及json为后缀的主程序。首先介绍json主函数程序:JSON(JavaScript Object Notation)是一种轻量级的数据交换格式。它基于JavaScript(Standard ECMA-2623rdEdition-December1999)的一个子集。JSON采用完全独立于语言的文本格式,但是也使用了类似于C语言家族的习惯(包括C、C 、C#、 Java、 JavaScript、 Perl、 Python等)。这些特性使JSON成为理想的数据交换语言。易于人阅读和编写,同时也易于机器解析和生成。在chrome浏览器插件开发中就是以JSON主函数告知浏览器并实现对就js脚本,HTML代码的运用。为了节约浏览器的消耗内存与时间,就运用了JavaScript语言。Java script是一种由Netscape的Live Script发展而来的原型化继承的基于对象的动态类型的区分大小写的客户端脚本语言,主要目的是为了解决服务器端语言,比如Perl,遗留的速度问题,为客户提供更流畅的浏览效果。当时服务端需要对数据进行验证,由于网络速度相当缓慢,只有28.8kbps,验证步骤浪费的时间太多。于是Netscape的浏览器Navigator加入了Java script,提供了数据验证的基本功能,大大加快网页速度。同时是一种基于对象和事件驱动并具有相对安全性的客户端脚本语言。且广泛用于客户端Web开发的脚本语言,常用来给HTML(标准通用标记语言的子集)网页添加动态功能,比如响应用户的各种操作。它最初由网景公司(Netscape)的Brendan Eich 设计,是一种动态、弱类型、基于原型的语言,内置支持类。JavaScript是Sun公司(已被oracle收购)的注册商标。Ecma国际以JavaScript为基础制定了ECMA Script标准。JavaScript也可以用于其他场合,如服务器端编程。完整的JavaScript实现包含三个部分:ECMA Script,文档对象模型,字节顺序记号。Netscape公司在最初将其脚本语言命名为Live Script。在Netscape在与Sun合作之后将其改名为JavaScript。JavaScript最初受Java启发而开始设计的,目的之一就是“看上去像Java”,因此语法上有类似之处,一些名称和命名规范也借自Java。但JavaScript的主要设计原则源自Self和Scheme。
Chrome浏览器是谷歌(Google)公司研发的浏览器,同时也是一个开源项目(Chromium),即它是一个开源浏览器。Chrome中文名叫谷歌浏览器,它是一款可高速运行网页和应用程序的网络浏览器。
谷歌之所以想开发这么个浏览器,主要是想提供一个能更好地支持各种复杂网络应用的浏览器基础平台,因为如今众多的优秀应用都是构建在浏览器的基础上。Google公司认识到网络已经从简单的文本页面进化到富媒体和互动应用广泛普及的新时代。从界面来看,谷歌设计了一个简单而高效的浏览器窗口。对大多数人来说,浏览器本身并不重要,它只是一个能够运行互联网网页、网站和网络应用等重要程序的工具。正如谷歌的经典主页,谷歌浏览器延续了简洁、快速的设计理念,帮助用户快速准确地到达目的地。
由上可以知道manifest.json作为插件的配置文件看做是插件程序与浏览器交互的入口,background script脚本是插件运行的环境,插件结构包含一种重要的结构,内容脚本。
内容脚本是我们插件要注入页面的脚本,插件需要运行的程序通过内容脚本与浏览器页面进行交互,我们会想到插件允许往网页中注入脚本,这是一个多么有想象空间的地方,我们可以运用这实现对网页的干涉,这也许会给用户都带来巨大的安全隐患,插件就可以绑架我们的浏览器,恶意的插件会盗窃你的页面信息或者有漏洞的插件也会收到其他的恶意程序脚本注入从而受到攻击。还会有另外一个问题,如果插件能够注入到页面中会不会造成插件运行环境与浏览器页面运行环境的冲突造成浏览器的崩溃。
以上分析了插件运行在浏览器过程中所面临的一些自设问题,但实际过程中浏览器与插件的运行时良好的并没有相互的影响这是因为chrome另外开辟了一个独立的运行空间供content script使用,content script能访问DOM的内容,但却不能访问页面原本的脚本,反之,页面原本的脚本也不会直接访问content script。
剩余内容已隐藏,支付完成后下载完整资料
资料编号:[25307],资料为PDF文档或Word文档,PDF文档可免费转换为Word
您可能感兴趣的文章
- 饮用水微生物群:一个全面的时空研究,以监测巴黎供水系统的水质外文翻译资料
- 步进电机控制和摩擦模型对复杂机械系统精确定位的影响外文翻译资料
- 具有温湿度控制的开式阴极PEM燃料电池性能的提升外文翻译资料
- 警报定时系统对驾驶员行为的影响:调查驾驶员信任的差异以及根据警报定时对警报的响应外文翻译资料
- 门禁系统的零知识认证解决方案外文翻译资料
- 车辆废气及室外环境中悬浮微粒中有机磷的含量—-个案研究外文翻译资料
- ZigBee协议对城市风力涡轮机的无线监控: 支持应用软件和传感器模块外文翻译资料
- ZigBee系统在医疗保健中提供位置信息和传感器数据传输的方案外文翻译资料
- 基于PLC的模糊控制器在污水处理系统中的应用外文翻译资料
- 光伏并联最大功率点跟踪系统独立应用程序外文翻译资料
