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

継続展開で展開済みのエントリの透明度がもどってしまっていたのを修正

Files:
1 modified

Legend:

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

    r16979 r16980  
    8787 
    8888                        function appendAndLoadNext (e) { 
    89                                 if (e._expanded) return next(); 
    90  
    9189                                if (a) { 
    9290                                        a.style.opacity = "0.2"; 
    9391                                        a.className = "__loaded"; 
    9492                                } 
     93 
     94                                if (e._expanded) return next(); 
    9595 
    9696                                e = applyJavaScript(e); 
     
    121121                        return parallel( 
    122122                                $X("./div[@class='info']/span[@class='replies']/a[@href]", body).map(function (a) { 
     123                                        var raw_href = $X("string(@href)", a); 
     124 
     125                                        // don't show if this was showed entry 
     126                                        if (a.className == "__loaded") return next(); 
     127 
    123128                                        a.style.opacity = "0.6"; 
    124                                         // don't show if this was showed entry 
    125                                         var raw_href = $X("string(@href)", a); 
    126                                         if (a.className == "__loaded") return next(); 
    127129 
    128130                                        // don't load already showed entry