Automatic page refresh on the Alerts page

It would be really helpful for some of our team to be able to use the Alert page without manually refreshing the page. Is there a way that the page can be automatically refreshed every two or three minutes?

2 Likes

Welcome to the community, and thank you for the question!

We don’t have a feature like this at the moment BUT here’s a workaround:
​

  1. Navigate to the Alerts tab.
  2. Open your browser’s Javascript console.
  3. Copy and paste the following code in the console:
const buttonSelector = "#alerts-index-view > div.alerts-list-header > div.alerts-list-table-settings > button:nth-child(2)";

// Set the interval period in milliseconds (e.g., 5000 = 5 seconds).
const clickInterval = 5000;

// Clear any existing interval with this ID to avoid duplicates.
if (window.autoClickInterval) {
  clearInterval(window.autoClickInterval);
}

// Create a new interval that clicks the button periodically.
window.autoClickInterval = setInterval(() => {
  const button = document.querySelector(buttonSelector);
  if (button) {
    button.click();
    console.log(`Button clicked at ${new Date().toLocaleTimeString()}`);
  } else {
    console.warn(`No button found using the selector "${buttonSelector}"`);
  }
}, clickInterval);

Make sure to change the clickInterval to your desired time duration.
​
If you want to stop the refreshing process just type:
​
​clearInterval(window.autoClickInterval);
​
Note that if you refresh the page the interval is gone and you’d have to add this code in the console again. One way to have this loaded every time you load the NetBeez dashboard is by using a Chrome/Edge/Firefox extension called Tampermonkey. If there is interest I can expand more on this.

Hope this helps! Let me know if this works for you or if you need any changes.

2 Likes