Changeset 3372

Show
Ignore:
Timestamp:
12/20/07 21:12:42 (5 years ago)
Author:
cho45
Message:

lang/javascript/userscripts/hatena.haiku.expandrepliestree.user.js:

ウェイトの設定を分離

Files:
1 modified

Legend:

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

    r3371 r3372  
    66 
    77(function () { with (D()) { 
     8        const WAIT = 1; 
    89        const ICON = <><![CDATA[ 
    910                data:image/png;base64, 
     
    1415                1JaeDF8WzSMCBiKqHq0AAAAASUVORK5CYII= 
    1516        ]]></>.toString().replace(/\s+/g, ""); 
     17 
    1618        GM_addStyle([ 
    1719                "div.info .expand a {", 
     
    7072                function appendAndLoadNext (e) { 
    7173                        body.appendChild(applyJavaScript(e)); 
    72                         return wait(1).next(function () { 
     74                        return wait(WAIT).next(function () { 
    7375                                return call(expandChildReplies, e); 
    7476                        }); 
     
    102104                        entry.parentNode.insertBefore(e, entry); 
    103105                        body.appendChild(entry); 
    104                         return wait(1).next(function () { 
     106                        return wait(WAIT).next(function () { 
    105107                                return call(expandReplies, e); 
    106108                        }); 
     
    141143                        num = n; 
    142144                } 
    143                 return wait(1).next(arguments.callee); 
     145                return wait(WAIT).next(arguments.callee); 
    144146        }). 
    145147        error(function (e) {