Hello, everyone!
I am so happy now that my deskbar is working again! So of course I now
have to make some suggestions:
- Is it possible to make all searches open in a maximized browser
window? Someone else mentioned this earlier today, but I wanted to say
that I am also highly in favour of this, if it is possible. (I did try
to make some changes to search.htm to see if I could get this working on
my own, but I believe my JavaScript skills were simply not robust enough
to get the job done.)
- When I change one of the aliases (e.g. having ; go to the Merriam
Webster Thesaurus, instead of Thesaurus.com), the help file still lists
that alias under its original search, as well as under the search I want
it to point to. I guess it isn't a huge problem, but it can get a bit
confusing.
Any help/feedback on these suggestions will be much appreciated.
I would also like to contribute the searches I have created for my own
use. First, let me say that my JavaScript skills are a bit rusty, so
these are pretty much all adaptations of other searches, and so they
might not be "optimized" (especially the phone number ones, because I am
stumped so far by regular expressions) - again, any
suggestions/corrections are very welcome.
- rt, rotten tomatoes - for looking up movie info and reviews
- ar, all recipes - for looking up recipes
- ul, snopes urban legends - for looking up (you guessed it) urban
legends, as well as email hoaxes and rumours, etc
And some searches with a Canadian flavour:
- chap, chapters/indigo - shop for books, DVD's, etc
- twn, the weather network - look up your weather forecast by city
- is, isb, isc, isp, ispb, infospace phone number lookups - these 5
should probably be consolidated into 2 searches, using switches
I have attached these to the message.
Thanks again for your help yesterday and today, and thanks in advance
for any help in the future. Kudos to everyone who has contributed!!
Sarah
<search function="ar">
<name>All Recipes</name>
<description>
Search for recipes and meal ideas at AllRecipes.com.<br/>
<div class="helpboxDescLabels">Example:</div>
<table class="helpboxDescTable">
<tr><td>ar cheesecake</td></tr>
</table>
</description>
<category>Other</category>
<link>http://www.allrecipes.com/</link>
<contributor>Sarah Sweeney</contributor>
<email>[EMAIL PROTECTED]</email>
<form name="allrecipesform"
target="_blank"
action="http://search.allrecipes.com/SearchResults.asp"
method="get">
<input type="hidden" name="site" value="allrecipes" />
<input type="hidden" name="allrecipes" value="allrecipes" />
<input type="hidden" name="q1" />
</form>
<script><![CDATA[
function ar(q, switches)
{
if( q == "" )
openSearchWindow("http://www.allrecipes.com/");
else
{
document.allrecipesform["q1"].value = q;
submitForm(allrecipesform);
}
}
]]></script>
</search>
<search function="chap">
<name>Chapters|Indigo</name>
<description>
Search books, videos, DVDs at Chapters.Indigo.ca.<br/>
<div class="helpboxDescLabels">Example:</div>
<table class="helpboxDescTable">
<tr><td>chap Ender's Game</td></tr>
</table>
</description>
<category>Shopping</category>
<link>http://chapters.indigo.ca/</link>
<contributor>Sarah Sweeney</contributor>
<email>[EMAIL PROTECTED]</email>
<form name="chaptersform"
target="_blank"
action="http://chapters.indigo.ca/search/default.asp"
method="post">
<input type="hidden" name="Search_Method" value="QuickSearch" />
<input type="hidden" name="Search_Phrase_QuickSearch" />
<input type="hidden" name="Search_Modifier_QuickSearch" value="QuickSearch" />
<input type="hidden" name="Search_Catalog" value="Books,Video,DVD" />
</form>
<script><![CDATA[
function chap(q, switches)
{
if( q == "" )
openSearchWindow("http://chapters.indigo.ca/");
else
{
document.chaptersform["Search_Phrase_QuickSearch"].value = q;
submitForm(chaptersform);
}
}
]]></script>
</search>
<search function="is">
<name>InfoSpace.ca Individual Search</name>
<description>
Look up phone numbers and addresses in Canada.<br/>
<div class="helpboxDescLabels">Example:</div>
<table class="helpboxDescTable">
<tr><td>is John Smith (Halifax, NS)</td></tr>
</table>
</description>
<category>People and Places</category>
<link>http://www.infospace.com/canada/redirs_all.htm?pgtarg=ppli</link>
<contributor>Sarah Sweeney</contributor>
<email>[EMAIL PROTECTED]</email>
<form name="infospaceform"
action="http://kevdb.infospace.com/canada/kevdb"
method="get">
<input type="hidden" name="OTMPL" value="res/r1.html" />
<input type="hidden" name="QFM" value="N" />
<input type="hidden" name="QK" value="5" />
<input type="hidden" name="KCFG" value="CA" />
<input type="hidden" name="QN" />
<input type="hidden" name="QF" />
<input type="hidden" name="QC" />
<input type="hidden" name="QS" />
</form>
<script><![CDATA[
function is(q)
{
res = q.match(/(((\w+\s+)?\w+)\s+)?(\w+)(\s*\((([^,]+),?\s*)?(\w\w)\))?/);
if (!res)
openSearchWindow("http://www.infospace.com/canada/redirs_all.htm?pgtarg=ppli&");
else
{
document.infospaceform.QF.value=(res[2] ? res[2] : "");
document.infospaceform.QN.value=(res[4] ? res[4] : "");
document.infospaceform.QC.value=(res[7] ? res[7] : "");
document.infospaceform.QS.value=(res[8] ? res[8].toUpperCase() : "");
submitForm(infospaceform);
}
}
]]></script>
</search>
<search function="isb">
<name>InfoSpace.ca Business Search</name>
<description>
Look up businesses in Canada.<br/>
<div class="helpboxDescLabels">Example:</div>
<table class="helpboxDescTable">
<tr><td>isb Future Shop (Halifax, NS)</td></tr>
</table>
</description>
<category>People and Places</category>
<link>http://www.infospace.com/canada/redirs_all.htm?pgtarg=ylwi</link>
<contributor>Sarah Sweeney</contributor>
<email>[EMAIL PROTECTED]</email>
<form name="infospacebform"
action="http://ypng.infospace.com/canada/ypv3ca/redir.htm"
method="get">
<input type="hidden" name="fromform" value="qsearch" />
<input type="hidden" name="qhqn" />
<input type="hidden" name="wqhqn" />
<input type="hidden" name="qc" />
<input type="hidden" name="QS" />
</form>
<script><![CDATA[
function isb(q)
{
res = q.match(/(\w[^\(]*\w)(\s*\((([^,]+),?\s*)?(\w\w)\))?/);
if (!res)
openSearchWindow("http://www.infospace.com/canada/redirs_all.htm?pgtarg=ylwi&");
else
{
document.infospacebform.wqhqn.value="";
document.infospacebform.qhqn.value=(res[1] ? res[1] : "");
document.infospacebform.qc.value=(res[4] ? res[4] : "");
document.infospacebform.QS.value=(res[5] ? res[5].toUpperCase() : "");
submitForm(infospacebform);
}
}
]]></script>
</search>
<search function="isc">
<name>InfoSpace.ca Category Search</name>
<description>
Search business categories in Canada.<br/>
<div class="helpboxDescLabels">Example:</div>
<table class="helpboxDescTable">
<tr><td>isc tailors (Halifax, NS)</td></tr>
</table>
</description>
<category>People and Places</category>
<link>http://www.infospace.com/canada/redirs_all.htm?pgtarg=ylwi</link>
<contributor>Sarah Sweeney</contributor>
<email>[EMAIL PROTECTED]</email>
<form name="infospacecform"
action="http://ypng.infospace.com/canada/ypv3ca/redir.htm"
method="get">
<input type="hidden" name="fromform" value="qsearch" />
<input type="hidden" name="qhqn" />
<input type="hidden" name="wqhqn" />
<input type="hidden" name="qc" />
<input type="hidden" name="QS" />
</form>
<script><![CDATA[
function isc(q)
{
res = q.match(/(\w[^\(]*\w)(\s*\((([^,]+),?\s*)?(\w\w)\))?/);
if (!res)
openSearchWindow("http://www.infospace.com/canada/redirs_all.htm?pgtarg=ylwi&");
else
{
document.infospacebform.wqhqn.value="1";
document.infospacebform.qhqn.value=(res[1] ? res[1] : "");
document.infospacebform.qc.value=(res[4] ? res[4] : "");
document.infospacebform.QS.value=(res[5] ? res[5].toUpperCase() : "");
submitForm(infospacebform);
}
}
]]></script>
</search>
<search function="isp">
<name>Reverse Phone Lookup</name>
<description>
Find a person and address in Canada by telephone number.<br/>
<div class="helpboxDescLabels">Example:</div>
<table class="helpboxDescTable">
<tr><td>isp 902-555-1212</td></tr>
</table>
</description>
<category>People and Places</category>
<link>http://www.infospace.com/canada/reverse_ca.htm</link>
<contributor>Sarah Sweeney</contributor>
<email>[EMAIL PROTECTED]</email>
<form name="reversephoneform"
action="http://ypng.infospace.com/canada/ypv3ca/redir.htm"
method="get">
<input type="hidden" name="searchtype" value="all" />
<input type="hidden" name="fromform" value="revphone" />
<input type="hidden" name="ClickTRK" value="REVRP3" />
<input type="hidden" name="QP" />
<input type="hidden" name="wqp" />
</form>
<script><![CDATA[
phone_regex = new RegExp("^([0-9]{3})\\s*[-.]?\\s*([0-9]{3}\\s*[-.]?\\s*[0-9]{4})$" +
"|^\\(([0-9]{3})\\)\\s*([0-9]{3}\\s*-?\\s*[0-9]{4})$", "");
// the auto-detection routine used for special handling of strings entered into the
// toolbar that look like phone number lookups
function autodetect_phone(q)
{
// detect strings that look like phone numbers
res = phone_regex.exec(q);
if (res)
{
phone(q);
return true;
}
}
function isp(q)
{
if (q == "")
{
openSearchWindow("http://www.infospace.com/canada.widept/reverse_ca.htm");
}else{
// detect strings that look like phone numbers
res = phone_regex.exec(q);
if (res)
{
if (res[1])
{
ac=res[1].replace( / /, "", "g");
pn=res[2].replace( / /, "", "g");
}
else
{
ac=res[3].replace( / /, "", "g");
pn=res[4].replace( / /, "", "g");;
}
document.reversephoneform.QP.value=ac + "-" + pn;
//1=home, blank=work
document.reversephoneform.wqp.value="1";
submitForm(reversephoneform);
}
else
{
return false;
}
}
}
]]></script>
</search>
<search function="ispb">
<name>Reverse Business Phone Lookup</name>
<description>
Find a business and address in Canada by telephone number.<br/>
<div class="helpboxDescLabels">Example:</div>
<table class="helpboxDescTable">
<tr><td>ispb 902-555-1212</td></tr>
</table>
</description>
<category>People and Places</category>
<link>http://ypng.infospace.com/canada/ypv3ca/reverse.htm?fromform=revphone</link>
<contributor>Sarah Sweeney</contributor>
<email>[EMAIL PROTECTED]</email>
<form name="reversephoneformb"
action="http://ypng.infospace.com/canada/ypv3ca/redir.htm"
method="get">
<input type="hidden" name="searchtype" value="all" />
<input type="hidden" name="fromform" value="revphone" />
<input type="hidden" name="ClickTRK" value="REVRP3" />
<input type="hidden" name="QP" />
<input type="hidden" name="wqp" />
</form>
<script><![CDATA[
phone_regex = new RegExp("^([0-9]{3})\\s*[-.]?\\s*([0-9]{3}\\s*[-.]?\\s*[0-9]{4})$" +
"|^\\(([0-9]{3})\\)\\s*([0-9]{3}\\s*-?\\s*[0-9]{4})$", "");
// the auto-detection routine used for special handling of strings entered into the
// toolbar that look like phone number lookups
function autodetect_phone(q)
{
// detect strings that look like phone numbers
res = phone_regex.exec(q);
if (res)
{
phone(q);
return true;
}
}
function ispb(q)
{
if (q == "")
{
openSearchWindow("http://www.infospace.com/canada.widept/reverse_ca.htm");
}else{
// detect strings that look like phone numbers
res = phone_regex.exec(q);
if (res)
{
if (res[1])
{
ac=res[1].replace( / /, "", "g");
pn=res[2].replace( / /, "", "g");
}
else
{
ac=res[3].replace( / /, "", "g");
pn=res[4].replace( / /, "", "g");;
}
document.reversephoneformb.QP.value=ac + "-" + pn;
//1=home, blank=work
document.reversephoneformb.wqp.value="";
submitForm(reversephoneformb);
}
else
{
return false;
}
}
}
]]></script>
</search>
<search function="rt">
<name>Rotten Tomatoes</name>
<description>
Search for movie info and reviews on RottenTomatoes.com.<br/>
<div class="helpboxDescLabels">Example:</div>
<table class="helpboxDescTable">
<tr><td>rt Shawshank Redemption</td></tr>
</table>
</description>
<category>Entertainment</category>
<link>http://www.rottentomatoes.com/</link>
<contributor>Sarah Sweeney</contributor>
<email>[EMAIL PROTECTED]</email>
<form name="rtmf"
target="_blank"
action="http://www.rottentomatoes.com/search/movie.php"
method="post">
<input type="hidden" name="search"/>
</form>
<script><![CDATA[
function rt(q, switches)
{
if( q == "" )
openSearchWindow("http://www.rottentomatoes.com/");
else
{
document.rtmf["search"].value = q;
submitForm(rtmf);
}
}
]]></script>
</search>
<search function="twn">
<name>The Weather Network Forecast</name>
<description>
Search for Canadian weather forecasts by city.<br/>
<div class="helpboxDescLabels">Example:</div>
<table class="helpboxDescTable">
<tr><td>twn Halifax</td></tr>
</table>
</description>
<category>News</category>
<link>http://www.theweathernetwork.com/</link>
<contributor>Sarah Sweeney</contributor>
<email>[EMAIL PROTECTED]</email>
<form name="weathernetworkform"
action="http://www.theweathernetwork.com/services/search/search.asp"
method="post">
<input type="hidden" name="recherche"/>
</form>
<script><![CDATA[
function twn(q)
{
if( q == "" )
openSearchWindow("http://www.theweathernetwork.com/");
else
{
document.weathernetworkform.recherche.value = q;
submitForm(weathernetworkform);
}
}
]]></script>
</search>
<search function="ul">
<name>Snopes.com Urban Legends</name>
<description>
Search for urban legends, email hoaxes, rumours, etc, at Snopes.com.<br/>
<div class="helpboxDescLabels">Example:</div>
<table class="helpboxDescTable">
<tr><td>ul flashing headlights</td></tr>
</table>
</description>
<category>Reference</category>
<link>http://www.snopes2.com/ulindex.asp</link>
<contributor>Sarah Sweeney</contributor>
<email>[EMAIL PROTECTED]</email>
<form name="snopesform"
target="_blank"
method="get"
action="http://search.atomz.com/search/">
<input type="hidden" value=" Search " />
<input type="hidden" name="sp-q" />
<input type="hidden" name="sp-a" value="00062d45-sp00000000" />
<input type="hidden" name="sp-advanced" value="1" />
<input type="hidden" name="sp-p" value="all" />
<input type="hidden" name="sp-w-control" value="1" />
<input type="hidden" name="sp-w" value="alike" />
<input type="hidden" name="sp-date-range" value="-1" />
<input type="hidden" name="sp-x" value="any" />
<input type="hidden" name="sp-c" value="100" />
<input type="hidden" name="sp-m" value="1" />
<input type="hidden" name="sp-s" value="0" />
</form>
<script><![CDATA[
function ul(q, switches)
{
if( q == "" )
openSearchWindow("http://www.snopes2.com/ulindex.asp");
else
{
document.snopesform["sp-q"].value = q;
submitForm(snopesform);
}
}
]]></script>
</search>