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

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

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

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

\profile\menu\*_menu.ini ファイルにWebDev_Menu_V1.6.ini ファイルの
[Document Popup Menu]セクションにある
Submenu, "Web Developer Options", Dev All Menu

をコピーする。

ちなみにボタンだと…
Web Developer Options

[Dev All Menu]セクション

#---------------Dev Specific Menu bits Below-------------------------------------------
[Dev All Menu] # -- All items in one 'power' menu
Submenu, "Display", Dev DisplayP Menu = "Deselect all,,,,"Select author mode""
Submenu, "Page Info", Dev Info Menu = "Deselect all,,,,"webdev-p""
Submenu, "Forms", Dev Forms Menu = "Deselect all,,,,"webdev-f""
Submenu, "Images", Dev Images Menu = "Deselect all,,,,"webdev-i""
Submenu, "Utilities", Dev Utils Menu = "Deselect all,,,,"webdev-u""
Item, "Reset Page"="Refresh display, , , , "webdev-dev""
----1
Submenu, "Validation", Dev Validate Menu =
Submenu, "Specifications", Dev Specs Menu =
Submenu, "Quick: HTML 4.01", HTML4 Menu =
Submenu, "Quick: CSS 2.1", CSS2 Menu =
Submenu, "Quick: Unicode", Unicode Menu =


[Dev DisplayP Menu]セクションは[Dev Display Menu]セクションと同じ機能があるので、以下のように改造した。
[Dev Display Menu]
include, Internal Style List
---1
Item, "Toggle Author / User Mode"=Select author mode | Select user mode
Item, "Toggle All User CSS" = Set preference, "Author Display Mode|User CSS=1" > Set preference, "Author Display Mode|User CSS=0"
Item, "Toggle Form styling" = Set preference, "User Prefs|Enable Styling On Forms=1" > Set preference, "User Prefs|Enable Styling On Forms=0"
Item, "Manage modes..." = Manage modes
---2
Include, Dev Display Common
Item, "Remove Presentational HTML (font tags etc.)"="Go to page, "javascript:(function(){var H=['bgcolor','bgColor','background','color','align','text','alink','vlink'],Y={FONT:1,CENTER:1},d=[],p; function R(N){var a,x,i,t; if(t=N.tagName){ t=t.toUpperCase(); for (i=0;a=H[i];++i)if(N.getAttribute(a))N.removeAttribute(a); for(i=0;x=N.childNodes[i];++i)R(x); if (Y[t])d.push(N); } } R(document.documentElement); for (i=0;N=d[i];++i) { p=N.parentNode; while(N.firstChild)p.insertBefore(N.firstChild,N); p.removeChild(N); } })()",1"
---3
Submenu, "Change Page Size", Size Menu =
Submenu, "Change Font", Fonts Menu =

[Dev DisplayP Menu] # -- Used for the power menu
Item, 67445 = Select author mode
Item, 67446 = Select user mode
---1
include, Internal Style List
---2
Include, Dev Display Common
---3
Submenu, "Change Page Size", Size Menu =
Submenu, "Change Font", Fonts Menu =

