Created
August 7, 2023 02:35
-
-
Save TruncatedDinoSour/9f7560a5e437ff537cc2c9d678a6c11b to your computer and use it in GitHub Desktop.
slope game ( https://www.y8.com/games/slope ) on y8.com set_points leaderboard hack in js kinda :3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* how to use : | |
* | |
* 0. open firefox | |
* 1. open slope https://www.y8.com/games/slope | |
* 2. open 'Console' | |
* 3. in the prompt, at the end see 'top' and press on it | |
* 4. select 'Unity WebGL Player | Slope' | |
* 5. paste in the code below | |
* 6. type `set_points(<points u want>)` e.g. `set_points(300)`, range [0;1000) | |
* 7. run the game ( make sure to log in ! ) | |
* 8. die in the game | |
* 9. watch the magic happen | |
* | |
* !! WARNING : may ( probably will ) result in a ban off the leaderboard if ur not sneaky :3 !! | |
*/ | |
function set_points(p) { | |
let s = JSON.stringify, t = "color:green;font-weight:bold"; | |
JSON.stringify = (j) => { | |
if (j.points !== undefined) { | |
console.log("%c[SET POINTS before]", t, j); | |
j.points = p; | |
console.log("%c[SET POINTS after]", t, j); | |
} | |
return s.call(this, j); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment