Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

178
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda