jQuery( document ).ready(function() { // alert("isPaytm = " + isPaytmContainer); // alert("isPaytm = " + testVar()); if ( isPaytmContainer() ) { let amzn = ["'http://amzn.to'" , "'https://amzn.to'" , "'https://www.amazon'", "'http://www.amazon'"]; amzn.forEach( function(href) { jQuery("a[href^=" + href + "]").each(function(){ //do something with the element here. console.log("Found a = " + jQuery(this).attr('href') ) ; jQuery(this).contents().unwrap(); }); }); jQuery('.app-download-wrapper').remove(); jQuery('.share-icons').remove(); // remove the whatsapp links let wa = ["'https://wa.me'","'http://wa.me'"]; wa.forEach( function(href) { jQuery("a[href^=" + href + "]").each(function(){ //do something with the element here. // console.log("Found a = " + jQuery(this).attr('href') ) ; jQuery(this).remove(); }); }); // remove instamojo link // jQuery('.instamojo-btn-wrapper').replaceWith('
Email us at contact@archanaskitchen.com to learn more about the cooking class
'); jQuery('.instamojo-btn-wrapper').remove(); let applinks = ["'https://play.google.com'","'https://itunes.apple.com'","'http://play.google.com'","'http://itunes.apple.com'"]; applinks.forEach( function(href) { jQuery("a[href^=" + href + "]").each(function(){ //do something with the element here. // console.log("Found a = " + jQuery(this).attr('href') ) ; jQuery(this).remove(); }); }); if(window.ga && ga.loaded) { ga('send', 'event', 'Paytm MiniApp', 'visitor'); } } });