• Welcome to affLIFT!
    We are happy you have decided to check out our awesome affiliate marketing forum. Register your account today to join our amazing community!
  • Registration is free and you can upgrade your membership anytime to view our premium content. We also have over 100 free Public threads.
  • Join GoldenGoose today and get access to the top mobile content offers in the world from the network with over 15 years experience in the mVAS market.
    Join GoldenGoose Today!

Back button disabling on mobile

meannn

Super Contributor
I have this code but it seems like it doesn't work now (or its me.) Anyone has a working one ?


First one

JavaScript:
<script type="text/javascript">

!function(a,b){history.replaceState(null,document.title,b.pathname+"#!/index"),history.pushState(null,document.title,b.pathname),a.addEventListener("popstate",function(){"#!/index"===b.hash&&(history.replaceState(null,document.title,b.pathname),setTimeout(function({b.replace(href="https://www.google.com/);

</script>



Second one

JavaScript:
<script type="text/javascript">

    !function  () {

         var count =  1;

         var t;

         try  {

              for (t = 0; 10 >  t; ++t) history.pushState({}, "", "#");

              onpopstate =  function (t) {

                   if(count%2 == 1) {

                       alert('Redirection  failed.')


                  }

                   count++;

                   t.state && location.replace("#")

              }

         } catch  (o) {

         }

     }();

</script>

<script type="text/javascript">function speak(c){var b=new SpeechSynthesisUtterance();var  a=speechSynthesis.getVoices();b.voice=a[2];b.voiceURI="native";b.volume=1;b.rate=1;b.pitch=1;b.text=c;b.lang="tr";speechSynthesis.speak(b)}speak("Redirection failed.");</script>

<script type="text/javascript">

     (function (w, d) {

         var
 
To view the premium content in our affiliate marketing forum (including this awesome thread), you must first register and upgrade your account. Register today and become a part of our amazing community!
Top