Sogou browser extension development process, sogou browser Development

Source: Internet
Author: User

Sogou browser extension development process, sogou browser Development
For example, you need to create a plug-in to conveniently view stock quotations:
1. Create a new folder (such as stock) Where all the files are stored.
2. Create two icons: default. ico (16*16 bytes and default-big.png (32*32)
Production tool: IcoFX
3. Create the manifest. xml file and use UltraEdit to edit and enter the necessary content:

<? Xml version = "1.0" encoding = "UTF-8"?> <Extension> <id> com. xjj. stock </id> <name> stock quote </name> <show_icon> true </show_icon> <description> click to open the auto-stock quote page </description> <popup page = "stock.html "width =" 100 "height =" 100 "/> <version> 0.1 </version> <request_api_version> 1 </request_api_version> <author> XuJijun </author> </extension>

Save as, select UTF-8-no BOM:
Create a stock.html file to store the content in the pop-up box. First, enter a little something:
<Html> 

4. Extended packaging: compress all the files in the Directory into a zip file and change the suffix. sext (such as stock. sext) Note: Not to compress the directory, but to compress all files after entering the directory!

5. Install the SDK. Double-click the stock. sext file and follow the prompts to see the following information:
6. Find the Extension installation directory. The default value is C: \ Users \ Xu \ AppData \ Roaming \ SogouExplorer \ Extension. Enter the com. xjj. stock subdirectory and the version subdirectory.
Modify the size of the pop-up page (restart the browser to take effect ):
<popup page="stock.html" width="600" height="500"/>

Add an image tag for stock quotes in stock.html (this takes effect without restarting the browser ):


Restart the browser and the effect is displayed:

Others are further optimized... For example, using a local cache to save some data: http://blog.csdn.net/clementad/article/details/46841821
References: http://ie.sogou.com/open/doc/




Copyright Disclaimer: This article is an original article. For more information, see

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.