您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
gives admin UI (gives verifiers of games the "Automatically Verify Run" UI most importantly lol)
// ==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); }; })();