Changeset 2160

Show
Ignore:
Timestamp:
11/30/07 03:08:48 (5 years ago)
Author:
cho45
Message:

lang/javascript/userscripts/jautopagerize.user.js:

siteinfo のパースルールをちょい緩く ( : の直前の空白を無視)
ログのはきかたを変更 (うるさいけど、GM_log だと String() されてしまうので)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/userscripts/jautopagerize.user.js

    r2158 r2160  
    318318                        $X(".//*[@class='autopagerize_data']", d).forEach(function (e) { 
    319319                                // using replace as scan and folding key/value to i 
    320                                 var i = {}; e.value.replace(/^\s*([^:\s]+):\s*(.*)$/gm, function (m, key, value) { 
     320                                var i = {}; e.value.replace(/^\s*([^:\s]+)\s*:\s*(.*)$/gm, function (m, key, value) { 
    321321                                        i[key] = value; 
    322322                                }); 
     
    614614        if (GM_log) { 
    615615                GM_log(o); 
    616         } else { 
    617                 location.href = "javascript:(function () { if (window.console) console.log.apply(console.log, "+uneval(o)+") })();"; 
    618         } 
     616        } 
     617        location.href = "javascript:(function () { if (window.console) console.log.apply(console.log, "+uneval(o)+") })();"; 
    619618} 
    620619