GeoFS-V3.9_Failure-Simulator

Advanced emergency training engine delivering realistic, unpredictable system failures.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         GeoFS-V3.9_Failure-Simulator
// @namespace    https://codeberg.org/AwesomeOddEven-NightKeys-LunarBlink
// @version      1.0.1
// @description  Advanced emergency training engine delivering realistic, unpredictable system failures.
// @author       AwesomeOddEven-NightKeys-LunarBlink
// @icon         https://AwesomeOddEven-NightKeys-LunarBlink.codeberg.page/GeoFS-V3.9_Failure-Simulator/logo.png
// @match        https://www.geo-fs.com/geofs.php*
// @grant        none
// @license      MIT
// @icon         https://codeberg.org/AwesomeOddEven-NightKeys-LunarBlink/GeoFS-V3.9_Failure-Simulator/raw/branch/main/logo.png
// ==/UserScript==

(function () {
    'use strict';

    if (!window.location.href.includes("geofs.php")) return;

    const CORE_URL = "https://AwesomeOddEven-NightKeys-LunarBlink.codeberg.page/GeoFS-V3.9_Core-Library/core-library.js";
    const CSS_URL = "https://AwesomeOddEven-NightKeys-LunarBlink.codeberg.page/GeoFS-V3.9_Design-System/design-system.css";
    const CDN_URL = "https://AwesomeOddEven-NightKeys-LunarBlink.codeberg.page/GeoFS-V3.9_Failure-Simulator/failure-simulator.js";

    function loadScript(url) {
        return new Promise((resolve, reject) => {
            const script = document.createElement('script');
            script.src = url + "?v=" + Date.now();
            script.onload = resolve;
            script.onerror = reject;
            document.head.appendChild(script);
        });
    }

    function loadCSS(url) {
        if (document.querySelector(`link[href*="design-system.css"]`)) return;
        const link = document.createElement('link');
        link.rel = 'stylesheet';
        link.href = url + "?v=" + Date.now();
        document.head.appendChild(link);
    }

    async function init() {
        console.log("[GeoFS-V3.9_Failure-Simulator] >> INITIALIZING FAILURE SIMULATOR ECOSYSTEM...");
        try {
            // 1. Load Foundations
            loadCSS(CSS_URL);
            if (!window.SafeInit) {
                await loadScript(CORE_URL);
                console.log("[GeoFS-V3.9_Failure-Simulator] >> FOUNDATION: CORE LIBRARY LOADED.");
            }

            // 2. Load Logic
            await loadScript(CDN_URL);
            console.log("[GeoFS-V3.9_Failure-Simulator] >> FAILURE SIMULATOR LOGIC LOADED.");
        } catch (e) {
            console.error("[GeoFS-V3.9_Failure-Simulator] >> ECOSYSTEM BOOT FAILURE. CHECK CDN STATUS.");
        }
    }

    init();
})();