§
Публикуван на: 01.03.2016

if you want to extract and go to the address hidden in the '?link=' param, you only need to run this code:

// find "?link=..." key from current url:
var link = /[\?&]?link=([^&]*)/i.exec(window.location.href);
if(link && link[1])
{
 // select only the param needed
 link = link[1];
 // decode
 var url = atob(link);
 // check is is valid (only use it if is like "http...")
 if( url.indexOf('http') === 0 )
 {
  // redirects to the new location
  window.location=url;
 }
}

Публикувайте отговор

Влезте, за да публикувате отговор.