Adobe Acrobat 7, Changing the Websearch from Yahoo to Google
Adobe Acrobat 7 includes a Yahoo toolbar integrated into the reader if you choose to install it. If Google is your preferred search engine, you can easily change the integrated search to use Google instead of Yahoo.
- Close Acrobat.
- Locate WebSearch.js in C:\Program Files\Adobe\Acrobat 7.0\Acrobat\Javascripts (or in your install path)
- Make a backup of the file.
- Remove the "Read Only" attribute of WebSearch.js
- Locate the method SearchBuildURL and delete it.
- Add the following method in its place
function SearchBuildURL(query, mode, country, vender, pdfOnly)
{
var url, queryStr;
if (mode < 0 || mode > 2)
return "";
url = "http://www.google.com/search?hl=en" ;
queryStr = "";
for (i=0; i < query.length; i++)
{
if (query.charAt(i) == ' ')
queryStr = queryStr + '+';
else
queryStr = queryStr + query.charAt(i);
}
switch (mode)
{
case 0: /* kMatchPhrase */
url = url + "&as_epq=" + queryStr;
break;
case 1: /* kMatchAllWords */
url = url + "&as_q=" + queryStr;
break;
case 2: /* kMatchAnyWords */
url = url + "&as_oq=" + queryStr;
break;
}
if (pdfOnly)
url = url + "&as_filetype=pdf";
else
url = url;
return url;
}