Amazon Redirect JavaScript

Click & Redirect Single  Link to Other Browser 

<a href="#" onclick="let u='https://example.com';location='intent://'+u.replace(/^https?:\/\//,'')+'#Intent;package=com.android.chrome;scheme=https;end';setTimeout(()=>location.href=u,1000);">Open in Chrome</a>

Image Redirect  other browser 

<img src="Imgbb Link.jpg" alt="Click Me" style="width:200px;cursor:pointer"
onclick="let u='https://example.com';location='intent://'+u.replace(/^https?:\/\//,'')+'#Intent;package=com.android.chrome;scheme=https;end';setTimeout(()=>location.href=u,1000);">

 Text To Amazon App Redirect

<a href="#" onclick="let u='https://www.amazon.in';location='intent://www.amazon.in#Intent;package=in.amazon.mShop.android.shopping;scheme=https;end';setTimeout(()=>location.href=u,1000);">Open in Amazon</a>


Image To Amazon App  :
<img src="your-image.jpg" alt="Amazon" style="width:200px;cursor:pointer"
onclick="let u='https://www.amazon.in';location='intent://www.amazon.in#Intent;package=in.amazon.mShop.android.shopping;scheme=https;end';setTimeout(()=>location.href=u,1000);">

Amazon + Target Link Open In 1 Click  Chrome 

1.
<a href="#" onclick="
    let amazon = 'https://www.amazon.in/';
    let other = 'https://example.com/';
    window.open(amazon, '_blank'); 
    window.open(other, '_blank');
    return false;
">Open Amazon & Other</a>

2.

<a href="#" onclick="
    let amazon = 'https://www.amazon.in';
    let other = 'https://example.com';
    location = 'intent://www.amazon.in#Intent;package=in.amazon.mShop.android.shopping;scheme=https;end';
    setTimeout(() => {
        location.href = amazon;
        window.open(other, '_blank');
    }, 1000);
    return false;
">Open in Amazon & Other</a>

In Image to Amazon App :


<img src="your-image.jpg" 
     alt="Amazon" 
     style="width:200px;cursor:pointer"
     onclick="
        let amazon = 'https://www.amazon.in';
        let other = 'https://example.com';
        location = 'intent://www.amazon.in#Intent;package=in.amazon.mShop.android.shopping;scheme=https;end';
        setTimeout(() => {
            location.href = amazon;
            window.open(other, '_blank');
        }, 1000);
     ">


_____________________________________

Automatic Relode page new tab


<script type="text/javascript">

      function idleTimer() {

    var t;

    //window.onload = resetTimer;

    window.onmousemove = resetTimer; // catches mouse movements

    window.onmousedown = resetTimer; // catches mouse movements

    window.onclick = resetTimer;     // catches mouse clicks

    window.onscroll = resetTimer;    // catches scrolling

    window.onkeypress = resetTimer;  //catches keyboard actions


    function logout() {

        window.location.href = 'logout.php';  //Adapt to actual logout script

    }


   function reload() {

          window.open('https://www.google.com', '_blank');

   }


   function resetTimer() {

        clearTimeout(t);

        t = setTimeout(logout, 60000);  // time is in milliseconds (1000 is 1 second)

        t= setTimeout(reload, 8000);  // time is in milliseconds (1000 is 1 second)

    }

}

idleTimer();

        </script>_


____________________________________________________________________________________________________


Post Redirected 5s


<script type="text/javascript">   

    function Redirect() 

    {  

        window.open('https://www.google.com', '_blank');

    } 

    setTimeout('Redirect()', 5000);   

</script>


_______________________________________________________________________________________________________


Blogger post advance timer


<style>

.button {

    background-image: linear-gradient(to right, #00e087, #a8eb12);

    color: black;

    font-family: Arial Bold;

    font-size: 30px;

    text-decoration: none;

    padding: 3px;

}

.gag{

    background-image: linear-gradient(to right, #00e087, #a8eb12);

    color: black;

    font-family: Arial Bold;

    font-size: 30;

    text-decoration: none;

    padding: 3px;

}

</style>


<div style="text-align: center;">

<a href="https://Google.com" target="_blank" id="download" class="button">Download File</a>


<button id="btn" class="gag">Click to Generate Link</button>


<script>

var downloadButton = document.getElementById("download");

var counter = 3;

var newElement = document.createElement("p");

newElement.innerHTML = "3 sec";

var id;


downloadButton.parentNode.replaceChild(newElement, downloadButton);


function startDownload() {

    this.style.display = 'none';

    id = setInterval(function () {

        counter--;

        if (counter < 0) {

            newElement.parentNode.replaceChild(downloadButton, newElement);

            clearInterval(id);

        } else {

            newElement.innerHTML = +counter.toString() + " Sec";

        }

    }, 1500);

};


var clickbtn = document.getElementById("btn");

clickbtn.onclick = startDownload;

</script>


_______________________________________________________________________________________


Blogger post timer download link Button


<div dir="ltr" style="text-align: left;" trbidi="on">

<body>

<center>

<span id="countdown">You have to wait 1 seconds.</span></center>

<br />

<div style="text-align: center;">

<br />

<a href="https://www.mediafire.com/folder/raoleaw5fvir/Rtf 84" id="download_link" style="display: none;">


<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlkeyQXsicUatJGVD7b6xm9yx8FS_kygBFIS793vLUmojfycEaCDn5MP-UmZKDoNQ_Uynzw8kuOBbiYjb-xSl1qZ6OKEL2dGxJ8-NnxAyTdDC_T2X1CZfxjkhP3Mr3fIqt8TVN176pTso/w320-h78/107-1073795_download-button-png-file-download-free-download-button.png" /></a>

<noscript>JavaScript needs to be enabled in order to be able to download.</noscript>

<script type="application/javascript">

(function(){

var message = "%d seconds before download link appears";

// seconds before download link becomes visible

var count = 10;

var countdown_element = document.getElementById("countdown");

var download_link = document.getElementById("download_link");

var timer = setInterval(function(){

// if countdown equals 0, the next condition will evaluate to false and the else-construct will be executed

if (count) {

// display text

countdown_element.innerHTML = "You have to wait %d seconds.".replace("%d", count);

// decrease counter

count--;

} else {

// stop timer

clearInterval(timer);

// hide countdown

countdown_element.style.display = "none";

// show download link

download_link.style.display = "";

}

}, 1000);

})();

</script>

</div>

  </body></div>