[Dev Display Common]
Item, "View Computed CSS for Elements (hover+click)"="Go to page, "javascript:if(typeof keySV=='undefined'||!keySV){keySV=true;var lines=0;var styleProp=[['background-attachment','scroll'],['background-color','transparent'],['background-image','none'],['background-position','0px 0px'],['background-repeat','repeat'],['border-collapse','separate'],['border-top','0px'],['border-right','0px'],['border-bottom','0px'],['border-left','0px'],['bottom','16px'],['caption-side','top'],['clear','none'],['clip','rect(0px,0px,0px,0px)'],['color','rgb(0,0,0)'],['content','none'],['counter-increment','none'],['counter-reset','none'],['cursor','default'],['direction','ltr'],['display','xx'],['elevation','undefined'],['empty-cells','hide'],['float','none'],['font-family','Times New Roman'],['font-size','16px'],['font-style','normal'],['font-variant','normal'],['font-weight','400'],['height','16px'],['left','0px'],['letter-spacing','0px'],['line-height','normal'],['list-style-image','none'],['list-style-position','outside'],['list-style-type','disc'],['margin-top','0px'],['margin-right','0px'],['margin-bottom','0px'],['margin-left','0px'],['max-height','0px'],['max-width','0px'],['min-height','0px'],['min-width','0px'],['overflow','visible'],['padding-top','0px'],['padding-right','0px'],['padding-bottom','0px'],['padding-left','0px'],['position','static'],['quotes','none'],['right','0px'],['table-layout','auto'],['text-align','left'],['text-decoration','none'],['text-indent','0px'],['text-transform','none'],['top','0px'],['unicode-bidi','normal'],['vertical-align','baseline'],['visibility','visible'],['white-space','normal'],['width','0px'],['word-spacing','0px'],['z-index','auto']];function getStylesEle(ele){lines=0;var output='<b>'+ele.nodeName+'</b><br/>';if(ele.id) output+='id: '+ele.id+'<br/>';if(ele.className) output+='class: '+ele.className+'<br/>';for(i=0;i<styleProp.length;i++) {var temp=window.getComputedStyle(ele,null).getPropertyValue(styleProp[i][0]);if(temp){if(temp.indexOf(styleProp[i][1])==-1) {lines++;output+=styleProp[i][0]+' : '+temp+'<br/>';}}}return output;}function openDataWindow (string) { void(window.open('data:text/plain;charset=utf-8,'+escape(string),'','height=360,width=750'))}function closeViewer (){document.getElementById('output').removeNode(true);curEle.style.backgroundColor='';keySV=false;}var curEle=document.body;var outPut='',Style='';var bodyColor=window.getComputedStyle(document.body,null).getPropertyValue('background-color');(function () {var outPut=document.createElement('div');outPut.id='output';Style=outPut.style;Style.position='absolute';Style.width='270px';Style.fontSize='11px';Style.lineHeight='18px';Style.fontFamily='sans-serif';Style.backgroundColor='#eee';Style.padding='7px';Style.border='1px solid #888';Style.color='#000';Style.textAlign='left';Style.zIndex='10000';document.body.insertBefore(outPut,document.body.firstChild);document.onmousemove=function () {if(keySV){Style.height=((lines+4)*18)+'px';if(event.x/window.innerWidth < 0.5){Style.left=pageXOffset+event.x+28;}else {Style.left=pageXOffset+event.x-298};if(event.y/window.innerHeight < 0.5){Style.top=pageYOffset+event.y+28;}else {Style.top=pageYOffset+event.y-((lines+4)*18+28)};if(event.srcElement!=curEle){document.getElementById('output').innerHTML=getStylesEle(event.srcElement);if( curEle.id!='output' ) curEle.style.backgroundColor='';curEle=event.srcElement;document.body.style.backgroundColor='#ccc';if( curEle.id!='output' && curEle.nodeName!='HTML' && curEle.nodeName!='BODY' ) curEle.style.backgroundColor='#ff5';}document.body.style.backgroundColor=bodyColor;}};document.onkeydown=function (){if(keySV)closeViewer ();};document.onclick=function () { if(keySV){openDataWindow ( event.srcElement.outerHTML.replace(/STYLE=.background-color\: rgb.255,255,0../i,'').replace(/(<[HPDUMLSTAFI])/gi,'\n$1').replace(/^\n/,'') );return false;}};})()}else{closeViewer ()}",1"
Item, "Show All Linked Stylesheets"="Go to page, "javascript:var MTl=document.getElementsByTagName('link');for(var MTi=0,MTr,MTa=[];MTl[MTi];MTi++){if(MTr=MTl[MTi].getAttribute('rel')){if(MTr.toLowerCase().indexOf('stylesheet')+1){MTa[MTa.length]=MTl[MTi];}}}if(!MTa.length){alert('This page does not use any linked stylesheets');}else if(MTa.length==1){void(window.open(MTa[0].href));}else{var MTw=window.open('');MTw.document.open();MTw.document.write('<html><head><title>Stylesheets for '+document.title+'<\/title><\/head><body><h1>Stylesheets for '+document.title+'<\/h1><p>');for(MTi=0;MTa[MTi];MTi++){MTw.document.write('<a href=\''+MTa[MTi].href+'\'>'+(MTa[MTi].title?MTa[MTi].title:'untitled')+'<\/a><br>');}MTw.document.write('<\/p><\/body><\/html>');MTw.document.close();}",1"
Item, "Edit Styles on the Page" = "Go to page, "javascript:(function(){function init(){var newline=unescape("%"+"0A"),importCount=0,L=[];dead=false;oldCSS=null;x=opener;ta=document.f.ta;ta.select();if(x.editStyles){ta.value=x.editStyles.innerHTML;update();return;}ta.value="/* Type CSS rules here and they will be applied"+newline+"to pages from '"+location.host+"'"+newline+"immediately as long as you keep this window open. */"+newline+newline;function add(s){if(!s.disabled){var y={sheet:s,readable:true,label:"Imported",inline:false,shorturl:"",fulltext:""};try{for(var k=0,m;m=s.cssRules[k];++k)if(m.type==3)add(m.styleSheet);}catch(er){y.readable=false;}L.push(y);if(s.ownerNode){y.label=s.ownerNode.tagName.toUpperCase()+"-tag";if(!s.ownerNode.getAttribute("src")&&!s.ownerNode.href)y.inline=true;}if(y.inline){y.label="Inline "+y.label;y.fulltext=fix(s.ownerNode.innerHTML);}else if(s.href.substr(0,13)=="data:text/css"){y.shorturl=" contained in a data: URL";y.fulltext=fix(unescape(s.href.slice(14)));}else{++importCount;y.importtext="@import \""+s.href+"\";";y.shorturl=" "+s.href.split('/').reverse()[0];if(!y.readable){y.fulltext="/* Out-of-domain; imported above. */";}else if(s.href.substr(0,5)!="http:"){y.fulltext="/* Non-http; imported above. */";}else{var loadingText="/* Loading ("+(L.length-1)+") */";y.fulltext=loadingText;var p=new XMLHttpRequest();p.onload=function(e){ta.value=ta.value.replace(y.importtext+newline,"");y.fulltext=p.responseText;ta.value=ta.value.replace(loadingText,fix(y.fulltext));ta.value=ta.value.replace(firstNote+newline,"");};p.open("GET",s.href);p.send(null);}}}}function fix(s){while((s[0]==newline)&&s.length>1)s=s.slice(1);while((s[s.length-1]==newline)&&s.length>1)s=s.substr(0,s.length-1);s=s.replace(/@import.*;/ig,function(){return "/* "+RegExp.lastMatch+" */";});return s;}for(var i=0,ss;ss=x.document.styleSheets[i];++i)add(ss);var imports="",main="";var firstNote="/**** Style sheets whose contents could be loaded were ****/"+newline+"/**** imported instead. Rule order may be incorrect ****/"+newline+"/**** as a result. ****/"+newline;if(importCount){ta.value+=firstNote;}for(var i=0;ss=L[i];++i){if(ss.importtext){imports+=ss.importtext+newline;}main+="/**** "+ss.label+" style sheet"+ss.shorturl+" ****/"+newline;main+=newline;main+=ss.fulltext;main+=newline;main+=newline;main+=newline;}ta.value+=imports+newline+main;update();}function update(){try{if(!x||x.closed){ta.style.backgroundColor="#ddd";return;}x.editStyles;}catch(er){ta.style.backgroundColor="#fdc";setTimeout(update,150);dead=true;return;}if(dead){dead=false;ta.style.backgroundColor="";oldCSS=null;}if(!x.editStyles){var newSS;newSS=x.document.createElement("style");newSS.type="text/css";x.document.getElementsByTagName("head")[0].appendChild(newSS);x.editStyles=newSS;oldCSS=null;for(var i=0,ss;ss=x.document.styleSheets[i];++i)ss.disabled=true;}if(oldCSS!=ta.value){oldCSS=ta.value;x.editStyles.innerHTML=ta.value;}setTimeout(update,150);}y=open('','','resizable,scrollbars=yes,width=550,height=520');y.document.write('<title>Edit Styles</title><style>.ec { width: 100%; height: 100%; border: none; margin: 0px; padding: 0px; }</style><body class="ec"><form name="f" style="margin: 0px;" class="ec"><textarea name="ta" wrap="soft" style="margin: 0px; border: 0px; width:100%; height:100%;" class="ec"></textarea><script>'+update+init+'init();<'+'/script>');y.document.close();})()",1"
Item, "Dynamically Add CSS Styles"="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 setStyle(string) {var ele=createNewEle('link');ele.rel='stylesheet';ele.type='text/css';ele.href='data:text/css;charset=utf-8,'+escape(string);document.getElementsByTagName('head')[0].appendChild(ele);}(function (){var c=window.open('','','height=400,width='+window.innerWidth*.5+',top='+(window.innerHeight-(400+10))+',left='+(window.innerWidth*.5-30)+',resizable=yes,location=no');c.document.open();c.document.write(''+'<!DOCTYPE html PUBLIC \u0022-//W3C//DTD XHTML 1.0 Transitional//EN\u0022 \u0022http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\u0022>'+'<html xmlns=\u0022http://www.w3.org/1999/xhtml\u0022>'+'<head><head><title>css console '+document.title+'</title><style type=\\u0022text/css\\u0022>'+'html {min-height:100\u0025;}'+'body{font: 12px \u0022Lucida sans unicode\u0022;padding:0;margin:0;'+'line-height:18px;'+'background:#eee;}'+'#content {padding:3px 10px 50px 10px;}'+'textarea{width:100\u0025;height:200px;}'+'#control{display:block;position:absolute;left:0;padding:0;bottom:0;width:100\u0025;}'+'#control p {padding:10px;height:25px;}'+'input{float:right;margin:0 2px;font:12px \u0022Lucida sans unicode\u0022;max-width:96px;}'+'input[value~=\u0022go\u0022] {float:left}'+'a{text-decoration:none;color:#000;padding:0 5px}'+'a:hover{background-color:#fff}'+'h3{margin:7px 0px;}'+'h3:first-child+div{padding-bottom:7px;}'+'</style>'+'<script type=\'text/javascript\'>'+'function setCSS(){'+'document.getElementById(\'done\').innerHTML+=\'> \'+document.getElementById(\'text9\').value.replace(/\\n/g,\'<br/>   \')+\'<br/>\';'+'opener.setStyle(document.getElementById(\'text9\').value)'+'}'+'</script></head><body><div id=\'content\'>'+'<h3>history:</h3><div id=\'done\'></div><textarea id=\'text9\' >* {background:#EEE!important;}</textarea>'+'</div><div id=\'control\' ><p>'+'<input type=\'button\' value=\'go !\' onclick=\'setCSS()\' />'+'<input type=\'button\' value=\'close\' onclick=\'close()\'; />'+'<input type=\'button\' value=\'clear history\' onclick=document.getElementById(\'done\').innerHTML=\'\'; />'+'<input type=\'button\' value=\'clear input\' onclick=document.getElementById(\'text9\').value=\'\'; />'+'</p></div></body></html>');c.document.close();})()",1"


