1function redirect(url) { 2 window.location.replace(url); 3} 4 5function checkUserAgent(regex) { 6 return regex.test(navigator.userAgent); 7} 8 9function detectPlatformAndRedirect() { 10 if (window.location.pathname.toLowerCase() != "/redirect") return; 11 if (checkUserAgent(/iPad|iPhone|iPod/i)) { 12 redirect("https://apps.apple.com/app/ihancer-ai-image-enhancer/id1616547915"); 13 } else if (checkUserAgent(/android/i)) { 14 redirect("https://play.google.com/store/apps/details?id=com.appsmotor.imageenhancer"); 15 } 16} 17 18detectPlatformAndRedirect();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.