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