Skip to content

Instantly share code, notes, and snippets.

@Xetera
Created December 10, 2018 07:13
Show Gist options
  • Save Xetera/11f8b05f99012ee5f2c3056295d1d709 to your computer and use it in GitHub Desktop.
Save Xetera/11f8b05f99012ee5f2c3056295d1d709 to your computer and use it in GitHub Desktop.
simple hack to remove all the fun out of some stupid Facebook game
/* 1. press ctrl + shift + i
* 2. go to "Console" and find any log that starts with "###", click on its link
* 3. pretty print the script
* 4. search for "player.x = "
* 5. put a breakpoint on the same line and move your character with your mouse (game is paused now)
* 6. paste in the script
* 7. remove breakpoint, continue game
* 8. dab on the haters but enjoy knowing the fact you're so salty in a Facebook game that you search for hacks
*/
/* This line below will launch you into space indefinitely
* Once you feel like you've made enough money just bring it back to the default with
* this.itemDurationMultiplier = 1
*/
this.itemDurationMultiplier = 99
this.bossesCanDropEggs = true
this.extraLives = 1
this.player.magnetReach = 1000
this.player.attackIntervalMult = 0.0001
this.gemsMultiplier = 100
this.doubleShotTimer.active = true
this.doubleShotTimer.duration = 9999999
setInterval(() => {
this.meteors.killAllModels()
this.enemies.killAllModels()
}, 60)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment