Kawiesh

Untitled

Nov 21st, 2020 (edited)
614
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let a= location.href,
  2.     b= 'http://newsiqra.com/get.php?cid=',
  3.     c= a.split('/');
  4.     z= ['&type=snon','&type=voot','&type=star','&type=elm'],
  5.     y= ['sonyliv.com','voot.com','hotstar.com','zee5.com'];
  6.  
  7. if (a.includes(y[0]) && c.length==6) {
  8. let d= c[5],
  9.     e= d.match(/\d+/);
  10.     location= b+e+z[0];
  11. }
  12. else if (a.includes(y[1]) && c.length==6) {
  13. let d= c[5],
  14.     e= d.match(/\d+/);
  15.     location= b+e+z[1];
  16. }
  17. else if (a.includes(y[2]) && c.length==9) {
  18. let d= c[8],
  19.     e= d.match(/\d+/);
  20.     location= b+e+z[2];
  21. }
  22. else if (a.includes(y[3]) && c.length==9) {
  23. let d= c[8],
  24.     location= b+d+z[3];
  25. }
  26. else if (a.includes(y[3]) && c.length==10) {
  27. let d= c[9],
  28.     location= b+d+z[3];
  29. }
  30. else alert('Error: not on a supported video page');
RAW Paste Data