Changeset 18865 for lang/javascript/userscripts
- Timestamp:
- 09/05/08 02:03:28 (4 months ago)
- Location:
- lang/javascript/userscripts
- Files:
-
- 3 modified
-
hatena.haiku.canvasresizemenu.user.js (modified) (5 diffs)
-
hatena.haiku.openupmainspace.user.js (modified) (6 diffs)
-
hatena.haiku.template.user.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/userscripts/hatena.haiku.canvasresizemenu.user.js
r15292 r18865 4 4 // @description はてなハイクのキャンバスのリサイズをプルダウンメニューから行う 5 5 // @include http://h.hatena.ne.jp/* 6 // @include http://h.hatena. ne.com/*6 // @include http://h.hatena.com/* 7 7 // @author gan2 8 8 // @version 0.1 … … 65 65 }; 66 66 })(Hatena.Haiku.Canvas.prototype.resizeTo); 67 68 67 68 69 69 //// utilities 70 70 function log () { … … 74 74 } 75 75 } 76 76 77 77 function $N(name, attr, childs) { 78 78 var ret = document.createElement(name); … … 82 82 else ret.setAttribute(k, v); 83 83 } 84 switch (typeof childs){84 switch (typeof childs) { 85 85 case "string": 86 86 ret.appendChild(document.createTextNode(childs)); … … 111 111 var type, namespace={}; 112 112 // console.log(String(exp)); 113 if (typeof context == "function"){113 if (typeof context == "function") { 114 114 type = context; 115 115 context = null; 116 } else if(typeof context != "undefined" && !context['nodeType']){116 } else if (typeof context != "undefined" && !context['nodeType']) { 117 117 type = context['type']; 118 118 namespace = context['namespace'] || context['ns']; -
lang/javascript/userscripts/hatena.haiku.openupmainspace.user.js
r15245 r18865 4 4 // @description はてなハイクのメインスペースをできるだけ広くとる 5 5 // @include http://h.hatena.ne.jp/* 6 // @include http://h.hatena. ne.com/*6 // @include http://h.hatena.com/* 7 7 // ==/UserScript== 8 8 … … 36 36 }; 37 37 form.addEventListener('click', onClickForm, false); 38 38 39 39 form.appendChild(radio1); 40 40 form.appendChild(document.createTextNode('通常')); … … 42 42 form.appendChild(document.createTextNode('最大')); 43 43 headerBody.appendChild(form); 44 45 44 45 46 46 // utilities 47 47 function log () { … … 51 51 } 52 52 } 53 53 54 54 function $N(name, attr, childs) { 55 55 var ret = document.createElement(name); … … 59 59 else ret.setAttribute(k, v); 60 60 } 61 switch (typeof childs){61 switch (typeof childs) { 62 62 case "string": 63 63 ret.appendChild(document.createTextNode(childs)); … … 88 88 var type, namespace={}; 89 89 // console.log(String(exp)); 90 if (typeof context == "function"){90 if (typeof context == "function") { 91 91 type = context; 92 92 context = null; 93 } else if(typeof context != "undefined" && !context['nodeType']){93 } else if (typeof context != "undefined" && !context['nodeType']) { 94 94 type = context['type']; 95 95 namespace = context['namespace'] || context['ns']; -
lang/javascript/userscripts/hatena.haiku.template.user.js
r15268 r18865 4 4 // @description Template for Hatena Haiku 5 5 // @include http://h.hatena.ne.jp/* 6 // @include http://h.hatena. ne.com/*6 // @include http://h.hatena.com/* 7 7 // @author gan2 8 8 // @version 0.1 … … 14 14 15 15 16 17 16 18 17 //// utilities 19 18 function log () { … … 23 22 } 24 23 } 25 24 26 25 function $N(name, attr, childs) { 27 26 var ret = document.createElement(name); … … 31 30 else ret.setAttribute(k, v); 32 31 } 33 switch (typeof childs){32 switch (typeof childs) { 34 33 case "string": 35 34 ret.appendChild(document.createTextNode(childs)); … … 60 59 var type, namespace={}; 61 60 // console.log(String(exp)); 62 if (typeof context == "function"){61 if (typeof context == "function") { 63 62 type = context; 64 63 context = null; 65 } else if(typeof context != "undefined" && !context['nodeType']){64 } else if(typeof context != "undefined" && !context['nodeType']) { 66 65 type = context['type']; 67 66 namespace = context['namespace'] || context['ns'];
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)