Wikipedia Search Script


Recommended Posts

Hey all,

Here's a search plugin for firefox I wrote today, with a lot of help from VI. I personally like it better than the wikipedia search script that Mozilla currently offers because theirs goes to the search page with your term, while this one goes straight to the article, and only searches if it can't find what you typed. Anyway, enough tooting of my own horn, here's the .src file, I also uploaded it if you want to install it. (Thanks again goes to VI) Feel free to edit or redistribute by the way.

# Wikipedia Search Plug-in for Mozilla
# Created by Matt Hodges
# Created by June 3, 2005


<SEARCH
  version="0.1"
  name="Wikipedia"
  description="Wikipedia Search"
  searchForm="http://en.wikipedia.org/w/index.php"
  method="GET"
  action="http://en.wikipedia.org/w/index.php">

<input name="title=Special%3ASearch&search" user>



<interpret
   browserResultType="category"
   resultListStart="<div class=padrc>"
 
   resultItemStart="149"
#    resultItemEnd="</a>"
>

<interpret
   browserResultType="result"
   resultListStart="<div id=web>"
 
   resultItemStart="<li>"
#    resultItemEnd="</a>"
>

</search>
<browser
  alsomatch="http://en.wikipedia.org/w/index.php?

title=Special:Search"
>

To install, you will have to save the file (right click > Save link as) in C:\Program Files\Mozilla Firefox\searchplugins

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...