Changeset 24077

Show
Ignore:
Timestamp:
11/18/08 13:52:45 (5 years ago)
Author:
drry
Message:
Files:
1 modified

Legend:

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

    r24076 r24077  
    99    window.addEventListener( 'load', function(){ 
    1010        var query=location.search; 
    11         if( /\bfmt=/.test( query ) ){ 
     11        if( !/(?:^|[&;])fmt=/.test( query ) ){ 
    1212            query+='&fmt=22'; 
    13             location.search=query; 
     13            location.search=query.replace( /^&/, '' ); 
    1414        } 
    1515    }, false);