Show
Ignore:
Timestamp:
08/02/08 18:39:04 (4 months ago)
Author:
cho45
Message:

同じページからひっぱってくるとき expand がつきっぱなしになるので削除
デフォルトのレベルを3に

Files:
1 modified

Legend:

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

    r16981 r16982  
    1010(function (Global) { with (D()) { 
    1111        const WAIT  = 1; 
    12         const LEVEL = 5; 
     12        const LEVEL = 3; 
    1313        const ICON  = [ 
    1414                "data:image/png;base64,", 
     
    3333        function applyJavaScript (entry) { 
    3434                entry = entry.parentNode.removeChild(entry); 
     35 
    3536                // remove event handlers 
    3637                entry.innerHTML = entry.innerHTML; 
     38 
    3739                // append to temporary element 
    3840                var t = h(); 
    3941                t.appendChild(entry); 
     42 
    4043                // remove duplicated star elements 
    4144                $X("../*/div/*[@class='title']/span[@class='hatena-star-comment-container' or @class='hatena-star-star-container']", entry).forEach(function (e) { 
    4245                        e.parentNode.removeChild(e); 
     46                }); 
     47 
     48                $X("./div/div/span[@class='expand']", entry).forEach(function (i) { 
     49                        i.parentNode.removeChild(i); 
    4350                }); 
    4451