Show
Ignore:
Timestamp:
08/03/08 16:42:49 (4 months ago)
Author:
cho45
Message:

デバッグコードさくじょ

Files:
1 modified

Legend:

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

    r17020 r17021  
    110110 
    111111                                $X("./div[@class='list-body']/div[@class='info']/span[@class='replies']/a[@href]", e).forEach(function (a) { 
    112                                                 log(a); 
    113112                                        // 既にロードされているなら半透明にしとく 
    114113                                        var raw_href = $X("string(@href)", a); 
     
    304303// $X(exp, context, type); 
    305304function $X (exp, context, type /* want type */) { 
     305        // @class='' を展開する 
    306306        exp = exp.replace(/@class\s*=\s*(?:"([^"]+)"|'([^']+)')/g, "contains(concat(' ', @class, ' '), ' $1$2 ')"); 
    307         log(String(exp)); 
     307 
    308308        if (typeof context == "function") { 
    309309                type    = context;