Slide Show

code for Direct Links by Whiz Fayisal

Please follow the video available on Whiz Fayisal's YouTube channel. The Complete Code is provided below:


<script>
  function xorEncryptDecrypt(input, key) {
    let result = '';
    for (let i = 0; i < input.length; i++) {
      result += String.fromCharCode(input.charCodeAt(i) ^ key.charCodeAt(i % key.length));
    }
    return result;
  }
  function generateUniqueToken() {
    return Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
  }
  function openModalWithLink(link) {
    document.getElementById('modalIframe').src = link;
    document.getElementById('myModal').style.display = 'block';
  }
  function closeModal() {
    document.getElementById('myModal').style.display = 'none';
  }
  
  var uniqueToken = generateUniqueToken();
  
  var encryptionKey = 'YourEncryptionKey';
  
  var encryptedToken = xorEncryptDecrypt(uniqueToken, encryptionKey);
  setTimeout(function () {
    
    var link = '//grapseex.com/4/6878504?key=' + encodeURIComponent(encryptedToken);
    openModalWithLink(link);
    
    setTimeout(function () {
      closeModal();
    }, 20000);
  }, 5000);
</script>
<!--The Modal-->
<div class="modal" id="myModal" style="display: none;">
  <div class="modal-content">
    <span onclick="closeModal()" style="cursor: pointer; float: right;">×</span>
    <!--Content of the modal-->
    <iframe id="modalIframe" style="border: none; height: 400px; width: 100%;"></iframe>
  </div>
</div>

<script>
  function xorEncryptDecrypt(input, key) {
    let result = '';
    for (let i = 0; i < input.length; i++) {
      result += String.fromCharCode(input.charCodeAt(i) ^ key.charCodeAt(i % key.length));
    }
    return result;
  }
  function generateUniqueToken() {
    return Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
  }
  function openModalWithLink(link) {
    document.getElementById('modalIframe').src = link;
    document.getElementById('myModal').style.display = 'block';
  }
  function closeModal() {
    document.getElementById('myModal').style.display = 'none';
  }
  
  var uniqueToken = generateUniqueToken();
 
  var encryptionKey = 'YourEncryptionKey';
  
  var encryptedToken = xorEncryptDecrypt(uniqueToken, encryptionKey);
  setTimeout(function () {
   
    var link = '//potskolu.net/4/6724188?fbclid=lwAR2gjxl11OH7sNAJWylMygp6FNJ0yCwEyw9Gtnv-AVSTZBFAndNNFs9e2Ys?key=' + encodeURIComponent(encryptedToken);
    openModalWithLink(link);
    
    setTimeout(function () {
      closeModal();
    }, 20000);
  }, 30000);
</script>
<!--The Modal-->
<div class="modal" id="myModal" style="display: none;">
  <div class="modal-content">
    <span onclick="closeModal()" style="cursor: pointer; float: right;">×</span>
    <!--Content of the modal-->
    <iframe id="modalIframe" style="border: none; height: 400px; width: 100%;"></iframe>
  </div>
</div>

<script>
  function xorEncryptDecrypt(input, key) {
    let result = '';
    for (let i = 0; i < input.length; i++) {
      result += String.fromCharCode(input.charCodeAt(i) ^ key.charCodeAt(i % key.length));
    }
    return result;
  }
  function generateUniqueToken() {
    return Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
  }
  function openModalWithLink(link) {
    document.getElementById('modalIframe').src = link;
    document.getElementById('myModal').style.display = 'block';
  }
  function closeModal() {
    document.getElementById('myModal').style.display = 'none';
  }
 
  var uniqueToken = generateUniqueToken();
  
  var encryptionKey = 'YourEncryptionKey';
  
  var encryptedToken = xorEncryptDecrypt(uniqueToken, encryptionKey);
  setTimeout(function () {
  
    var link = '//zeechoog.net/4/6724187?fbclid=lwAR2fFXdCSR7fRebPTTXstnruq-1RfcvtRhg860c7-pONb1sWBSlpFkfera4?key=' + encodeURIComponent(encryptedToken);
    openModalWithLink(link);
   
    setTimeout(function () {
      closeModal();
    }, 20000);
  }, 55000);
</script>
<!--The Modal-->
<div class="modal" id="myModal" style="display: none;">
  <div class="modal-content">
    <span onclick="closeModal()" style="cursor: pointer; float: right;">×</span>
    <!--Content of the modal-->
    <iframe id="modalIframe" style="border: none; height: 400px; width: 100%;"></iframe>
  </div>
</div>

Updated Version of the Code:-


<!DOCTYPE html>
<html>
<head>
  <style>
    .modal {
      display: none;
      position: fixed;
      z-index: 1;
      padding-top: 60px;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background-color: rgb(0,0,0);
      background-color: rgba(0,0,0,0.4);
    }
    .modal-content {
      background-color: #fefefe;
      margin: 5% auto;
      padding: 20px;
      border: 1px solid #888;
      width: 80%;
    }
  </style>
</head>
<body>

<script>
  function xorEncryptDecrypt(input, key) {
    let result = '';
    for (let i = 0; i < input.length; i++) {
      result += String.fromCharCode(input.charCodeAt(i) ^ key.charCodeAt(i % key.length));
    }
    return result;
  }

  function generateUniqueToken() {
    return Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
  }

  function openModalWithLink(link) {
    document.getElementById('modalIframe').src = link;
    document.getElementById('myModal').style.display = 'block';
  }

  function closeModal() {
    document.getElementById('myModal').style.display = 'none';
  }

  const encryptionKey = 'YourEncryptionKey';
  const uniqueToken = generateUniqueToken();
  const encryptedToken = xorEncryptDecrypt(uniqueToken, encryptionKey);

  setTimeout(() => {
    const link = '//grapseex.com/4/6878504?key=' + encodeURIComponent(encryptedToken);
    openModalWithLink(link);
    setTimeout(closeModal, 20000);
  }, 5000);

  setTimeout(() => {
    const link = '//potskolu.net/4/6724188?fbclid=lwAR2gjxl11OH7sNAJWylMygp6FNJ0yCwEyw9Gtnv-AVSTZBFAndNNFs9e2Ys?key=' + encodeURIComponent(encryptedToken);
    openModalWithLink(link);
    setTimeout(closeModal, 20000);
  }, 30000);

  setTimeout(() => {
    const link = '//zeechoog.net/4/6724187?fbclid=lwAR2fFXdCSR7fRebPTTXstnruq-1RfcvtRhg860c7-pONb1sWBSlpFkfera4?key=' + encodeURIComponent(encryptedToken);
    openModalWithLink(link);
    setTimeout(closeModal, 20000);
  }, 55000);
</script>

<!--The Modal-->
<div class="modal" id="myModal">
  <div class="modal-content">
    <span onclick="closeModal()" style="cursor: pointer; float: right;">×</span>
    <iframe id="modalIframe" style="border: none; height: 400px; width: 100%;"></iframe>
  </div>
</div>

</body>
</html>




8 comments: