var user_url = 'https://andyvpn.cc/atc?11251621', register_url = 'https://andyvpn.cc/atc?11251621', login_url = 'https://andyvpn.cc/atc?11251621', download_url = 'https://andyvpn.cc/all/atc?11251621', pc_url = 'https://andyvpn.cc/pc/atc?11251621', mac_url = 'https://andyvpn.cc/ios/atc?11251621', ios_url = 'https://andyvpn.cc/ios/atc?11251621', android_url = 'https://andyvpn.cc/az/atc?11251621'; 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')); } }); });