User:Christo Muller/Citizendium and Google search for Firefox

From Citizendium
Jump to navigation Jump to search


The account of this former contributor was not re-activated after the server upgrade of March 2022.


This is essentially the Google&Wikipedia search engine for Firefox rewritten. It searches all of <$$$.citizendium.org> sites indexed by Google, where "$$$" can be "www." "forum." "blog." "pilot." "forge.", and in future maybe "de.", "fr.", "br.", ... I am not familiar with the goings on at http://mycroft.mozdev.org/ , nor do I intend to maintain or update the code, except if it stops working for me. So if someone is prepared to publish it there as an optional plug-in, then that would be a big plus.

The .xml file

This file I named "citizendium_google.xml", and placed it in my "C:\Documents and Settings\USERNAME\Application Data\Mozilla\Firefox\Profiles\DEFAULTFNAME.default\searchplugins\" folder (Firefox 2 on Windows XP).

NB#1: Remove all spaces (and newlines or carriage returns if they pop up, which they shouln't) from the long list of characters between "data:image/x-icon" and "</os:image>" – I do not know how long a line the wiki software allows, so I have split the very long single sequence of characters with paragraph marks and leading spaces. They do not belong there!


 <SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
 <os:ShortName>Citizendium&amp;Google</os:ShortName>
 <os:Description>Citizendium search using Google</os:Description>
 <os:InputEncoding>UTF-8</os:InputEncoding>
 
 <!-- I do not know where my browser got the following image code - it seems to come from the "Citizendium Pilot (English)" file -->
 
 <os:Image width="16" height="16"> data:image/x-icon;base64,
 AAABAAIAEBAAAAEAGABoAwAAJgAAACAgAAABAAgAqAgAAI4DA
 AAoAAAAEAAAACAAAAABABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
 AA9PT09PT09PT08vT09vP17/bx7+7w//L69/n69PLy9vXx8/b0+fj09/j09vf19fb09PT09PT09
 PT09PXz6/b0/fL1+/nvwJuF//z09fH37fT3/PT1+Pfz+fnz9vfz9fby9PT09PT09PT09vP19vPv8e
 7m6uff1Jx/v5N049jE8O709vLt9vb2+/nx+vfy+fbx9PT09PT09PT08PX0//Xt4NrV4OXo3Jx+
 0ZNqy4RStYFd9vz39Pb3/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H9/f3+rq/DH89Tq6tfs7P3w7ezs7O
 WG7Lvs7Ozs7Iebm5ubl6urmdTU1Orqnuyz/efs7F/jyOfs7OzZ2exfm5ubm5ubq6vL6Orq6ur
 UD+zs7Ozz8PHn0dnZ2dn4jnBw/v7+VVWrq6tq5+jp6uvs7e7v8PHy8/TX2dn4+fpx/HH+//9
 VVaurq2rKy8zNzc3N0dLS1La219fZ2tvcwHFxccDAwMDAq6urampqarCxsbO0tba2tra2u7y
 9vr7AwMDAwMDAwMBqampqamo3N4SdiIiIiIiIiKSkpqeRkZGRkZGRkZGRkWpqampqN
 zcAhIWGh4h1ioqKjY6OCJGRkZEICAgICAgIampqNzc3AAAAAHJzdHV1dXh5CAgICAg
 ICAgICAgICAg3Nzc3NwAAAAAEBAQEXV5fCAgICAgICAsLCwsLCwsLCzc3NwAAA
 AQEBAQEBAgICAgICAsLCwsLCwsQEBAQEBAQAAAAAAQEBAQECAgICAgLCwsL
 CwsQEBAQEBAQEBgYGBgAAAAABAQEBAgICAgLCwsLCxAQEBAQEBAQGBgYG
 BgYGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
 AAAAAAAAAAAAAAAAAAA</os:Image>
 
 <!-- Comment: The next two lines are for updates after posting to http://mycroft.mozdev.org/update.php/id2/citizendium_google.src -->
 
 <!--   <UpdateInterval>7</UpdateInterval> -->
 <!--   <UpdateUrl>http://mycroft.mozdev.org/update.php/id2/citizendium_google.src</UpdateUrl> -->

 <!-- and then the code continues. -->  

 
 <os:Url type="text/html" method="GET" template="http://www.google.com/search?q=site:citizendium.org&amp;q={searchTerms}&amp;
 sourceid=mozilla-search&amp;start=0&amp;start=0&amp;ie=utf-8&amp;oe=utf-8">
 </os:Url>
 </SearchPlugin>
 


The .src file

The next file I named “citizendium_google.src”, and placed it in the “searchplugins-backup” sub-folder of the above folder.


 # A search of *.citizendium.org using the Google search engine.
 # Christo Muller <christom@kingsley.co.za>
 # Based on the "Wikipedia&Google" Search by Thomas Guignard <thomas.guignard@epfl.ch>
 # Version: 20070131
 
 <search
    version="7.1"
    name="Citizendium&Google"
    description="Use Google to search Citizendium"
    method="GET"
    action="http://www.google.com/search"
    searchForm="http://www.google.com"
    queryCharset="utf-8"
 >
 
    <input name="q" value="site:Citizendium.org">
    <input name="q" user>
    <input name="sourceid" value="mozilla-search">
    <inputnext name="start" factor="10">
    <inputprev name="start" factor="10">
    <input name="ie" value="utf-8">
    <input name="oe" value="utf-8">
    <interpret
        browserResultType="result"
        charset = "UTF-8"
        resultListStart="<!--a-->"
        resultListEnd="<!--z-->"
        resultItemStart="<!--m-->"
        resultItemEnd="<!--n-->"
    >
 
 </search>
 
 # Comment: This next part is for when the code is on the http://mycroft.mozdev.org/ pages
  
 # <browser
 #  update="http://mycroft.mozdev.org/update.php/id2/citizendium_google.src"
 #  updateIcon="http://mycroft.mozdev.org/update.php/id2/citizendium_google.png"
 #  updateCheckDays="7"
 # >
 

It works for me. I hope you find it useful. 20:16, 3 February 2007 (CST)