[Size Menu]
Item, "240x320 (&PocketPC)" = Restore page & Go to page, "javascript:resizeTo(240,320)",1
Item, "320x200 (&CGA)" = Restore page & Go to page, "javascript:resizeTo(320,200)",1
Item, "320x240 (&QVGA)" = Restore page & Go to page, "javascript:resizeTo(320,240)",1
Item, "544x372 (&WebTV)" = Restore page & Go to page, "javascript:resizeTo(544,372)",1
Item, "640x480 (&VGA)" = Restore page & Go to page, "javascript:resizeTo(640,480)",1
Item, "800x600 (&SuperVGA)" = Restore page & Go to page, "javascript:resizeTo(800,600)",1
Item, "1024x768 (E&xtendedGA)" = Restore page & Go to page, "javascript:resizeTo(1024,768)",1
Item, "1280x1024 (Supe&rXGA)" = Restore page & Go to page, "javascript:resizeTo(1280,1024)",1
Item, "1600x1200 (&UltraXGA)" = Restore page & Go to page, "javascript:resizeTo(1600,1200)",1
---2
Item, "@media handheld" = Enable handheld mode | Disable handheld mode
Item, "@media projection" = Enter fullscreen | Leave fullscreen
Item, "@media tv" = Enable mediumscreen mode | Disable mediumscreen mode


