Can we have a thread on how to replace OM's missing functions with bookmarklets?

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

31. May 2010, 19:19:17

nttrllg-2o

Posts: 114

Can we have a thread on how to replace OM's missing functions with bookmarklets?

Page source.

javascript:(function(){w=window.innerWidth-15+'px';c=unescape(document.documentElement.innerHTML);c=c.replace(/(<\/[^>]+>)/g,'$1\r\n').replace(/</g,'&lt;').replace(/>/g,'&gt;');document.write('<html><head><style%20type="text\/css">pre{width:'+w+';word-wrap:break-word;}<\/style><title>Page%20Source<\/title><\/head><body><pre>'+c+'<\/pre><\/body><\/html>');document.close();})();

1. June 2010, 14:00:15 (edited)

nttrllg-2o

Posts: 114

Translate page into English.

javascript:(function(){e=(document.charset||document.characterSet);location.href='http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&hl=en&langpair=auto|en&tbb=1&ie='+e;})();

1. June 2010, 14:00:54 (edited)

nttrllg-2o

Posts: 114

Link list.

javascript:(function(){w=window.innerWidth-15+'px';c='<html><head><style%20type="text\/css">div{width:'+w+';word-wrap:break-word;}<\/style><title>Link%20List<\/title><\/head><body><div>';for(i=0;x=document.links[i];i++)c+='<a%20href="'+x.href+'">'+x.href+'<\/a>
';document.write(c+'<\/div><\/body><\/html>');document.close();})();

1. June 2010, 14:01:48 (edited)

nttrllg-2o

Posts: 114

Page info.

javascript:(function(){w=window.innerWidth-15+'px';d=window.document;c='Title:%20'+d.title+'
URL:%20'+d.URL+'
Last%20Modified:%20'+d.lastModified+'

Cookies:
'+document.cookie.replace(/;/g,'
');document.write('<html><head><style%20type="text\/css">div{width:'+w+';word-wrap:break-word;}<\/style><title>Page%20Info<\/title><\/head><body><div>'+c+'<\/div><\/body><\/html>');document.close();})();

1. June 2010, 05:39:34

bigdopeRENAMED

Banned user

Bro. what's this ?

1. June 2010, 08:51:11

miyuru

Posts: 1070

@bigdope Bookmarklets. Copy the code you need as a bookmark, and save it to a Speed Dial for easy access.
@nttrllg-2o Wonderful job. Keep it up !
-----
"Don't tell me that sky is the limit when I already see footsteps on the moon !"

Quarrel for the improvement of Opera Mini!

Discuss on mobile stuff:
<a href="http://www.mobileroyale.co.cc">Mobile Royale - Mobile News & Downloads</a>

1. June 2010, 10:48:18

bigdopeRENAMED

Banned user

Originally posted by miyuru:

@bigdope Bookmarklets. Copy the code you need as a bookmark, and save it to a Speed Dial for easy access.
@nttrllg-2o Wonderful job. Keep it up !


Can you explain it briefly ?
i copied a code and tried to access it. but got invalid url error

1. June 2010, 12:32:17

miyuru

Posts: 1070

@bigdope Apparently some of these mentioned do not work properly. You can find more info at o.yeswap.com .
-----
"Don't tell me that sky is the limit when I already see footsteps on the moon !"

Quarrel for the improvement of Opera Mini!

Discuss on mobile stuff:
<a href="http://www.mobileroyale.co.cc">Mobile Royale - Mobile News & Downloads</a>

1. June 2010, 14:06:31

bigdopeRENAMED

Banned user

Originally posted by miyuru:

@bigdope Apparently some of these mentioned do not work properly. You can find more info at o.yeswap.com .


K thanks

1. June 2010, 14:23:37

nttrllg-2o

Posts: 114

@miyuru @bigdope
Apparently the problem was with this part:
.replace(/</g,'&lt;').replace(/>/g,'&gt;')

When the post was edited ( I did to bold the text), that line was changed (by my browser?) to:
.replace(/</g,'<').replace(/>/g,'>')

I have now fixed and rechecked all after submit. They should all be working now.

@miyuru
Thank you. I'm still writing new ones, and will post when they are done.bigsmile

1. June 2010, 16:15:14

SAGRID

Posts: 2753

The source is 'server:source' or 'server:sourcewww.google.com' where Google (or any address) page is not loaded.
God's In His Heaven, All's Right With The World

2. June 2010, 21:05:23 (edited)

nttrllg-2o

Posts: 114

Image list.

javascript:(function(){w=window.innerWidth-15+'px';c='<html><head><style%20type="text\/css">div,img{max-width:'+w+';height:auto;word-wrap:break-word;}<\/style><title>Image%20List<\/title><\/head><body><div>';for(j=0;x=document.images[j];j++)c+='<img%20src="'+x.src+'"/>
<a href="'+x.src+'">'+x.src+'<\/a>

';document.write(c+'<\/div><\/body><\/html>');document.close();})();

2. June 2010, 21:08:49 (edited)

nttrllg-2o

Posts: 114

Originally posted by SAGRID:

The source is 'server:source' or 'server:sourcewww.google.com' where Google (or any address) page is not loaded.


That is good to know

2. June 2010, 23:45:53 (edited)

nttrllg-2o

Posts: 114

I wasn't aware that posts can't be edited after 1 day. In any case, I have now put screenshots of the earlier bookmarklets with the code as my first blog here.
http://my.opera.com/nttrllg-2o/blog/bookmarklets-replacing-some-of-opera-minis-missing-features
Come check it out bigsmile

3. June 2010, 22:06:13

nttrllg-2o

Posts: 114

Character map.

javascript:(function(){w=window.innerWidth-15+'px';c='<html><head><style%20type="text\/css">pre{width:'+w+';}li{display:block;width:4.5em;height:2em;float:left;}<\/style><title>Character Map<\/title><\/head><body><pre><ul>';l=[0x21,0x2f,0x3a,0x40,0x7b,0x7e,0xa0,0xbf,0x2022,0x2022,0x2026,0x2026];for(k=0;k<l.length;k+=2)for(j=l[k];j<=l[k+1];j++)c+='<li>'+j+':&#'+j+'<\/li>';document.write(c+'<\/ul><\/pre><\/body><\/html>');document.close();})();


More here

5. June 2010, 15:31:17

cqrt

Posts: 9

Add to 'Read It Later' (just make sure you are logged in to readitlaterlist.com first, it's a persistent logon)

javascript:(function(){ISRIL_H='edaa';ISRIL_SCRIPT=document.createElement('SCRIPT');ISRIL_SCRIPT.type='text/javascript';ISRIL_SCRIPT.src='http://readitlaterlist.com/b/r.js';document.getElementsByTagName('head')[0].appendChild(ISRIL_SCRIPT)})();

5. June 2010, 18:33:34

nttrllg-2o

Posts: 114

Originally posted by cqrt:

Add to 'Read It Later' (just make sure you are logged in to readitlaterlist.com first, it's a persistent logon)


This one is a bit dangerous, don't you think? It uses an external script source that can be altered in the future without any knowledge of the user. I'd be very cautious using something like that.

8. June 2010, 17:08:29

Ngamer01

Posts: 643

How do I use the bookmarklets? Do I just save them on desktop and Opera Link them over to Mini 5?

I had tried copying and pasting the bookmarklet on Opera Mini 5, but the coding is displayed as "j a v a s c r i p t" (and so forth) instead of "javascript" (and so forth) on Mini.

9. June 2010, 16:12:15

nttrllg-2o

Posts: 114

I use the Bookmarks in Opera Link to create the bookmarklets on the desktop, then sync Opera Mini.

1, Log in Opera Community from the desktop.
2, From the Opera Link drop-down, go to Bookmarks.
3, If you have synced with Opera Mini before, there should be an Opera Mini folder. If you don't have the folder, logout and sync with OM first so the folder will be created.
4, Open the Opera Mini folder.
5, Click on add bookmark.
6, Pick a name for your bookmarklet, and paste the code into the address field.
7, Save.
8, Next time you sync OM, the bookmarklet will be available in OM's Bookmarks.

I'm not sure if this is true for everybody, but when I browse this page on OM, the code is cut off at the end for being too long. If anyone need to copy the code in its entirety using OM, go to my opera blog page.

P.S. I'll make some adjustments on my blog page shortly so the space between characters when viewing on OM will go away.

tl;dr: Use Bookmarks in Opera Link from the desktop then sync with OM.

9. June 2010, 22:02:16

Ngamer01

Posts: 643

Originally posted by nttrllg-2o:

tl;dr: Use Bookmarks in Opera Link from the desktop then sync with OM.



D'oh. I didn't think of that. Thanks for the help! =)

Forums » Opera for mobiles/devices » Opera Mini