Skip to content

Instantly share code, notes, and snippets.

import * as HaxballScout from "haxballscout";
new HaxballScout.Host(
{
roomName: "My room",
maxPlayers: 16,
noPlayer: true
},
main
);
{"lastUpload":"2020-12-30T22:05:20.349Z","extensionVersion":"v3.4.3"}
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 ...
}
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() {
var room = HBInit({
accessKey: 'Your access key paste here',
roomName: "My room",