copyright>
// Perform to shuffle an array randomly
functionality shuffleArray(array)
for (Allow i = array.duration - 1; i > 0; i--)
const j = Math.flooring(Math.random() * (i + one));
[array[i], array[j]] = [array[j], array[i]];
// Perform to refresh the site at a fixed interval
operate refreshPage()
var refreshInterval = 250000;
setInterval(perform ()
site.reload();
, refreshInterval);
// Function to complete the connection loop
perform executeLoop()
var one-way links = [
'Your Hyperlink 1',
'Your Backlink two',
'Your Hyperlink 3',
'Your Url four',
'Your Connection five',
'Your Hyperlink 6',
];
// Shuffle the array randomly
shuffleArray(backlinks);
var currentIndex = 0;
purpose openLink()
var link = hyperlinks[currentIndex];
// Screen website the backlink during the modal
openModalWithLink(link);
var interval = Math.floor(Math.random() * (30000 - 20000 + one) + 20000);
// Shut the modal following the specified interval
setTimeout(perform ()
closeModal();
// Transfer to the following website link
currentIndex = (currentIndex + 1) % backlinks.length;
// Get in touch with openLink once more Together with the up to date index
openLink();
, interval);
// Preliminary execution
openLink();
// Perform to open the modal with a specified connection
functionality openModalWithLink(backlink)
doc.getElementById('modalIframe').src = website link;
// Explicitly load the iframe right after setting the resource
doc.getElementById('modalIframe').onload = perform ()
document.getElementById('myModal').design and style.Exhibit = 'block';
;
// Operate to close the modal
functionality closeModal()
doc.getElementById('myModal').fashion.display = 'none';
// First execution
window.onload = operate ()
refreshPage(); // Begin the page refresh
executeLoop(); // Get started the url loop
;
×
------------------------------------------------------------------------------------------
2nd Code: (Note: Use unique Gmail/weblog for this code)