Songbird uses a simplified form of the OpenSearch standard. Because of that it's very easy to make new Search Plugins. You only have to make a XML file describing the URL of the search engine that should be used. In this way you can easily make yourself a search plugin, with only one XML file.
But if you want to share your plugin with anybody else, you'll have to writing a add-on. An add-on isn't that hard to write, and we got a very nice guide about how to write one Here
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Songza Music Search</ShortName>
<Description>Search for Music with the Songza search engine</Description>
<Image height="16" width="16" type="image/x-icon">http://songza.com/favicon.ico</Image>
<Url type="text/html" template="http://www.songza.com?q={searchTerms}"/>
</OpenSearchDescription>
// We create an object for our plugin, you could make a single function, but I prefer to make an object. var SongzaSearch = { init: function() // This function will be called on startup { var searchService = Components.classes["@mozilla.org/browser/search-service;1"] // We create an object of the XPCOM interface SearchService .getService(Components.interfaces.nsIBrowserSearchService); searchService.addEngine( // We add our searchengine to the list "chrome://songza-search/content/songza.xml", // The URL of our XML file Components.interfaces.nsISearchEngine.DATA_XML, // It's a XML file "chrome://songza-search/skin/songza.ico", false); // The path to our icon } } window.addEventListener("load", SongzaSearch.init, false); // This will cause SongzaSearch.init to be called when Songbird loads
overlay chrome://songbird/content/xul/layoutWithBrowserOverlay.xul chrome://songza-search/content/overlay.xulThis will cause our overlay.xul (explained in a minut) to be overlayed on Songbird with browser, which means that it wont be overlayed to mini-player.
<?xml version="1.0" encoding="UTF-8"?> <overlay id="songza-search-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script type="application/x-javascript" src="chrome://songza-search/content/search.js"/> </overlay>
| File | Size | Date | Attached by | |||
|---|---|---|---|---|---|---|
| Songza Search.zip Here's all the files that's needed to make an Search add-on.
Actually this is exactly the same file you download when you install Songza Search, just named *.zip instead of *.xpi | 2.75 kB | 08:16, 12 Jun 2009 | Saebekassebil | Actions | ||
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |