Changeset 18865 for lang/javascript

Show
Ignore:
Timestamp:
09/05/08 02:03:28 (4 months ago)
Author:
drry
Message:
  • fixed some @include.
Location:
lang/javascript/userscripts
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/userscripts/hatena.haiku.canvasresizemenu.user.js

    r15292 r18865  
    44// @description    はてなハイクのキャンバスのリサイズをプルダウンメニューから行う 
    55// @include        http://h.hatena.ne.jp/* 
    6 // @include        http://h.hatena.ne.com/* 
     6// @include        http://h.hatena.com/* 
    77// @author         gan2 
    88// @version        0.1 
     
    6565      }; 
    6666    })(Hatena.Haiku.Canvas.prototype.resizeTo); 
    67      
    68      
     67 
     68 
    6969    //// utilities 
    7070    function log () { 
     
    7474      } 
    7575    } 
    76      
     76 
    7777    function $N(name, attr, childs) { 
    7878      var ret = document.createElement(name); 
     
    8282        else ret.setAttribute(k, v); 
    8383      } 
    84       switch(typeof childs){ 
     84      switch (typeof childs) { 
    8585      case "string": 
    8686        ret.appendChild(document.createTextNode(childs)); 
     
    111111      var type, namespace={}; 
    112112      // console.log(String(exp)); 
    113       if(typeof context == "function"){ 
     113      if (typeof context == "function") { 
    114114        type = context; 
    115115        context = null; 
    116       }else if(typeof context != "undefined" && !context['nodeType']){ 
     116      } else if (typeof context != "undefined" && !context['nodeType']) { 
    117117        type = context['type']; 
    118118        namespace = context['namespace'] || context['ns']; 
  • lang/javascript/userscripts/hatena.haiku.openupmainspace.user.js

    r15245 r18865  
    44// @description   はてなハイクのメインスペースをできるだけ広くとる 
    55// @include       http://h.hatena.ne.jp/* 
    6 // @include       http://h.hatena.ne.com/* 
     6// @include       http://h.hatena.com/* 
    77// ==/UserScript== 
    88 
     
    3636    }; 
    3737    form.addEventListener('click', onClickForm, false); 
    38      
     38 
    3939    form.appendChild(radio1); 
    4040    form.appendChild(document.createTextNode('通常')); 
     
    4242    form.appendChild(document.createTextNode('最大')); 
    4343    headerBody.appendChild(form); 
    44      
    45      
     44 
     45 
    4646    // utilities 
    4747    function log () { 
     
    5151      } 
    5252    } 
    53      
     53 
    5454    function $N(name, attr, childs) { 
    5555      var ret = document.createElement(name); 
     
    5959        else ret.setAttribute(k, v); 
    6060      } 
    61       switch(typeof childs){ 
     61      switch (typeof childs) { 
    6262      case "string": 
    6363        ret.appendChild(document.createTextNode(childs)); 
     
    8888      var type, namespace={}; 
    8989      // console.log(String(exp)); 
    90       if(typeof context == "function"){ 
     90      if (typeof context == "function") { 
    9191        type = context; 
    9292        context = null; 
    93       }else if(typeof context != "undefined" && !context['nodeType']){ 
     93      } else if (typeof context != "undefined" && !context['nodeType']) { 
    9494        type = context['type']; 
    9595        namespace = context['namespace'] || context['ns']; 
  • lang/javascript/userscripts/hatena.haiku.template.user.js

    r15268 r18865  
    44// @description    Template for Hatena Haiku 
    55// @include        http://h.hatena.ne.jp/* 
    6 // @include        http://h.hatena.ne.com/* 
     6// @include        http://h.hatena.com/* 
    77// @author         gan2 
    88// @version        0.1 
     
    1414 
    1515     
    16      
    17      
     16 
    1817    //// utilities 
    1918    function log () { 
     
    2322      } 
    2423    } 
    25      
     24 
    2625    function $N(name, attr, childs) { 
    2726      var ret = document.createElement(name); 
     
    3130        else ret.setAttribute(k, v); 
    3231      } 
    33       switch(typeof childs){ 
     32      switch (typeof childs) { 
    3433      case "string": 
    3534        ret.appendChild(document.createTextNode(childs)); 
     
    6059      var type, namespace={}; 
    6160      // console.log(String(exp)); 
    62       if(typeof context == "function"){ 
     61      if (typeof context == "function") { 
    6362        type = context; 
    6463        context = null; 
    65       }else if(typeof context != "undefined" && !context['nodeType']){ 
     64      } else if(typeof context != "undefined" && !context['nodeType']) { 
    6665        type = context['type']; 
    6766        namespace = context['namespace'] || context['ns'];