[thelist] Google Bookmarklet on Strike!
Timothy Martens
timfm at hawaii.rr.com
Thu Mar 14 05:04:01 CST 2002
My trusty Google bookmarklet has stopped working! Maybe it just died
from overuse :)
They must have changed something in their code. Here's the bookmarklet
(I've added the whitespace):
javascript:
Qr=document.selection.createRange().text;
if(!Qr){
void(Qr=prompt('Search Google for...',''))
}
if(Qr)location.href='http://google.com/search?query='+escape(Qr)+'&num=1
0'
Here's the Google's snippets...
function e(x){x =escape(x).replace(/\+/g,"%2b");return x;}
function
c(p){if(document.f.q.value.length)location.href=p+'&q='+e(document.f.q.v
alue);else location.href=p; return false;}
and the abbreviated <form>...
<form action="/search" name="f">
<input maxlength="256" size="55" name="q" value="">
<input type="submit" value="Google Search" name="btnG">
</form>
I tried replacing 'query' with 'q' but that didn't work. But when I
paste: http://www.google.com/search?q=web into the URL field that works
fine. Any ideas? BTW, has anyone created one that works in N6?
//t
::::::::::::::::::::::::
<!--Timothy Martens
timfm at hawaii.rr.com-->
More information about the thelist
mailing list