Chrome应用和扩展程序的区别 [英] Difference between Chrome Apps and Extensions

查看:138
本文介绍了Chrome应用和扩展程序的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Chrome Apps和Extensions之间有什么区别?



您可以使用无法使用扩展程序的应用程序做什么,反之亦然?

解决方案

https ://developer.chrome.com/webstore/apps_vs_extensions


我们已经有了web apps 在浏览器中已经有几年了,它比网站更丰富和更具交互性,但比桌面应用程序更简单,更庞大。例子包括游戏,照片编辑和视频播放器;所有这些类别都是可行的,因为在浏览器内运行的应用程序非常集中。 谷歌浏览器只是以一种对智能手机上使用应用程序的任何人都熟悉的方式正式定义了网络应用程序概念。 扩展程序...扩展了谷歌浏览器的功能以及正在浏览的网站。例如,他们可以通过在地址栏中添加一个新按钮来扩展谷歌浏览器,例如永久存在的货币转换器。这样的按钮也可以应用于当前正在查看的网站,例如,点击货币换算按钮以转换您正在查看的网站上的所有价格。同样,您可以将新项目引入上下文菜单,更改多功能框(地址栏上的输入字段)的行为,访问用户的浏览历史记录(经同意)等等。您也可以更改网页 - 例如,在每个页面的每个链接旁嵌入一个发送此邮件按钮,或者自定义您最喜爱的网站的布局。

比较到应用程序,扩展切入网站和网络应用程序;它们通常在所有网站上都有效(尽管有些网站是特定的)。 应用不以这种方式与其他应用结合;它们像任何常规网站一样独立运行。


(强调已添加)



据我所知,Chrome应用程序只是在Chrome的网上应用店中注册的网络应用程序(例如Gmail)。它们基本上只是书签的荣耀。谷歌似乎已经推出了它们,以便让浏览器更像操作系统,就像为运行Chrome OS的平板电脑做准备一样。由于Chrome OS除Chrome之外不会有任何本机应用程序,因此他们需要某种方式让您安装应用程序......即使这些应用程序只是网站。



扩展程序实际上可能会影响浏览器的行为方式(例如,广告拦截)。他们可以将按钮添加到Chrome的工具栏,拦截Web请求,更改DOM等。


What is the difference between Chrome Apps and Extensions?

What can you do with apps that you can't do with extensions or vice versa?

解决方案

Quoting from https://developer.chrome.com/webstore/apps_vs_extensions:

We’ve already had the concept of "web apps" in the browser for a few years, as something more rich and interactive than a website, but less cumbersome and monolithic than a desktop application. Examples include games, photo editors, and video players; all of these categories are viable as tightly focused apps running inside the browser. Google Chrome is just formalizing the web app concept in a way that will be familiar to anyone who’s used apps on a smartphone.

Extensions ... extend the functionality of Google Chrome and the websites being viewed in it. For example, they can extend Google Chrome by adding a new button to the address bar, such as an ever-present currency converter. Buttons like this can also apply to the current website being viewed—for example, click the currency converter button to convert all prices on the website you’re viewing. Similarly, you can introduce new items to the context menu, change the behavior of the omnibox (the input field on the address bar), access the user’s browsing history (with consent), and much more. You can alter web pages too—for example, embed a "mail this" button next to every link in every page, or customize the layout of your favorite website.

Compared to apps, extensions cut across websites and web apps; they are usually in effect across all websites (though some are site-specific). Apps don’t combine with other apps in this way; they run standalone, like any regular website.

(emphasis added)

From what I can tell, Chrome apps are just web applications that are registered with Chrome's Web Store (Gmail, e.g.). They're basically just glorified bookmarks. Google seems to have introduced them in order to make their browser more "operating system"-like, in preparation for tablets running Chrome OS. Since Chrome OS won't have any native applications apart from Chrome, they need some way for you to be able to "install" applications... even if those applications are just websites.

Extensions can actually affect the way that the browser behaves (ad blocking, e.g.). They can add buttons to Chrome's toolbars, intercept web requests, change the DOM, etc.

这篇关于Chrome应用和扩展程序的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