code:
var myVar = <variable with source code in it>.split("http://www.youtube.com/v/");
myVar = myVar[1].substr(0,11)//Change 11 to another number if needed
<variable with source code in it>.replace(/myVar/g);
Remember to write back to the file for changes to take affect
Not tested, but it should work
EDIT: Beaten