Greasy Fork is available in English.

§
Posted: 2016/03/01

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;
 }
}

Post reply

Sign in to post a reply.