在您安裝前,Greasy Fork镜像希望您了解本腳本包含“可能不受歡迎的功能”,可能幫助腳本的作者獲利,而不能給你帶來任何收益。
此腳本會在您造訪的網站插入廣告。
Let's you see players behind walls. やったるでぇ
// ==UserScript== // @name voxoim.io Wireframe View cant work // @namespace http://tampermonkey.net/ // @version 1 // @description Let's you see players behind walls. やったるでぇ // @author DOFURA (DFR) // @match *://voxiom.io/* // @icon https://www.google.com/s2/favicons?domain=voxiom.io // @grant none // @run-at document-start // @antifeature ads // ==/UserScript== let wireframeEnabled = true; const WebGL = WebGL2RenderingContext.prototype; HTMLCanvasElement.prototype.getContext = new Proxy( HTMLCanvasElement.prototype.getContext, { apply( target, thisArgs, args ) { if ( args[ 1 ] ) { args[ 1 ].preserveDrawingBuffer = true; } return Reflect.apply( ...arguments ); } } ); WebGL.shaderSource = new Proxy( WebGL.shaderSource, { apply( target, thisArgs, args ) { if ( args[ 1 ].indexOf( 'gl_Position' ) > - 1 ) { args[ 1 ] = args[ 1 ].replace( 'void main', ` out float vDepth; uniform bool enabled; uniform float threshold; void main ` ).replace( /return;/, ` vDepth = gl_Position.z; if ( enabled && vDepth > threshold ) { gl_Position.z = 1.0; } ` ); } else if ( args[ 1 ].indexOf( 'SV_Target0' ) > - 1 ) { args[ 1 ] = args[ 1 ].replace( 'void main', ` in float vDepth; uniform bool enabled; uniform float threshold; void main ` ).replace( /return;/, ` if ( enabled && vDepth > threshold ) { SV_Target0 = vec4( 1.0, 0.0, 0.0, 1.0 ); } ` ); } return Reflect.apply( ...arguments ); } } ); WebGL.getUniformLocation = new Proxy( WebGL.getUniformLocation, { apply( target, thisArgs, [ program, name ] ) { const result = Reflect.apply( ...arguments ); if ( result ) { result.name = name; result.program = program; } return result; } } ); WebGL.uniform4fv = new Proxy( WebGL.uniform4fv, { apply( target, thisArgs, args ) { if ( args[ 0 ].name === 'hlslcc_mtx4x4unity_ObjectToWorld' ) { args[ 0 ].program.isUIProgram = true; } return Reflect.apply( ...arguments ); } } ); let movementX = 0, movementY = 0; let count = 0;
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址