7 bookmarklets replacing some of Opera Mini's missing features
Tuesday, June 1, 2010 10:03:57 PM
-
View sourcejavascript:(function(){w=window.innerWidth-15+'px';c=unescape(document.documentElement.innerHTML);c=c.replace(/(<\/[^>]+>)/g,'$1\r\n').replace(/</g,'<').replace(/>/g,'>');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 infojavascript:(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 listjavascript:(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 listjavascript:(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 Englishjavascript:(function(){e=(document.charset||document.characterSet);location.href='http://translate.google.com/translate?u=%27+encodeURIComponent(location.href)+%27&hl=en&langpair=auto|en&tbb=1&ie='+e;})();
-
Character mapjavascript:(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/bottomjavascript:/*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;}})();













