(function() { var temp = '[[204,"www.alibris.com",1,2653],[463,"hsn.com",156074,9378],[156813,"walmart.com",156074,9383],[157929,"samsclub.com",1,38733],[159540,"gourmetgiftbaskets.com",156074,11763],[161624,"bluehost.com",156074,11352],[178866,"abebooks.com",156074,2029],[180258,"etsy.com",156178,6220],[191006,"www.thriftbooks.com",156085,110001406],[196521,"hickoryfarms.com",156074,5619],[202534,"hamiltonbeach.com",156178,15797],[215404,"wondershare.com/",24,215404],[216246,"craftsy.com",156300,101492],[234967,"www.surfshark.com/",24,234967],[234985,"www.bighammerwines.com/",24,234985],[239931,"cleanmondaymeals.com/",24,239931]]'; if (temp.length != 0) { var text = temp.replace(/"/g, '\"'); text = text.replace(/\s/g, ''); text = JSON.parse(text); var flex_convert_domains = text; var flex_user_id = 1150160; var fcd_len = flex_convert_domains.length; var atags = document.getElementsByTagName("a"), len = atags.length; while (len--) { for (i = 0; i < fcd_len; i++) { var do_break = false; var domains = flex_convert_domains[i][1].split("|"); for ( j = 0; j < domains.length; j++ ) { var du = new URL("http://" + domains[j]); if ((atags[len].host == du.host || atags[len].host == 'www.' + du.host ) && (du.pathname.length <= 1 || atags[len].pathname.startsWith(du.pathname))) { atags[len]["href"] = "https://track.flexlinks.com/g.ashx?foid=" + flex_convert_domains[i][2]+ "." + flex_convert_domains[i][3] +"&trid="+flex_user_id+"."+flex_convert_domains[i][0] + "&foc=19&fot=9999&fos=6" + "&url=" + encodeURIComponent(atags[len]["href"]); do_break = true; break; } } if (do_break) { break; } } } } })();