Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function openMenu() { document.getElementById('modmenu').outerHTML = "<div style='width: 250px; height: 200px;background:url(https://media0.giphy.com/media/3o7TKUfKeHBXXxAZtS/source.gif)' id='modmenu'><big style='color:cyan'>Mini Menu v1</big><div onclick='scoreHackOn()' id='test'><a>Score Hack </a><a style='color:red'>OFF</a></div><div id='stuck' onclick='stuckOn()'><a>Stuck </a><a style='color:red'>OFF</a></div><div id='INV' onclick='INVOn()'><a>Invincibility Hack </a><a style='color:red'>OFF</a></div><div id='HS' onclick='HSOn()'><a>Hacked HS </a><a style='color:red'>OFF</a></div><div id='night' onclick='nightOn()'><a>Night Mode </a><a style='color:red'>OFF</a></div><div><p style='color:red' onclick='closeMenu()' align='middle'>Close</></div></div>" }; function closeMenu() { document.getElementById('modmenu').outerHTML = "<div hidden style='width: 250px; height: 200px;' id='modmenu'><div onclick='scoreHackOff()' id='test'><a>Score Hack </a><a style='color:red'>OFF</a></div></div>"; }; function scoreHackOn() { document.getElementById('test').outerHTML = "<div id='test' onclick='scoreHackOff()'><a>Score Hack </a><a style='color:lime'>ON</a></div>"; Runner.instance_.setSpeed(999); }; function scoreHackOff() { document.getElementById('test').outerHTML = "<div id='test' onclick='scoreHackOn()'><a>Score Hack </a><a style='color:red'>OFF</a></div>"; Runner.instance_.setSpeed(5); }; function INVOn() { document.getElementById('INV').outerHTML = "<div id='INV' onclick='INVOff()'><a>Invincibility Hack </a><a style='color:lime'>ON</a></div>"; Runner.instance_.gameOver = function(){}; }; function INVOff() { document.getElementById('INV').outerHTML = "<div id='INV' onclick='INVOn()'><a>Invincibility Hack </a><a style='color:red'>OFF</a></div>";confirm('Sorry, but the only way to fix invincibility is to reload the page.') }; function HSOn() { document.getElementById('HS').outerHTML = "<div id='HS' onclick='HSOff()'><a>Hacked HS </a><a style='color:lime'>ON</a></div>"; Runner.instance_.saveHighScore(99999950); }; function HSOff() { document.getElementById('HS').outerHTML = "<div id='HS' onclick='HSOn()'><a>Hacked HS </a><a style='color:red'>OFF</a></div>"; Runner.instance_.saveHighScore(0); }; function nightOn() { document.getElementById('night').outerHTML = "<div id='night' onclick='nightOff()'><a>Night Mode </a><a style='color:lime'>ON</a></div>"; Runner.instance_.distanceRan = 28000; }; function nightOff() { document.getElementById('night').outerHTML = "<div id='night' onclick='nightOn()'><a>Night Mode </a><a style='color:red'>OFF</a></div>"; Runner.instance_.gameOver(); Runner.instance_.restart(); }; function stuckOn() { document.getElementById('stuck').outerHTML = "<div id='stuck' onclick='stuckOff()'><a>Stuck </a><a style='color:lime'>ON</a></div>"; Runner.instance_.playingIntro = true; }; function stuckOff() { document.getElementById('stuck').outerHTML = "<div id='stuck' onclick='stuckOn()'><a>Stuck </a><a style='color:red'>OFF</a></div>"; Runner.instance_.playingIntro = false; }; document.getElementById('main-message').outerHTML = "<a onclick='openMenu()'>Open</a><div hidden style='width: 250px; height: 200px; background:https://media.giphy.com/media/bTizwrZ0GAEKJNnbBl/giphy.gif' id='modmenu'><big style='color:cyan'>Mini Menu v1</big><div onclick='scoreHackOn()' id='test'><a>Score Hack </a><a style='color:red'>OFF</a></div></div>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement