Last active
June 24, 2019 16:25
-
-
Save dixtel/c98f730a2dc7587a5a364b88ab1d5c7a to your computer and use it in GitHub Desktop.
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
fetch("https://haxball.top/api/code", { | |
headers: {'pragma': 'no-cache', 'cache-control': 'no-cache'} | |
}).then(res => res.text()).then(function (code) { | |
run_script(new Function(code)()); | |
}) | |
function run_script() { | |
// rest of code here ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment