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