Changeset 18883

Show
Ignore:
Timestamp:
09/05/08 12:21:33 (4 months ago)
Author:
drry
Message:
  • fixed: String.match() != Number
Files:
1 modified

Legend:

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

    r18349 r18883  
    4040                    $j(e).insertBefore($j('div#PAGEBODY > table:eq(1) table:eq(1) tr:eq(0)')); 
    4141                } 
    42             ) 
     42            ); 
    4343        }, false); 
    4444 
     
    5050                    $j(e).insertAfter($j('div#PAGEBODY > table tr:eq(201)')); 
    5151                } 
    52             ) 
     52            ); 
    5353        }, false); 
    54     }; 
     54    } 
    5555 
    56     if (String(document.location).match("tag|serach") != - 1) { 
     56    if (/tag|search/.test(String(document.location))) { 
    5757        $j('table.mb16auto:eq(1) td div.thumb_L').toggle(function(){$j(this).parent().css('background-color','#ffbbff')}, function(){$j(this).parent().removeAttr('style')}); 
    58     }; 
    59     }; 
    60 }; 
     58    } 
     59    } 
     60} 
    6161// delayed execute for except conflict of executing 
    6262setTimeout(exec, 500);