David said:
Thomas said:
David said:
Thomas 'PointedEars' Lahn wrote:
Thomas 'PointedEars' Lahn wrote:
David Mark wrote:
[get posting by Message-ID]
javascript:window.location="
http://groups.google.com/groups/search?hl=en&as_umsgid="+"%s".replace(/^<(news
?|
$/g,"");
That is getting all fouled up in TB, as well as GG. I tried to piece it
back together, but kept getting Google server errors.
No, bookmarklets are for your *Web* *browser*.
I know that. I pasted it into the Web browser's address bar, which
AFAIK, should have worked.
Not without a parameter value to replace the `%s'
That said, this one is a fairly simple bookmarklet; they can be written
differently (and I have done so) so that they use a default value or the
user is prompted for the parameter. If have found this one I have written
to be particularly useful:
javascript:var%20s%20=%20%22%s%22.split(/\s+/),
%20topic%20=%20(s[1]%20?%20%22%20%22%20+%20s[1]%20:%20%22%22),
%20lang%20=%20(s[1]%20&&%20/^[a-z]
{2,3}$/.test(s[1])%20?%20((topic%20=%20%22%22),%20s[1])%20:%20%22de%22);
%20void(topic%20=%20(s[0]%20&&%20s[0]%20!=%20%22%25s%22%20?%20s[0].replace(/_+/g,
%20%22%20%22)%20:%20%22%22)%20+%20topic);
%20if%20(typeof%20(topic%20=%20window.prompt(%22Query%20to%20%22%20+%20lang%20+%20%22.wikipedia.org:
%22,
%20topic))%20==%20%22string%22)%20{%20window.location%20=%20%22http://%22%20+%20lang%20+%20%22.wikipedia.org/wiki/%22%20+%20encodeURIComponent(topic.replace(/(_)
{2,}/g,%20%22$1%22).replace(/\s+/g,%20%22_%22));%20}
If you assign the keyword `wiki' to it, you can type either
wiki
or
wiki $title
or
wiki $title $language_id
in the Address Bar. In all cases you will be presented with a
window.prompt() dialog where you can refine your search. You can also type
$language_id:$title in that dialog, thanks to Wikipedia's interface. (The
prompt() dialog was necessary even for simple searches because Mozilla
could not deal with Umlauts and other characters not in US-ASCII in
bookmarklet parameters.)
Ah, I never bother with them, so I am ignorant of the mechanics
involved. I thought they were basically just javascript: links
bookmarked.
Both are possible.
Chrome 5.0.307.11 beta (for Linux) supports them, too, but you have to set
them up as "Search Engine" instead. When I imported my Firefox bookmarks
into Chrome, that was done automatically.
PointedEars