Found this in a landing page we ripped. What is the general thing going on here? My guess was this is some sort of replace your link script?
<script type="text/javascript">
navigator.vibrate = navigator.vibrate || navigator.webkitVibrate || navigator.mozVibrate || navigator.msVibrate;
window.onload = function(){ navigator.vibrate([1500, 100, 1500, 100]); }
var fakepath="?rzi=677949&rsz=677949&rid=";
window.history.pushState('index.php', 'gogogo', fakepath);
window.history.pushState('index.php', 'disone', fakepath);
window.addEventListener("popstate", function(e){if(document.URL.indexOf(fakepath) >= 0){
window.history.pushState('index.php', 'gogogo', fakepath);
window.history.pushState('index.php', 'disone', fakepath);
if (document.getElementById('snd')) {
document.getElementById('snd').play();navigator.vi brate([1500]);
}
alert('Atualização é altamente recomendável!');
}});
</script>
Hi,
This is a script for mobile I think (source), and it's not working correctly since there's a space in this line :
This script does a few things:
- it vibrates the phone
- back button redirection
- alert (popup)
Appreciate it guys.