youtube-video-download.user.js
// decodeQuery(query) - Convert a query string to an object
Convert a query string to an object
Convert a query string to an object
function decodeQuery(query)
{
 var obj = {};
 query.split("&").forEach(function(str) {
  var m = str.match(/^([^=]*)=(.*)$/);
  if (m)
   obj[decodeURIPlus(m[1])] = decodeURIPlus(m[2]);
  else
   obj[decodeURIPlus(str)] = "";
 });
 return obj;
}
function decodeQuery ( query ) { var obj = { } ; query . split ( "&" ) . forEach ( function ( str ) { var m = str . match ( / ^([^=]*)=(.*)$ / ) ; if ( m ) obj [ decodeURIPlus ( m [ 1 ] ) ] = decodeURIPlus ( m [ 2 ] ) ; else obj [ decodeURIPlus ( str ) ] = "" ; } ) ; return obj ; }
decodeQuery(query) - Convert a query string to an object
decodeQuery ( query ) - Convert a query string to an object