n.a.b.b.e.r.

(not another boring blogger earning runs)

Subscribe to RSS feed

7 bookmarklets replacing some of Opera Mini's missing features

, , ,

  • View 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();})();
  • Page info
    javascript:(function(){w=window.innerWidth-15+'px';d=window.document;c='Title:%20'+d.title+'<br\/>URL:%20'+d.URL+'<br\/>Last%20Modified:%20'+d.lastModified+'<br\/><br\/>Cookies:<br\/>'+document.cookie.replace(/;/g,'<br\/>');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();})();
  • 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(j=0;x=document.links[j];j++)c+='<a%20href="'+x.href+'">'+x.href+'<\/a><br\/>';document.write(c+'<\/div><\/body><\/html>');document.close();})();
  • 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+'"\/><br\/><a%20href="'+x.src+'">'+x.src+'<\/a><br\/><br\/>';document.write(c+'<\/div><\/body><\/html>');document.close();})();
  • Translate page into English
    javascript:(function(){e=(document.charset||document.characterSet);location.href='http://translate.google.com/translate?u=%27+encodeURIComponent(location.href)+%27&amp;hl=en&amp;langpair=auto|en&tbb=1&ie='+e;})();
  • 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%20Map<\/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();})();
  • Navigate to top/bottom
    javascript:/*location.href="http://Navigate/"*/(function(){d=document;l=d.location.toString();b=d.body;a=function(s){return'<a%20name="'+s+'"%20id="'+s+'"><\/a>';};q=prompt("Navigate%20to:%20(t:top,b:bottom)","");if(q){if(!d.getElementById('oNBtom'))b.innerHTML=a('oNTop')+b.innerHTML+a('oNBtom');switch(q){case"t":case"T":l=l.replace(/^([^#]+).*/,"$1#oNTop");break;case"b":case"B":l=l.replace(/^([^#]+).*/,"$1#oNBtom");break;}location.href=l;}})();
June 2013
M T W T F S S
May 2013July 2013
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30