Greasy Fork is available in English.

讨论 » 创建请求

bypass

§
发表于: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;
 }
}

发表回复

登录以发表回复。