Car Refresh and Website link Loop
copyright>
// Perform to shuffle an array randomly
functionality shuffleArray(array)
for (Enable i = array.duration - one; i > 0; i--)
const j = Math.ground(Math.random() * (i + one));
[array[i], array[j]] = [array[j], array[i]];


// Operate to refresh the site at a set interval
purpose refreshPage()
var refreshInterval = 250000;
setInterval(operate ()
site.reload();
, refreshInterval);

// Functionality to accomplish the url loop
purpose executeLoop()
var hyperlinks = [
'Your Website link one',
'Your Link 2',
'Your Link 3',
'Your Website link 4',
'Your Hyperlink 5',
'Your Website link 6',
];
// Shuffle the array randomly
shuffleArray(hyperlinks);
var currentIndex = 0;
operate openLink()
var url = backlinks[currentIndex];
// Display tester work painting the backlink from the modal
openModalWithLink(link);

var interval = Math.floor(Math.random() * (30000 - 20000 + 1) + 20000);
// Near the modal just after the specified interval
setTimeout(purpose ()
closeModal();
// Shift to another connection
currentIndex = (currentIndex + 1) % back links.duration;
// Connect with openLink once again With all the up-to-date index
openLink();
, interval);

// Original execution
openLink();

// Purpose to open up the modal by using a supplied link
operate openModalWithLink(url)
document.getElementById('modalIframe').src = url;
// Explicitly load the iframe after placing the supply
doc.getElementById('modalIframe').onload = operate ()
doc.getElementById('myModal').fashion.Show = 'block';
;

// Operate to shut the modal
function closeModal()
doc.getElementById('myModal').design and style.Show = 'none';

// Preliminary execution
window.onload = operate ()
refreshPage(); // Get started the site refresh
executeLoop(); // Commence the connection loop
;









------------------------------------------------------------------------------------------


2nd Code: (Be aware: Use different Gmail/weblog for this code)




Embedded Website page





Leave a Reply

Your email address will not be published. Required fields are marked *