Viewing link URLs in OM6

Forums » Opera for mobiles/devices » Opera Mini

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

11. June 2011, 16:56:46

fiddle63

Posts: 289

Viewing link URLs in OM6

One question quickly resolved, one more to go. :-)

In OM 6.0, is there any way to get information about a hyperlink without actually visiting the linked page? I often want to check where a link goes before clicking it. In 4.3 it came up in the context menu for the link (move cursor to the link then press 1), but in 6.0 the only options are <em>open in new tab</em> and <em>select text</em>.
======================================
The Other Blog Without a Name:
http://timtfj.wordpress.com/
======================================

11. June 2011, 20:37:05

SAGRID

Banned user

javascript:%28function%28%29%7Bvar%20i,c,x,h;for%28i=0;x=document.links;++i%29%7Bh=x.href;x.title+=%27%20%27+x.innerHTML;while%28c=x.firstChild%29x.removeChild%28c%29;x.appendChild%28document.createTextNode%28h%29%29;%7D%7D%29%28%29
God's In His Heaven, All's Right With The World

11. June 2011, 23:17:20 (edited)

Menneisyys

Posts: 838

Originally posted by fiddle63:

One question quickly resolved, one more to go. :-)

In OM 6.0, is there any way to get information about a hyperlink without actually visiting the linked page? I often want to check where a link goes before clicking it. In 4.3 it came up in the context menu for the link (move cursor to the link then press 1), but in 6.0 the only options are open in new tab and select text.



1, Go to http://o.yeswap.com/
2, scroll down to Links as URLs Replace links on the current page with their target URLs.
3, tap the link
4, save the scriptlet

Incidentally, it's the same scriptlet as SAGRID posted; however, the []'s in his version has been converted to (and, therefore, made useless) <>'s by the Web engine. I couldn't make it work here (for some reason, changing the [ i ] to %5Bi%5D just didn't work) so you'll need to copy it from the above page.

EDIT: finished fully testing under OM, works just great.

12. June 2011, 10:09:39

SAGRID

Banned user

For download links (e.g. m.opera.com/?mini.jad) the final link could be seen in another (blank) tab attempting to download a jad/jar file and chose 'no' for exit jad link should remain in address bar on the next tab. I hope that redir/refresh problem for current link will be fixed on next mini6 release.
God's In His Heaven, All's Right With The World

12. June 2011, 13:38:17

metoodeep

Posts: 85

Didn't get you . . !

What to do after bookmarking script , how to use ?

12. June 2011, 13:54:30

SAGRID

Banned user

Copy/paste as bookmark or speed dial and push that link when is needed altering the content of any page via javascript.
God's In His Heaven, All's Right With The World

12. June 2011, 17:02:57

fiddle63

Posts: 289

Originally posted by SAGRID:

Copy/paste as bookmark or speed dial and push that link when is needed altering the content of any page via javascript.


Thanks for this! I'll give it a try, though all my speed dials are currently in use so I'll have to do it the more laborious way, from a bookmark.

Probably not as laborious as my current method though, which is either to give in and start loading the page in a new tab, or to switch back to 4.3 and view the details there! (The two happily run simultaneously.)
======================================
The Other Blog Without a Name:
http://timtfj.wordpress.com/
======================================

12. June 2011, 17:10:45

SAGRID

Banned user

Bookmark and taste an url part (like 'jav') in top bar and the whole link will show up inlined when 'fullscreen edit' is set off in app settings (some devices doesn't have that option).
God's In His Heaven, All's Right With The World

12. June 2011, 17:22:17

Menneisyys

Posts: 838

Originally posted by metoodeep:

Didn't get you . . !

What to do after bookmarking script , how to use ?



Read the dedicated chapter ("To make use of these scripts,") in my tutorial at http://my.opera.com/community/forums/topic.dml?id=1005722

12. June 2011, 17:30:16

fiddle63

Posts: 289

Originally posted by SAGRID:

Bookmark and taste an url part (like 'jav') in top bar and the whole link will show up inlined when 'fullscreen edit' is set off in app settings (some devices doesn't have that option).


Good point! I already use that a lot for some of my bookmarks.
======================================
The Other Blog Without a Name:
http://timtfj.wordpress.com/
======================================

Forums » Opera for mobiles/devices » Opera Mini