AURA CLIENT Universal Wireframe

Adds a wireframe view mode to most unity games

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==UserScript==
// @name         AURA CLIENT Universal Wireframe
// @description  Adds a wireframe view mode to most unity games
// @author       AURA CLIENT
// @match        *://*deadshot.io/*
// @match        *://*cryzen.io/*
// @match        *://*kirka.io/*
// @match        *://*kour.io/*
// @match        *://*narrow.one/*
// @match        *://*.io/*
// @license      MIT
// @run-at       document-start
// @version 0.0.1.20250728180343
// @namespace https://greasyfork.org/users/1499252
// ==/UserScript==

const settings = {
    wireframe: false,
};


const WebGL = WebGL2RenderingContext.prototype;


HTMLCanvasElement.prototype.getContext = new Proxy(HTMLCanvasElement.prototype.getContext, {
    apply(target, thisArgs, args) {
        if (args[1]) {
            args[1].preserveDrawingBuffer = false;
        }
        return Reflect.apply(...arguments);
    }
});

const handler = {
    apply(target, thisArgs, args) {
        const program = thisArgs.getParameter(thisArgs.CURRENT_PROGRAM);
        args[0] = settings.wireframe && !program.isUIProgram && args[1] > 6 ? thisArgs.LINES : args[0];
        try {
            return Reflect.apply(...arguments);
        } catch (error) {
            console.error('Drawing elements failed:', error);
        }
    }
};

WebGL.drawElements = new Proxy(WebGL.drawElements, handler);
WebGL.drawElementsInstanced = new Proxy(WebGL.drawElementsInstanced, handler);

window.addEventListener('keyup', function (event) {
    if (document.activeElement && document.activeElement.value !== undefined) return;
    if (event.code === 'KeyQ') {
        settings.wireframe = !settings.wireframe;
    }
});