Menu

#24 more bookmarklet javascript trouble

open
nobody
None
5
2003-03-04
2003-03-04
No

I was trying to fix my Google Variable Bookmark
bookmarklet.
For some reason it had the beasy window has as:

javascript:Qr=document.getSelection()

The full bookmarklet should look like this:

javascript:Qr=document.getSelection();if(!Qr){void(Qr=prompt('Keywords...',''))};if(Qr)location.href='http://google.com/search?query='+escape(Qr)+"&btnI=I%27m+feeling+lucky"

The bookmarks.dat file has the full bookmarklet. The
edit page (http://www.io.com/~dex/beasy/flat.cgi) has
the correct url. But if you select mod you will also
get the truncated version.

I wish i could say it was the semicolon but other
entries are using the semicolon with no problem.

Discussion


Log in to post a comment.