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().