2007-03-01

JSPWiki search plugin for Firefox

I was suddenly inspired to be able to search my JSPWiki installation through the Firefox search tool. I noticed that Firefox search plugins are installed under Mozilla Firefox/searchplugins, so I took a look at one of them and modified it to work with my wiki. I used GIMP to make a .ico file for the JSPWiki logo, and Cygwin base64 to encode it. To install this search plugin, create a file with this text and save it as JSPWiki.xml. Replace YOUR-WIKI-BASE-URL-GOES-HERE with your wiki's base URL. Copy the file to your Mozilla Firefox/searchplugins directory, restart Firefox, and enjoy.

<!--
  JSPWiki search plugin for Firefox 2.0
Richard Kasperowski

To make this work with your wiki, replace the base URL in
<Url ... template="..." ...
and
<SearchForm>...
-->
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
<ShortName>Wiki</ShortName>
<Description>Wiki</Description>
<InputEncoding>UTF-8</InputEncoding>

<Image width="16" height="16">data:image/x-icon;base64,AAABAAEAEBAAAAEACABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAoACg4PAA4OEAAPDxAAEBERABQUFgASFhoAExcYABYXGAAUFx0AFRkaABYaGwAZGxwAHBscABkdHgAfHh4AGx0kABwgIQAcICMAHSEkACElJgAiJyYAJSUsACQnKgAnKioAKiwtAC8tNAAsMTAALjI3ADIzNgAwNDYAMjU4ADM4OgA2OTsANzk8ADg6PAA1OzwAOTw8ADxCQgA/Q0QASUtOAEhOTgBKTk8AUlJVAFtaWwBcYGIAZmJjAHFzcACAf34AiIiHAImIigCNiYkAioyLAJeUlQCknp4At7a0AL+6uADFw8AAz8fFAM3JxgDNyckA0srHAM7KyQDSzMwA19DNANbR0QDX0dEA2NTRANrU0gDb1tYA29fWAN3Y2ADe2tkA39vaAODb3ADg3NsA49/cAOTf3QDj394A5OHdAObh4ADn498A6eXkAOrm5QDs6OcA8OvnAOvr6QDw7OgA7+7uAPDw7wD08fAA8fLxAPb08wD29/UA+/v5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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V5dVlNOSUhfX19fX19fX19bWVhUUlJfX19fX19fX19fX19cWl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX///AAD//wAA/n8AAPAPAADgBwAA4AcAAOADAADABwAA4AMAAMADAADwBwAA8A8AAPgfAAD+fwAA//8AAP//AAA=</Image>
<Url type="text/html" method="GET" template="http://YOUR-WIKI-BASE-URL-GOES-HERE/wiki/Search.jsp">
<Param name="query" value="{searchTerms}"/>
</Url>
<SearchForm>http://YOUR-WIKI-BASE-URL-GOES-HERE/wiki/wiki/Main</SearchForm>
</SearchPlugin>

No comments:

LinkWithin

Related Posts with Thumbnails