// ==UserScript== // @name Chat-Mods // @namespace http://tampermonkey.net/ // @version 2026-03-27 // @description Change Comchat functionality // @author Anonymous // @match https://chat.guro.cx/ // @icon https://www.google.com/s2/favicons?sz=64&domain=guro.cx // @grant none // ==/UserScript== (function () { 'use strict'; console.log('Chat-Mods loaded'); const frames = document.querySelector('frameset'); const formFrame = document.querySelector('frame[name="form"]'); const logFrame = document.querySelector('frame[name="log"]'); let formDoc; let form; if (!frames || !formFrame || !logFrame) return; frames.setAttribute('rows', '0,*'); frames.setAttribute('frameborder', '0'); frames.setAttribute('border', '0'); frames.setAttribute('framespacing', '0'); logFrame.src = 'http://localhost:4200?framed=true'; const iframe = document.createElement('iframe'); iframe.name = 'hidden_frame'; iframe.style.display = 'none'; document.body.appendChild(iframe); function extractError(body) { if (!body) return 'Page not loaded'; const html = body.innerHTML; if (!html.includes('