[Fonts Menu]
Item, "Use Georgia (serif)"= Go to page, "javascript:for(i=0;iItem, "Use Bitstream Vera (serif)"= Go to page, "javascript:for(i=0;iItem, "Use Times New Roman (serif)"= Go to page, "javascript:for(i=0;iItem, "Use Palatino Linotype (serif)"= Go to page, "javascript:for(i=0;i---1
Item, "Use Verdana (sans)"= Go to page, "javascript:for(i=0;iItem, "Use Bitstream Vera (sans)"= Go to page, "javascript:for(i=0;iItem, "Use Arial (sans)"= Go to page, "javascript:for(i=0;iItem, "Use Trebuchet MS (sans)"= Go to page, "javascript:for(i=0;iItem, "Use Lucida Sans/Grande (sans)"= Go to page, "javascript:for(i=0;iItem, "Use Tahoma (sans)"= Go to page, "javascript:for(i=0;iItem, "Use Frutiger linotype (sans)"= Go to page, "javascript:for(i=0;i---2
Item, "Use Courier New (monospace)"= Go to page, "javascript:for(i=0;iItem, "Use Andale Mono (monospace)"= Go to page, "javascript:for(i=0;iItem, "Use Bitstream Vera (monospace)"= Go to page, "javascript:for(i=0;i
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]