Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

177
Vistas
need help looping let runOurCode

im trying to set runOurCode true then false every 5 seconds i have tryed setInterval,setTimout,forLoop and still dint worked asked some friends but everyone is offline rn :/

var editingCode;
let runOurCode = false
const oldFrame = requestAnimationFrame;
WebSocket.prototype.send = new Proxy(WebSocket.prototype.send, {
  apply: function(target, scope, args) {
    if (typeof(args[0]) === 'string') {
      let json = JSON.parse(args[0]);
      if (json[0] === 3) {
        editingCode = (json[1])
      }
    }
    let data = target.apply(scope, args);
    return data;
  }
})

WebSocket.prototype.send = new Proxy(WebSocket.prototype.send, {
  apply: function(target, scope, args) {
    if (typeof(args[0]) === 'string') {
      let json = JSON.parse(args[0]);
      if (runOurCode) {
        target.apply(scope, [`[5,77]`]) // u dont need function here (MY BAD)
        runOurCode = false // set back to false so it doesnt keep drinking
      }
    }

    let run = false
    document.addEventListener("keypress", e => {
      if (e.code === "KeyC") {
        runOurCode = true
      }
    })

    let data = target.apply(scope, args);
    return data;
  }
})
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda