Auto Game Redirect

Automatically fetches game status and redirects if valid game is available. this is on robloxsoftworks.xyz

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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 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.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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         Auto Game Redirect
// @namespace    http://tampermonkey.net/
// @version      0.1
// @license MIT
// @description  Automatically fetches game status and redirects if valid game is available. this is on robloxsoftworks.xyz
// @author       NYXEN
// @match        https://robloxsoftworks.xyz/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    (async () => {
        try {
            const e = await fetch("api/latest");
            if (!e.ok) {
                throw new Error("Network response was not ok");
            }
            const a = await e.json();
            if (a.game === "Uploading") {
                await Swal.fire("Error", "Game is getting uploaded. Please try again.", "error");
            } else if (a.game === "UnderReview") {
                await Swal.fire("Error", "Game is under review, attempting to bypass. Please try again.", "error");
            } else {
                await Swal.fire({
                    title: "Success",
                    text: "Got valid game. Redirecting now.",
                    icon: "success",
                    confirmButtonText: "OK"
                });
                window.location.href = a.game;
            }
        } catch (e) {
            console.error("Error:", e);
        }
    })();
})();