Skip to content

Instantly share code, notes, and snippets.

@mcomella
Created June 15, 2017 21:49
Show Gist options
  • Save mcomella/9bb5496bc17190b328e96375a3c8e07e to your computer and use it in GitHub Desktop.
Save mcomella/9bb5496bc17190b328e96375a3c8e07e to your computer and use it in GitHub Desktop.
focus-android i783: app.adjust.com intent redirect source
// URL in app.adjust.com/o5oulv?adgroup=home.home_coupon%7Ccenter_aligned.all_sessions&deep_link=https%3A%2F%2Fm.yelp.com%3Fcan_modify_open_behavior%3DTrue&engagement_type=fallback_click&campaign=mobile.app_pitch.read_more_blue.growth_acq_m_site_experiment_slots&label=7413AE3C9B38FCC1%2CNone%2C287439e747ada92c
start = Date.now();
function try_close(){
location.replace('about:blank');
}
function store_or_close(){
now = Date.now();
if (now - start > 3000) {
try_close();
} else {
window.location.replace("market://details?id=com.yelp.android&referrer=adjust_reftag%3DcTN9Qg8X4HG4U%26utm_source%3DMobile%2BSite%2B%2528100%2525%2529%26utm_campaign%3Dmobile.app_pitch.read_more_blue.growth_acq_m_site_experiment_slots%26utm_content%3Dhome.home_coupon%257Ccenter_aligned.all_sessions");
setInterval(function () {
try_close();
}, 1000);
}
}
setInterval(function () {
store_or_close();
}, 2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment