Tuesday, April 05, 2005

 

Searchplugins for Mozilla (IMDb + dict.leo.org)


Here are two useful(?) code snippets for the mozilla searchplugin-engine.
Place these snippets in PREFIX/mozilla/searchplugins/{leo|imdb}.src where PREFIX is e.g. /usr/lib. Restart mozilla.


EN <-> DE Dictionary (LEO)
<search name="Dict Leo"
description="Dict Leo"
method="GET"
action="http://dict.leo.org/se">
<input name="search">
<input name="lp" value="ende">
<interpret
resultListStart='<form action="/mydict/trainer/addWord.php" method="POST" name="WORDS">'
resultListEnd='</form>'
resultItemStart='<td class="td1" valign="middle" width="43%">'
resultItemEnd='</td>'>
</search>

Internet Movie DataBase
<search
name="IMDb"
description="Internet Movie DataBase"
method="GET"
action="http://imdb.com/find">
<input name="q" user>
<interpret
resultListStart='<h2>Popular Results</h2>'
resultListEnd='<b>Suggestions For Improving Your Results</b>'
resultItemStart='<li>'
resultItemEnd='</li>'>
</search>

This page is powered by Blogger. Isn't yours?