Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

176
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!