youtube-video-download.user.js
// runWith - Run JavaScript code with an object's properties as local variables
Run JavaScript code with an object's properties as local variables
Run JavaScript code with an object ' s properties as local variables
function runWith(str, obj)
{
 var names = [],
     values = [];
 for (var name in obj)
  if (has(obj, name))
  {
   names.push(name);
   values.push(obj[name]);
  }
 var func = Function.apply(null, names.concat(str));
 return func.apply(null, values);
}
function runWith ( str , obj ) { var names = [ ] , values = [ ] ; for ( var name in obj ) if ( has ( obj , name ) ) { names . push ( name ) ; values . push ( obj [ name ] ) ; } var func = Function . apply ( null , names . concat ( str ) ) ; return func . apply ( null , values ) ; }
runWith - Run JavaScript code with an object's properties as local variables
runWith - Run JavaScript code with an object ' s properties as local variables