Google Chrome Extensions (Lab)-Interface-browser actions

Source: Internet
Author: User

Use the browser action to add an icon to the toolbar (to the right of the address bar) of Google Chrome's main interface, and add tooltips, tags, and a pop-up panel to the drop icon.

As shown in the following illustration: A colorful icon and a panel that pops up below.

If you want to create an icon that is not always displayed, use the page action instead of the browser action.

Manifest

Mount the extension of your browser action, the code for the manifest file is as follows:

1: {
2:  "name": "My extension",
3:  ...
4:   "browser_action": {
5:   "default_icon": "images/icon19.png",  // required
6:   "default_title": "Google Mail",   //  optional; shown in tooltip
7:   "popup": "popup.html"         // optional
8:  },
9:  ...
10: }

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.