Skip to content

Global variable inaccessible #39

Description

@gaetgu

I love this extension, because I primarily use safari as my browser. I had been using Tampermonkey on brave for a while just because I had to cough up two dollars if I wanted to get it on safari, so I found this and I love it! It has a great GUI and mostly works great. I have never run into an issue with it before this. I have a script that I run every once in a while on a game that I play.

let t = 3;
let b = 0;
GameManager.game.currentScene.__proto__.allowUpdate=!0,GameManager.game.currentScene.__proto__.update=function(){this.allowUpdate&&(!this.state.paused&&this.state.playing&&(this.message.update(),this.updatePlayers(),this.score.update(),this.playerManager.firstPlayer.complete?this.trackComplete():this.ticks++),this.sound.update(),this.restartTrack&&this.restart(),this.vehicleTimer.update(),this.camera.update(),this.camera.updateZoom(),this.state.showDialog||(this.updateGamepads(),this.checkGamepads())),this.updateToolHandler(),this.mouse.update(),this.screen.update(),this.updateControls(),(this.importCode||this.clear)&&this.createTrack(),this.isStateDirty()&&this.updateState(),this.stage.clear(),this.draw(),this.stage.update(),this.allowUpdate=b%t==0,b++,b%=t}

This works perfectly fine if I just paste it into the safari console, but if I try to use it as pasted there in the extension, it doesn't run. Like I said, this is the first issue I have run into with this extension. I have tried commenting out and even removing the rest of the functions I have in it, but it still doesn't work. The site that this is supposed to run on is https://freeriderhd.com/random/track . Thanks for any help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions