1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

YouTube script modification

Discussion in 'Hire a Freelancer' started by bankole1, Feb 27, 2014.

  1. bankole1

    bankole1 Junior Member

    Joined:
    Aug 2, 2012
    Messages:
    123
    Likes Received:
    26
    Location:
    Earth
    I bought this script about a month ago, it worked for a while but now it looks like it has being patched. If any programmer can help me modify it so it works again please PM me.

    Code:
    <script type='text/javascript'>
    
    function randomString(len) {
    var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
    var string_length = len;
    var randomstring = '';
    for (var i = 0; i < string_length; i++) {
    var rnum = Math.floor(Math.random() * chars.length);
    randomstring += chars.substring(rnum, rnum + 1);
    }
    return randomstring;
    }
    
    
    function randomWtring(len) {
    var chars = "0123456789";
    var string_length = len;
    var randomstring = '';
    for (var i = 0; i < string_length; i++) {
    var rnum = Math.floor(Math.random() * chars.length);
    randomstring += chars.substring(rnum, rnum + 1);
    }
    return randomstring;
    }
    
    
    function randomZtring(len) {
    var chars = "123456789";
    var string_length = len;
    var randomstring = '';
    for (var i = 0; i < string_length; i++) {
    var rnum = Math.floor(Math.random() * chars.length);
    randomstring += chars.substring(rnum, rnum + 1);
    }
    return randomstring;
    }
    
    
    var docid = new Array("-aTijsbWMhw""DxDxmiUZLLM","UMtzOcnw0CM","K4vcZnWwLiU","iii_bk9lk_o","4hYTxObzBIs","o_LDvkaqul0","-VLgD0HcbP4","wg-lcD0mOaM","Y6SxYU3Szh0","lAnEBNIuhMY","P2EatAzWCow","o8_ypeIil8s","qexcCe40SQ4","IQJCZHmtttk","YtpfXXp799Q","PI1jmSi5vQM","nbXRvYfYFws","5pkArofXqbg", "Ck12klKr80g", "AgbNtFtAjMc", "dimslSCkdWo", "6W05Fh753eo", "j_1UvkN-cgQ", "c9zcXAHG688", "zAQ1-Goeftg", "HxeflfjOCsw", "hhsmzcHqqyI", "egTZIK84aYY", "sVz_nZYQWmg", "e7hs3jTbxBU", "aJFmZLwBSAs", "7jQNi2BP5To", "Hhuq6s_gQMA", "GgROmqngCvY", "go8a2yxs1Fo", "DHDZd5a7qZs", "7eLsKdWNYlQ", "4uvtefr97qI", "tVSPLYrr43E", "g6hJGrSBplU", "7bf4A7oZLOg", "u_FlTDEHxLM", "8UI9UnjGz7s", "Yr1Mx9tqk80", "l_D6HwZtPns", "sM_0Xz2ULoY", "Ffs-BpAmi-g", "fu1wwEp8jNA", "AV03Dd50OFE", "bWXZbkVNBio", "yisEh8a5y7k", "0eANttCgucA", "mEEMKFdjorg");
    
    
    var videonumber = docid.length;
    var videoindex = 0;
    
    
    var videlen = ['49','1259','1562','1292','1668','826','1949','1287','1290','1918','320','358','561','556','731','560','291','235','361', '517', '517', '468', '387', '476', '574', '99', '608', '224', '571', '522', '317', '15', '327', '441', '848', '321', '501', '667', '632', '775', '718', '200', '491', '967', '519', '601', '427', '254', '755', '292', '661', '479', '409', '312'];
    
    
    
    
    var rt2= +videlen[videoindex] + +randomWtring(1);;
    var st3 = randomWtring(3);
    
    
    
    
    function getCPN() {
    var l11 = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-", "_"];
    var l1I = "";
    var lIl = 0;
    while (lIl < 16) {
    l1I = (l1I + l11[Math.floor((Math.random() * 64))]);
    lIl++;
    }
    return l1I;
    }
    
    
    
    
    
    
    for (var i = 0; i < 7; i++) {
    var plid = 'AATd' + randomString(12);
    var cpn = getCPN();
    var vid = randomString(32) + 'C';
    var eurlnumber = randomZtring(1);
    var referrer;
    if (eurlnumber == 1)
    {
    referrer="http://www.facebook.com";
    }
    if (eurlnumber == 2 )
    {
    referrer="http://www.twitter.com";
    }
    if (eurlnumber==3)
    {
    referrer="http://www.google.com";
    }
    if (eurlnumber==4)
    {
    referrer="http://www.instagram.com";
    }
    if (eurlnumber==5)
    {
    referrer="http://www.linkedin.com";
    }
    if (eurlnumber==6)
    {
    referrer="http://www.myspace.com";
    }
    if (eurlnumber==7)
    {
    referrer="http://www.gplus.com";
    }
    if (eurlnumber==8)
    {
    referrer="http://www.tumblr.com";
    }
    if (eurlnumber==9)
    {
    referrer="http://www.flickr.com";
    }
    
    
    document.write('<script type="text/javascript" src="http://s.youtube.com/api/stats/playback?ns=yt&el=embedded&cpn='+ cpn +'&docid='+ docid[videoindex] +'&ver=2&cmt=0.02&plid='+ plid +'&fmt=43&fs=0&vid='+ vid +'&rt=4.454&cver=html5&len='+videlen[videoindex]+'&euri=' + referrer+'&fexp=904832%2C916625%2C911412%2C932000%2C906383%2C902000%2C901208%2C919512%2C925714%2C931202%2C900821%2C900823%2C931203%2C931401%2C906090%2C909419%2C908529%2C904830%2C930807%2C919373%2C930803%2C906836%2C920201%2C929602%2C930101%2C926403%2C900824%2C910223&mos=0&volume=100&st=0.'+st3+'&et='+videlen[videoindex]+'"><\/script>');
    
    
    document.write('<script type="text/javascript" src="http://s.youtube.com/api/stats/watchtime?ns=yt&el=embedded&cpn='+ cpn +'&docid='+ docid[videoindex] +'&ver=2&cmt='+ videlen[videoindex] +'&plid='+ plid +'&fmt=43&fs=0&rt='+ rt2 +'&cver=html5&len='+ videlen[videoindex] +'&state=playing&idpj=0&ldpj=0&rti=0&st='+ videlen[videoindex] +'&et='+ videlen[videoindex] +'"><\/script>');
    
    
    if (i == 5) {
    videoindex++;
    i = 0;
    }
    
    
    if (videoindex == videonumber) {
    i = 7;
    }
    
    
    }
    
    
    </script>
     
  2. TheIronAgeDude

    TheIronAgeDude Junior Member

    Joined:
    Feb 26, 2014
    Messages:
    123
    Likes Received:
    3
    Hey, Skype me I think I can help.. chekko14
     
  3. bankole1

    bankole1 Junior Member

    Joined:
    Aug 2, 2012
    Messages:
    123
    Likes Received:
    26
    Location:
    Earth
    I just added you.