MythicalDash Auto Refresh on Critical Error

Fix Mythical Dash Error

// ==UserScript==
// @name         MythicalDash Auto Refresh on Critical Error
// @namespace    https://vgwarden.vercel.app
// @version      1.0
// @description  Fix Mythical Dash Error
// @author       VGWARDEN
// @match        *://*/*
// @grant        none
// @license     Proprietary
// ==/UserScript==

(function() {
    'use strict';

    function checkAndRefresh() {
        if (document.title.includes('MythicalDash - Critical Error')) {
            location.reload(true); // Refresh the page immediately
        }
    }

    checkAndRefresh();

    setInterval(checkAndRefresh, 5000);
})();