Advertisement
payomaty666

Sub

Jul 14th, 2012
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript:
  2. serie='/series/';
  3. pelicula='/peliculas/';
  4. url=prompt('URL DE LA PELICULA/SERIE','');
  5. i=url.lastIndexOf(serie);
  6. if(i!=-1){
  7.     url1=url.substring(i+1);
  8.     Aurl=url1.split('/');
  9.     idSub = Aurl[1];
  10.     hd=confirm('¿HD?');
  11.     if(hd){
  12.         location.href='http://sc.cuevana.tv/files/s/sub/'+idSub+'_ES_720.srt'
  13.     }else{
  14.         location.href='http://sc.cuevana.tv/files/s/sub/'+idSub+'_ES.srt'
  15.     }
  16. }else{
  17.     i=url.indexOf(pelicula);
  18.     if(i!=-1){
  19.         url1=url.substring(i+1);
  20.         Aurl=url1.split('/');
  21.         idSub = Aurl[1];
  22.         hd=confirm('¿HD?');
  23.         if(hd){
  24.             location.href='http://sc.cuevana.tv/files/sub/'+idSub+'_ES_720.srt'
  25.         }else{
  26.             location.href='http://sc.cuevana.tv/files/sub/'+idSub+'_ES.srt'
  27.         }
  28.     }else{
  29.         alert('Error el link no es correcto')
  30.     }
  31. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement