Zh-CN:Ubiquity 0.1.2 User Tutorial: Difference between revisions

Line 191: Line 191:
您还可以在地址栏中输入 '''about:ubiquity''' 以跳转到 Ubiquity 的帮助页面。
您还可以在地址栏中输入 '''about:ubiquity''' 以跳转到 Ubiquity 的帮助页面。


== Teaching Ubiquity New Commands ==
== Ubiquity 中新增命令 ==


We've mentioned that anyone can create Ubiquity commands.  Once created, these commands can be embedded in any web page.  If you have Ubiquity installed and you visit a page with an embedded command, Firefox will present you with the option of <b>subscribing</b> to the command.
我们在前面提到,任何人都可以创建 Ubiquity 命令。一旦创建后,这些命令就可以被嵌入到任何网页中。如果您已经安装了 Ubiquity 并且访问任何一个嵌入命令的页面,Firefox 会提醒您<b>订阅</b>这条命令。


To see this in action, you can visit [http://hg.toolness.com/ubiquity-firefox/raw-file/7435416f211a/examples/sample-cmd.html this example page on Atul's personal site].  You should see a bar coming down from the top of the browser window asking you whether you want to subscribe to the command or not.
您可以通过访问[http://hg.toolness.com/ubiquity-firefox/raw-file/7435416f211a/examples/sample-cmd.html Atul的个人网站上的示例页面]来尝试这个效果。您会看到在浏览器窗口的顶端会出现一个提示条,询问您是否订阅这条命令。


http://www.toolness.com/images/20080820111209.jpg
http://www.toolness.com/images/20080820111209.jpg


If you choose to subscribe, you'll see a rather scary-looking warning page:
如果您选择订阅,那么您将会看到一个看上去更加不舒服的警告页面:


http://www.toolness.com/images/20080820111725.jpg
http://www.toolness.com/images/20080820111725.jpg


It's important to understand the dangers of subscribing to Ubiquity commands from sites that you don't trust.  Since a Ubiquity command can do anything, and it has full access to your web browser, a bad person could write a Ubiquity command to steal your personal information or do malicious things to your computer.  You should not install Ubiquity commands unless you are confident that the source is trustworthy.
从您不信任的站点上订阅 Ubiquity 命令前,需要对它的危险性有清楚的了解。因为 Ubiquity 命令可以完成任何事情,并且对您的浏览器有完全的控制权,恶意程序会盗取您的私人信息,或做一些对您电脑有害的事情。您应该在对命令有了解的情况下才去安装它。


In the future, we'll be creating something called a "trust network" that Ubiquity users can use to share knowledge about which commands are trustworthy.  When you visit a page with an embedded command, you'll be able to see what your friends with Ubiquity have said about this command -- whether they've given it a thumbs-up or left you a warning to let you know it could be dangerous.  This system doesn't exist yet, but once it does we will modify this section of the tutorial to let you know how to use it.
在将来,我们会创建一种被称为"信任网络"的东西,Ubiquity 用户可以在上面分享关于命令可信任度的信息。当您访问嵌入有命令的页面时,您可以看到使用 Ubiquity 的一些朋友们对这个页面的评价 -- 他们会告诉您这是一个可信任的命令还是一条有危险的命令。这套系统目前还是存在,但是一旦它被实现,我们就会改变教程这一章的内容来让您知道怎样去使用它。
19

edits