忍者ブログ
Opera と W-ZERO3[es] のカスタマイズについての覚書き…
ADMIN | WRITE | RESPONSE
W-ZERO3[es] | Opera | Button | JavaScript | menu.ini | search.ini | opera6.ini | mouse.ini | Google | 未選択 |
カレンダー
03 2024/04 05
S M T W T F S
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
最新記事
コメント
トラックバック
Tags
ブログ内の検索
Google
Web このブログ
関連商品

Opera & W-ZERO3[es]のショッピング

QRコード
アーカイブ
カテゴリー
カウンター
×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

続いてUtilitiesサブメニュー

[Dev Utils Menu]
Item, "Highlight Multiple Words"="Go to page, "javascript:var AlwaysAsk=1;var ShowStats=1;var gCount,gText,gKeywords,gRE;var colors=new Array('#ffff66','#A0FFFF','#99ff99','#ff9999','#ff66ff','#ffee00','00eeff');function CheckSearchString(text){var x=text;if(text==null)return;if(text.length==0)return;text='|' + text.replace(/\W+/g,'|') + '|';text=text.replace(/\|+/g,'|');if(!text.length>1)return;gKeywords=null;gRE=null;gText=x;gCount=null;text=text.substring(1,text.length-1).toLowerCase();gCount=text.split('|');gKeywords=text.split('|');for (var i=gCount.length-1;i>=0;i--){gKeywords[gKeywords[i]]=i;gCount[gCount[i]]=0;}try{gRE=new RegExp('((' + gKeywords.join(')|(') + '))', 'i');}catch(er){alert('Unable to create regular expression using text '+text+'.\n\n'+er);return;}return true;}function ClearNodeHighlights(node){var child, result=false, r;if (node.nodeType==1){if (node.agohighlight){result=true;node.parentNode.replaceChild(node.firstChild,node);}else if( node.childNodes && node.tagName.toUpperCase()!='SCRIPT' && node.tagName.toUpperCase!='STYLE'){for (child=0; child < node.childNodes.length; child++){r= ClearNodeHighlights(node.childNodes[child]);result=result || r;}}}return result;}function ShowNodeHighlights(node,mydoc){var nkeyw,match, pos=0, skip=0, spannode, middlebit, endbit, middleclone;if(node.nodeType==3 && node.data){pos=node.data.search(gRE);if(pos>=0){skip=1;match=RegExp.$1.toLowerCase();nkeyw=gKeywords[match];gCount[match]++;spannode=mydoc.createElement('SPAN');spannode.agohighlight=true;/*spannode.style.border='dashed blue 1px';*/spannode.style.fontWeight='bold';spannode.style.color='black';spannode.style.backgroundColor=colors[nkeyw];middlebit=node.splitText(pos);endbit=middlebit.splitText(match.length);middleclone=middlebit.cloneNode(true);spannode.appendChild(middleclone);middlebit.parentNode.replaceChild(spannode,middlebit);}}else if(node.nodeType==1 && node.childNodes && node.tagName.toUpperCase()!='SCRIPT' && node.tagName.toUpperCase!='STYLE'){for (var child=0; child < node.childNodes.length; ++child){child=child+ShowNodeHighlights(node.childNodes[child],mydoc);}}return skip;}function Highlight(){var text,i;var f=window.top.frames;if(f.length <= document.getElementsByTagName('iframe').length){if (ClearNodeHighlights(document.body)) return;}else{r=false;for(var i=0;i<f.length;i++){r=r||ClearNodeHighlights(f[i].document.body);}if (r) return;}if(gText==null){if(document.referrer.indexOf('google')!=-1&&document.referrer.indexOf('q=')!=-1){var queryTermsRegExp=new RegExp('q=([^&]+)');if(queryTermsRegExp.test(document.referrer)){gText=RegExp.$1.replace(/\+/g,' ');}}if(document.URL.indexOf('google')!=-1&&document.URL.indexOf('q=')!=-1){var queryTermsRegExp=new RegExp('q=([^&]+)');if(queryTermsRegExp.test(document.URL)){gText=RegExp.$1.replace(/\+/g,' ');}}}if (AlwaysAsk||!text){text=prompt('Highlight keywords (write several words seperated by spaces if needed):', (gText==null?'':gText));} if(!CheckSearchString(text))return;if(f.length <= document.getElementsByTagName('iframe').length){ShowNodeHighlights(document.body,document);}else{for(var i=0;i<f.length;i++){ShowNodeHighlights(f[i].document.body,f[i].document);}}if (ShowStats){text='';for (i=0;i<gCount.length;i++){text+=gCount[i] + ': ' + gCount[gCount[i]] + '\n';}text='Items found:\n'+text+'';alert(text);}} Highlight();",1"
Item, "Highlight with Regular Expression"="Go to page, "javascript:(function(){var count=0, text, regexp;text=prompt('Search regexp:', '');if(text==null || text.length==0)return;try{regexp=new RegExp('(' + text +')', 'i');}catch(er){alert('Unable to create regular expression using text '+text+'.\n\n'+er);return;}function searchWithinNode(node, re){var pos, skip, spannode, middlebit, endbit, middleclone;skip=0;if( node.nodeType==3 ){pos=node.data.search(re);if(pos>=0){spannode=document.createElement('SPAN');spannode.style.backgroundColor='yellow';middlebit=node.splitText(pos);endbit=middlebit.splitText(RegExp.$1.length);middleclone=middlebit.cloneNode(true);spannode.appendChild(middleclone);middlebit.parentNode.replaceChild(spannode,middlebit);++count;skip=1;}}else if( node.nodeType==1 && node.childNodes && node.tagName.toUpperCase()!='SCRIPT' && node.tagName.toUpperCase!='STYLE'){for (var child=0; child < node.childNodes.length; ++child){child=child+searchWithinNode(node.childNodes[child], re);}}return skip;}window.status='Searching for '+regexp+'...';searchWithinNode(document.body, regexp);window.status='Found '+count+' match'+(count==1?'':'es')+' for '+regexp+'.';})();",1"
Item, "Execute Selected HTML code"="Go to page, "javascript:(function(){var sel;function getText(d){if(d.getSelection){return d.getSelection();}return d.selection.createRange().text;}function getSel(w){try{sel=getText(w.document);if(sel)return;for(var i=0;F=w.frames[i];i++){getSel(F);if(sel)return;}}catch(e){}}getSel(window);if(!sel)alert('Select some text.');else{w=open();w.document.write(sel);w.document.close();}})()",1"
Item, "Remove Child Elements (click to activate, esc exits)"="Go to page, "javascript:var b=new Array();var c=1;document.onkeydown=ck;el=document.getElementsByTagName('*');for(i=0;i<el.length;i++){if(el[i].tagName.search(/(HTML|BODY)/i)==-1){if(el[i].title) el[i].oldTitle=el[i].title;el[i].title='click to remove '+el[i].tagName;el[i].onclick=function(e){t=this;if(window.event) e=window.event;if((t==e.target)||(window.event)) t.parentNode.removeChild(t);if(window.opera) e.stopPropagation();return false;};el[i].onmouseover=function(){if(!c)return;c=0;t=this;b[t]=t.style.backgroundColor;t.style.background='#DADADA';};void(el[i].onmouseout=function(){t=this;t.style.backgroundColor=b[t];c=1;});}}function ck(e){k=window.event?window.event.keyCode:e.keyCode;if(k==27) {for(i=0;i<el.length;i++){if(el[i].tagName.search(/(HTML|BODY)/i)==-1){el[i].oldTitle?el[i].title=el[i].oldTitle:el[i].removeAttribute('title');el[i].onclick=null;el[i].onmouseover=null;el[i].onmouseout=null;el[i].style.backgroundColor=b[t];}}}}",1"
---1
Item, "Convert Links to footnote's (for printing)"="Go to page, "javascript:function fNote(){tmpStr='';d=document;s=d.getElementsByTagName('A');la=new Array(s.length);lc=0;for(i=0;i<s.length;i++){if(s[i].innerText!='' && s[i].innerText!=' '){lc++;la[lc]=s[i];s[i].insertAdjacentHTML('afterEnd','<sup>['+lc+']</sup>')}}for(i=1;i<=lc;i++){tmpStr+='<li style=margin-bottom:3px;>'+la[i].innerText+': <a href='+la[i].href+'>'+la[i].href+'</a>'}d.body.insertAdjacentHTML('beforeEnd','<br style=clear:both;><div><hr>Link Footnotes:<hr><ol>'+tmpStr+'</ol></div><hr>')}fNote();",1"
Item, "Reveal Destinations of ALL Links"="Go to page, "javascript:(function(){var i,c,x,h; for(i=0;x=document.links[i];++i) { h=x.href; x.title+=' ' + x.innerHTML; while(c=x.firstChild)x.removeChild(c); x.appendChild(document.createTextNode(h)); } })()",1"
Item, "Simple Calculator"="Go to page, "javascript:var a='', b=0, c=0, f=0, g='type in what you like to calculate:'; function run(){if(a=window.prompt(g,'')){g=new Array();with(Math){try{b=eval(a)}catch(e){return}};if(b<0.0000000009&&b>-0.0000000009)b=0;b=b.toString();if(b.indexOf('.')!=-1){c=b.slice((b.indexOf('.')+1));b=b.slice(0,b.indexOf('.'))}f=b.length;while(f>0){f-=3;if(f<0)f=0;g.push(b.slice(f));b=b.slice(0,f)}g.reverse();if(c.length>0)g.push('.');while(c.length>0){c=c.slice(0,9);g.push(c.slice(0,3));c=c.slice(3);}g='the result of ' + a + ' is:\n\n\t' + g.join(' ');run ();}} run ()",1"
Item, "Javascript Shell"="Go to page, "javascript:(function () {var ele=document.createElement('div');ele.innerHTML='<input type=\'hidden\' id=\'text1\' />';document.body.appendChild(ele);})();function getJS() {location.href='javascript:'+document.getElementById('text1').value;}(function (){function openDataWindow (string) { void(window.open('data:text/plain;charset=utf-8,'+escape(string),'','height=360,width=750'))};var Vars=['VXMLAudioRecording','navigate','getJS','scroll','setInterval','setTimeout','stop','Node','Image','close','confirm','blur','enableExternalCapture','disableExternalCapture','focus','forward','home','moveBy','moveTo','open','print','prompt','releaseEvents','resizeBy','resizeTo','scrollBy','scrollTo','Option','Event','back','alert','history','navigator','clientInformation','screen','opera','frames','java','netscape','sun','Packages','vxml','attachEvent','captureEvents','detachEvent','getComputedStyle','clearInterval','clearTimeout','parent'];var a=''; for(b in window) {var i=0;var defaultFeature=false;while(i < Vars.length && !defaultFeature ) {if(b.toString()==Vars[i]) defaultFeature=true;i++;};if(!defaultFeature) a+='<a href=javascript:setJS(\'alert('+b+')\',false) >'+b+'</a> , ';}a=a.replace(/, $/,'');var c=window.open('','','height=400,width=800');c.document.open();c.document.write('<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN >'+'<html><head><title>JS shell for'+document.title+'</title><style type=\'text/css\'>'+'body{font-family:\'Lucida sans unicode\';font-size:12px;padding:0 9px;margin:0;background-color:#EEE;}'+'textarea{width:100\u0025;height:200px;}'+'input{float:right;} input[value~=\'go\'] {float:left}'+'a{text-decoration:none;color:#000;padding:0 5px}'+'a:hover{background-color:#fff}'+'h3{margin:7px 0px;}'+'h3:first-child+div{border-bottom:1px solid #666;padding-bottom:7px;}'+'</style>'+'<script type=\'text/javascript\'>'+'function setJS(string,bol){'+'if(bol)document.getElementById(\'done\').innerHTML+=\'> \'+document.getElementById(\'text9\').value.replace(/\\n/g,\'<br/>テつテつテつ\')+\'<br/>\';'+'opener.document.getElementById(\'text1\').value=string;'+'opener.location.href=\'javascript:getJS()\'}'+'</script></head><body>'+'<h3>existing functions and variables:</h3><div>'+a+'</div><h3>history:</h3><div id=\'done\'></div><textarea id=\'text9\' >function changeBG(color){document.body.style.backgroundColor=color}\nchangeBG(\'#0f0\')</textarea>'+'<input type=\'button\' value=\'go !\' onclick=\'setJS(document.getElementById(\u0022text9\u0022).value,true)\' />'+'<input type=\'button\' value=\'close\' onclick=\'close()\'; />'+'<input type=\'button\' value=\'delete history\' onclick=document.getElementById(\'done\').innerHTML=\'\'; />'+'<input type=\'button\' value=\'delete input\' onclick=document.getElementById(\'text9\').value=\'\'; />'+'</body></html>');c.document.close();})()",1"
Item, "Javascript Shell2"="Go to page, "javascript:var isXHTML=/html/.test(document.getElementsByTagName('body')[0].nodeName);function createNewEle(ele){if(isXHTML) { return document.createElementNS('http://www.w3.org/1999/xhtml', ele); }else{ return document.createElement(ele); };};(function(){var ele=document.getElementsByTagName('head')[0].appendChild(createNewEle('script'));ele.type='text/javascript';ele.src='http://aleto.ch/webTools/code/JSconsole.js'})();",1"
Item, "ASCII Table"="Go to page, "javascript:function C(v){return '<td>'+v+'</td><td>'+((v>>4).toString(16)+(v&15).toString(16)).toUpperCase()+'</td><td bgcolor=DDDDDD><b>&'+'#'+v+';</b></td>';}var c=4,b=Math.ceil(224/c),a='<table border=0><tr>';for(j=0;j<c;j++){a+='<td>DEC</td><td>HEX</td><td><b>ASC</b></td>';}a+='</tr>';for(i=33;i<33+b;i++){a+='<tr>';for(j=0;j<c;j++){t=i+(j*b);if(t<=255)a+=C(t);}a+='</tr>';}a+='</table>';var W=open('','','width=500,height=600,left=0,top=0,resizable,scrollbars');void(W.document.writeln(a));",1"
Item, "Escape a text string"="Go to page, "javascript:prompt('Done!',escape(prompt('Write the string to be escaped.','')));return false;",1"
Platform Windows, Item, "Character Map"="Execute program, "charmap.exe", , "CharMap""
---2
Item, "The Data:URI Kitchen"="New page & Go to page, "http://software.hixie.ch/utilities/cgi/data/data""
Item, "Pretty Print Code"=New page & Go to page, "http://www.prettyprinter.de/"
Item, "Tidy HTML"="Go to page, "javascript:void(window.location='http://infohound.net/tidy/tidy.pl?clean=y%26_output=warn%26_function=tidy%26_url='+escape(location))",1"
PR
この記事にコメントする
お名前
タイトル
文字色
メールアドレス
URL
コメント
パスワード   Vodafone絵文字 i-mode絵文字 Ezweb絵文字
この記事へのトラックバック
この記事にトラックバックする:
リンク

Shop with confidence - new fraud protection from Opera Keep your online life moving with Opera Mini

Google






RSS





Powered by Podcastリスティング
Powered by 忍者ブログ
Copyright © 2006 - 2007 Opera & W-ZERO3[es] All Rights Reserved.
忍者ブログ | [PR]