Re: going to the URL of a selected text
Adam Feakin <[email protected]>
| Newsgroups | gmane.comp.web.galeon.user |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Jul 23, 2005 at 04:38:30PM +0900, Jeff Co wrote:
> I see what you are saying. If I change Preferences-->Mouse to "Open URL" in
> new/same tab, I can achieve what you are saying. But what about just fixing
> the context menu, so that it works with url texts that don't begin with
> "http"?
Bookmarklets are just javascript code saved as a bookmark. There are
sites out there with bookmarklets to download - you might be able to
find a "Go to selected URL" that works better on one of those. Or, if
you know javascript just go to your bookmarklet menu and right
click-properties on the selected URL one. The code is all in the
location.
it looks something like:
javascript:
if(frames.length>0) {
alert('Frames!')
} else {
ulBV3pQy=document.getSelection();
if(ulBV3pQy!='') {
location.href=ulBV3pQy.replace(/\042/g,'').replace(/\047/g,'').replace(/\s/g,'')
} else {
alert('Select text on page like:\n http://www.domain.com...')
}
}
--
Adam
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFC4iPl9sYCu2XRa/oRAgiFAJ9n+LKASVe8pIywrzXqyZceoD19sQCgiMVn KeQi7J/4HehYXDEDK6j8ox4= =rD3U -----END PGP SIGNATURE-----