Changeset 24076

Show
Ignore:
Timestamp:
11/18/08 13:49:18 (5 years ago)
Author:
drry
Message:
  • fmt」の検出をより正確にしました。
  • bumped up version.
Files:
1 modified

Legend:

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

    r24075 r24076  
    44// @include   http://*.youtube.com/watch?* 
    55// @author    Arc Cosine 
    6 // @version   1.0 
     6// @version   1.1 
    77// ==/UserScript== 
    88 (function(){ 
    99    window.addEventListener( 'load', function(){ 
    1010        var query=location.search; 
    11         if( query.indexOf('&fmt=') == -1){ 
    12             query += '&fmt=22'; 
     11        if( /\bfmt=/.test( query ) ){ 
     12            query+='&fmt=22'; 
    1313            location.search=query; 
    1414        }