Search & Thumbnails in opera:cache for Opera Mobile
Saturday, 29. March 2008, 05:41:12
As you know thumbnails can be added in "opera:cache" for Desktop Opera v9.xx.
If you do not know this, please see "Thumbnails in opera cache"(http://my.opera.com/Lex1/blog/show.dml/1014525).
By the knowledge of this, I added thumbnails for Opera Mobile v8.65.
Replace in yours *.lng file, string «21418="Size"» on
In this case Opera profile folder is "\Application Data\Opera\".
"thumbnails-in-opera-cache.js" file contains following text strings.
If you enter opera:cache into the address field you can get on your screen

and by clicking [Thumbnails] button

and by entering a search word (in this case "png" was entered)

If you do not know this, please see "Thumbnails in opera cache"(http://my.opera.com/Lex1/blog/show.dml/1014525).
By the knowledge of this, I added thumbnails for Opera Mobile v8.65.
Replace in yours *.lng file, string «21418="Size"» on
21418="Size<script type='text/javascript' src='file://localhost//Application Data/Opera/thumbnails-in-opera-cache.js'></script>"
In this case Opera profile folder is "\Application Data\Opera\".
"thumbnails-in-opera-cache.js" file contains following text strings.
document.addEventListener('load',function() {for(var i=0; document.links[i]; i++){document.links[i].target = '_blank'};var l = document.getElementsByTagName('tr');var sf=document.createElement('input'); sf.type = 'text';sf.defaultValue='Search';sf.style='margin:0 4px;float:right;'; sf.addEventListener('focus',function(){if(this.value==this.defaultValue){this.value='';}},false);sf.addEventListener('blur',function(){if(!this.value){this.value=this.defaultValue;}},false);sf.addEventListener('keyup',function(){var v=this.value;for(var i=1, li; li=l[i]; i++){var p=li.lastChild.firstChild.innerText;if(p && p.indexOf(v)==-1){li.style='display: none'} else{li.style='display: table-row'}; }},false); var inp=document.createElement('input'); inp.type='button'; inp.value='Thumbnails';inp.style='float:right;';inp.addEventListener('click', function(){var b=/\.(jpe?g|bmp|gif|png|ico|swf|flv)$/i;var f=/\.(swf|flv)$/i;for(var i=1, li; li=l[i]; i++){var p=li.lastChild.firstChild;var c=li.lastChild.firstChild.innerText;if(li.offsetHeight!=0 && p.childNodes.length<2){if(b.test(c)){var stl='float:right; border:1px dotted black; margin:1px; padding:1px;'; if(f.test(c)){var dv=document.createElement('div');p.appendChild(dv);dv.innerHTML='<EMBED src='+p.href+'>';var fh=dv.firstChild;fh.setAttribute('height', 100);fh.setAttribute('width', 100);fh.setAttribute('style', stl+' content:normal; outline:none; color:inherit;');} else {var image=document.createElement('img');image.setAttribute('src',p.href);if(!image.height || image.height>100){image.height='100'};if(!image.width || image.width>100){image.width='100'};image.setAttribute('style', stl);p.appendChild(image);}}}};}, false);var td=document.getElementsByTagName('td')[2];td.appendChild(inp);td.appendChild(sf); },false)If you enter opera:cache into the address field you can get on your screen
and by clicking [Thumbnails] button

and by entering a search word (in this case "png" was entered)
