0% found this document useful (0 votes)
31 views1 page

Auto - Page - Reload Tls

script refresh app tls

Uploaded by

storetinfat23
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views1 page

Auto - Page - Reload Tls

script refresh app tls

Uploaded by

storetinfat23
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

// ==UserScript==

// @name Auto Refresh and Task Script


// @namespace https://violentmonkey.github.io/
// @version 0.1
// @description try to auto refresh a page and perform specific tasks every minute
// @author @storetinfat
// @match https://fr.tlscontact.com/appointment/ma/maCAS2fr/17172813
// @grant none
// ==/UserScript==

(function() {
'use strict';

// Time interval for refresh (in milliseconds)


const refreshInterval = 60000; // 1 minute = 60000 milliseconds

// Function to perform tasks before refreshing


function performtasks() {
console.log("Performing tasks before refresh...");
// Add your custom tasks here
// Example: alert("Page will refresh in a moment!");
}

// Perform tasks before refreshing the page


performtasks();

// Set a timeout to refresh the page after the specified interval


setTimeout(function() {
location.reload();
}, refreshInterval);

})();

You might also like