Sogou Browser Extension development process

Source: Internet
Author: User

For example, to make a convenient way to view the stock market plug-in:
1, create a new folder (such as stock), all the files are placed in this folder
2. Make two icons:Default.ico (16*16) and Default-big.png (32*32)
production tool: IcoFX
3. Createmanifest.xml fileenter the necessary content with the UltraEdit editor:
<?xml version= "1.0" encoding= "Utf-8"?> <extension>  <id>com.xjj.stock</id>  < Name> Stock Quotes </name>  <show_icon>true</show_icon>  <description> Click to open the optional Stock quotes page </ description>  <popup page= "stock.html" width= "height=/>" <version>0.1</version  >  <request_api_version>1</request_api_version>  

Save As, select UTF-8-No BOM:
Create astock.html file that holds the contents of the popup box. Let's start with a simple entry:

4, extended Packaging: To compress all the files in the directory into a zip file, and then change the suffix named. sext (e.g. Stock.sext)Note:Not to directory compression, but to enter the directory after selecting all files after compression!

5, install, double-click the Stock.sext file, follow the prompts to install success can be seen:
6, further modify the installation directory to find the extension, the default is: C:\Users\Xu\AppData\Roaming\SogouExplorer\Extension EnterCom.xjj.stock Sub-directory, re-enter version of the chant directory
To modify the size of the popup page (restart browser takes effect):
<popup page= "stock.html" width= "" "Height="/> "

Add a picture label for stock quotes in stock.html (no need to restart the browser to take effect):

Restart the browser, the effect came out:

The other is to further optimize the ...For example, using a local cache to save some data:http://blog.csdn.net/clementad/article/details/46841821
Reference Tutorial: http://ie.sogou.com/open/doc/




Copyright NOTICE: This article is the original article, reprint please indicate the CSDN blog which is transferred from Clement-xu.

Sogou Browser Extension development process

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.