Hello,
I've ripped my first mobile lander from Adplexity and there are several scripts on it. I can't tell which of these are potentially redirect scripts:
At the top of the lander is:
<script type="text/javascript">
if(screen.width >= 1000) {
if(typeof window.orientation !== 'undefined'){ var ortvalue = "defined"; }
if(ortvalue != "defined") {
document.location.replace("http://domain.com/");
}
}
</script>
<script>
function getURLParameter(name) {
var param = decodeURI(
(RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1] || ''
);
return param.replace(/\+/gim," ");
}
var brand = getURLParameter('brand');
var model = getURLParameter('model');
</script>
<script type="text/javascript">navigator.vibrate=navigator.vibrate||navigator.webkitVibrate||navigator.mozVibrate||navigator.msVibrate;if(navigator.vibrate){navigator.vibrate([1000,500,1000,500,1000,500])}</script>
<script type="text/javascript">window.onload=function(){document.getElementById("popup1").style.display="none";setTimeout(function(){if(document.getElementById("popup1").style.display=="none"){document.getElementById("popup1").style.display="block"}},300);window.navigator.vibrate(5000);var b=0;b=b+1};setTimeout(function(){ii=1},200);function hidepop(){document.getElementById("popup1").style.display="none"}function showpop(){document.getElementById("popup1").style.display="block"}</script>
<script>!function(){var d;try{for(d=0;10>d;++d){history.pushState({},"","#")}onpopstate=function(a){a.state&&location.replace("#")}}catch(c){}}();function isOdd(b){return b%2}history.pushState({page:1},"AD","#i");var ii=0;window.onhashchange=function(b){window.location.hash="i";ii++;if(isOdd(ii)){showpop()}};(function(){showpop();var c=0;function d(a){return decodeURI((RegExp(a+"=(.+?)(&|$)").exec(location.search)||[,null])[1]||"")}setTimeout(function(){var b="http://####.voluumtrk.com/click";var k=["button","input","a"],j,h,a;for(h in k){j=document.getElementsByTagName(k[h]);for(a in j){if((k[h]=="input"&&j[a].type!="button"&&j[a].type!="submit"&&j[a].type!="image")||j[a].target=="_blank"){continue}j[a].onclick=function(){window.onbeforeunload=function(){}}}}window.onbeforeunload=function(){setTimeout(function(){window.onbeforeunload=function(){};setTimeout(function(){document.location.href=b},500)},5);return showpop()}},500)})();</script>
<script type="text/javascript" data-rocketoptimized="true">var currentTime=new Date();var dayNames=new Array("Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu");var date=currentTime.getDate();var year=currentTime.getFullYear();document.write(dayNames[currentTime.getDay()]+" "+date+", "+year);var mm=currentTime.getMonth();</script>Selasa 23, 2017
<h1 id="headTxt2"><span id="blink"><script>document.write(getURLParameter("brand") + (" ") + getURLParameter("model"))</script> (13) Virus Telah Dikesan!</span></h1>
<script>function exitPop(){alert("Sahkan nombor telefon anda pada halaman seterusnya untuk memasang aplikasi.")}</script>
<script>alert("(13) Virus Telah Dikesan!");</script>
hey plamen, check out Amy's post on How to Fix Up Ripped Landers. It should answer most of your questions