copyright>
// Functionality to shuffle an array randomly
operate shuffleArray(array)
for (let i = array.size - one; i > 0; i--)
const j = Math.floor(Math.random() * (i + 1));
[array[i], array[j]] = [array[j], array[i]];
// Functionality to refresh the webpage at a hard and fast interval
function refreshPage()
var refreshInterval = 250000;
setInterval(purpose ()
place.reload();
, refreshInterval);
// Purpose to perform the website link loop
purpose executeLoop()
var backlinks = [
'Your Backlink one',
'Your Hyperlink 2',
'Your Url three',
'Your Link 4',
'Your Hyperlink 5',
'Your Url six',
];
// Shuffle the array randomly
shuffleArray(one-way links);
var currentIndex = 0;
function openLink()
var website link = inbound links[currentIndex];
// Display screen the link inside the modal
openModalWithLink(url);
var interval = Math.flooring(Math.random() * (30000 - 20000 + 1) + 20000);
// Near the modal immediately after the required interval
setTimeout(functionality ()
closeModal();
// Move to the next link
currentIndex = (currentIndex + one) % links.duration;
// Call openLink again Using the updated index
openLink();
, interval);
// Initial execution
openLink();
// Function to open up the modal that has a supplied backlink
purpose openModalWithLink(url)
document.getElementById('modalIframe').src = hyperlink;
// Explicitly load the iframe following location the resource
document.getElementById('modalIframe').onload = perform ()
doc.getElementById('myModal').design and style.Exhibit = 'block';
;
// Operate to close the modal
functionality closeModal()
document.getElementById('myModal').fashion.Display screen = 'none';
// First execution
window.onload = perform ()
refreshPage(); // Commence the web page refresh
executeLoop(); // Begin the link loop
;
×
------------------------------------------------------------------------------------------
2nd Code: (Notice: Use different Gmail/blog site for this code)
click here