By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,034 Members | 1,028 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,034 IT Pros & Developers. It's quick & easy.

Wikipedia bookmarklet for Opera 7.54?

P: n/a
Hi, I am trying to find a wikipedia bookmarklet for Opera that would
allow me to lookup something highlighted on a page. I could have sworn
that the one i had worked until i had to reinstall opera (why would
that make a difference? all the other bookmarklets continued to work).
Any help would be thoroughly appreciated, perhaps someone out there has
written such a bookmarklet or knows where to find one?
Thank you,

-Gaiko

Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Gaikokujin Kyofusho schrieb:
Hi, I am trying to find a wikipedia bookmarklet for Opera that would
allow me to lookup something highlighted on a page. I could have sworn
that the one i had worked until i had to reinstall opera (why would
that make a difference? all the other bookmarklets continued to work).
Any help would be thoroughly appreciated, perhaps someone out there has
written such a bookmarklet or knows where to find one?
Thank you,

-Gaiko


I don't know whether this bookmarklet fits in opera, you may try it:
-----------

javascript:
var s=window.getSelection().toString();
for(var i=0;!s&&i<frames.length;i++)s=frames[i].getSelection().toString();
var w=window.open('http://en.wikipedia.org/'+
(s?escape(s.replace(/ /g,'_')):''),
'wiki','width=950,height=600,scrollbars=yes,resiza ble=yes');
w.focus();

-----------
Best regards, wz
p.s.(1): I assume you know you'll have to remove the linefeeds.
p.s.(2): Maybe you'll have to replace window.getSelection()
with the ( deprecated ) method document.getSelection().
Jul 23 '05 #2

P: n/a
On Fri, 14 Jan 2005 00:56:47 +0100, wolfgang zeidler
<di**********************************@arcor.de> wrote:
Gaikokujin Kyofusho schrieb:
Hi, I am trying to find a wikipedia bookmarklet for Opera that would
allow me to lookup something highlighted on a page. I could have sworn
that the one i had worked until i had to reinstall opera (why would
that make a difference? all the other bookmarklets continued to work).
Any help would be thoroughly appreciated, perhaps someone out there has
written such a bookmarklet or knows where to find one?
Thank you,
-Gaiko


I don't know whether this bookmarklet fits in opera, you may try it:
-----------

javascript:
var s=window.getSelection().toString();
for(var
i=0;!s&&i<frames.length;i++)s=frames[i].getSelection().toString();
var w=window.open('http://en.wikipedia.org/'+
(s?escape(s.replace(/ /g,'_')):''),
'wiki','width=950,height=600,scrollbars=yes,resiza ble=yes');
w.focus();

-----------
Best regards, wz
p.s.(1): I assume you know you'll have to remove the linefeeds.
p.s.(2): Maybe you'll have to replace window.getSelection()
with the ( deprecated ) method document.getSelection().


"Fits" is not a serious issue in Opera. When actually used as a
bookmarklet (in Bookmarks rather than as a button) the legal length is
quite long.

If you were to drag it to a button, then (besides length) you also have to
insure that you don't use any double quotes. In some of the early versions
of 7 it would also have trouble with "|", "&" or ">", but I believe
they've fixed that issue.

--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.