var user_url = 'https://andyvpn.cc/atc?12200439', register_url = 'https://andyvpn.cc/atc?12200439', login_url = 'https://andyvpn.cc/atc?12200439', download_url = 'https://andyvpn.cc/all/atc?12200439', pc_url = 'https://andyvpn.cc/pc/atc?12200439', mac_url = 'https://andyvpn.cc/ios/atc?12200439', ios_url = 'https://andyvpn.cc/ios/atc?12200439', android_url = 'https://andyvpn.cc/az/atc?12200439'; jQuery(document).ready(function($) { $('.btn-download a, .btn-download').each(function(){ var type = $(this).attr('data-type'); if(type){ $(this).attr('href',eval(type+'_url')); } }); });