Greasy Fork is available in English.

Speedrun.com Site Admin UI

gives admin UI (gives verifiers of games the "Automatically Verify Run" UI most importantly lol)

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         Speedrun.com Site Admin UI
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  gives admin UI (gives verifiers of games the "Automatically Verify Run" UI most importantly lol)
// @author       retrozy
// @match        *://www.speedrun.com/*
// @run-at       document-start
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    const originalFetch = window.fetch;

    window.fetch = async function(input, init) {
        const url = (typeof input === 'string') ? input : input.url;

        if (url.includes('/api/v2/GetSession')) {
            console.log('[Tampermonkey] Intercepted GetSession request:', url);

            const response = await originalFetch.apply(this, arguments);

            const clonedResponse = response.clone();

            const json = await clonedResponse.json();

            if (json.session.user) {
                json.session.user.powerLevel = 5;
            }

            const modifiedResponse = new Response(JSON.stringify(json), {
                status: response.status,
                statusText: response.statusText,
                headers: response.headers
            });

            return modifiedResponse;
        }

        return originalFetch.apply(this, arguments);
    };
})();