473,385 Members | 1,465 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Wikipedia bookmarklet for Opera 7.54?

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
2 1354
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Robert Oschler | last post by:
In pre-Windows XP Internet Explorer, adding a bookmarklet for a user was really simple. All I add to do was create a link that executed addFavorite(). Internet Explorer under Windows XP won't...
4
by: gwtc | last post by:
Here is a google search site bookmarklet. This lets you search a certain website using google. What I want is the same thing, but to search a certain geocities site. When you use the current...
1
by: OtisUsenet | last post by:
Hi, I have a bookmarklet that works perfectly in Firefox, IE, Konqueror, and Opera, but in Safari 2.0.3 (417.9.2) it doesn't work. I enabled debugging and I can see "TypeError - Undefined...
25
by: bweaverusenet | last post by:
Hi. I am trying to get some javascript to work in IE6, from the address line. It works in Firefox and, I believe, IE7. It appears that with some number of nested structures, the code does not...
7
by: Amir Michail | last post by:
Hi, I would like to add a submission bookmarklet to my app that takes the current selection and pastes it into the app's rich text editor while preserving formatting. It should work in at least...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.