Facebook
From Baby Gibbon, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 165
  1. javascript: void(function() {
  2. if (location.href.match(/^http[s]?:\/\/www\.ipla\.tv\//)) {
  3.                 var link = window.location.href;               
  4.                 var x=link.split("/");
  5.                 var idn = x[x.length-1];
  6.                 document.location.href = 'http://getmedia.redefine.pl/vods/get_vod/?cpid=1&ua=mipla_ios/122&media_id=' + idn;
  7.    }
  8.    
  9. if (location.href.match(/^http[s]?:\/\/getmedia\.redefine\.pl\//)) {
  10.                                
  11. var req = new XMLHttpRequest();
  12. req.responseType = 'json';
  13. req.open('GET', window.location.href, true);
  14. req.onload  = function() {
  15.    var j = req.response;
  16.  
  17.    document.location.href = j.vod.copies[j.vod.copies.length-1].url;
  18. };
  19. req.send(null);
  20.        
  21. }
  22.    
  23. })()