diff --git a/dist/index.html b/dist/index.html index e4de32c..f339b99 100644 --- a/dist/index.html +++ b/dist/index.html @@ -11,10 +11,10 @@ - - + + - + @@ -48,7 +48,7 @@ - CollabVM + BetterVM @@ -63,15 +63,12 @@ Rules - + diff --git a/src/common.js b/src/common.js index 0ee92c5..f150955 100644 --- a/src/common.js +++ b/src/common.js @@ -1,16 +1,7 @@ export const config = { serverAddresses: [ - "wss://computernewb.com/collab-vm/vm0", - "wss://computernewb.com/collab-vm/vm1", - "wss://computernewb.com/collab-vm/vm2", - "wss://computernewb.com/collab-vm/vm3", - "wss://computernewb.com/collab-vm/vm4", - "wss://computernewb.com/collab-vm/vm5", - "wss://computernewb.com/collab-vm/vm6", - "wss://computernewb.com/collab-vm/vm7", - "wss://computernewb.com/collab-vm/vm8", ], - chatSound: "https://computernewb.com/collab-vm/notify.ogg", + chatSound: "https://usernamee.duckdns.org/better-vm/notify.ogg", // What XSS implementation the server uses // 0: No XSS (cvm1.2.11) // 1: Internal fork style (cvm1.ts, global opcode 21) diff --git a/src/index.js b/src/index.js index 01cc935..5f24a2e 100644 --- a/src/index.js +++ b/src/index.js @@ -877,7 +877,8 @@ usernameSpan.addEventListener('click', () => { // Load all vms (async () => { var p = []; -config.serverAddresses.forEach(v => p.push(multicollab(v))); +const {nodes} = await fetch('/better-vm/nodelist/nodelist.json').then(x=>x.json()); +[...config.serverAddresses,...nodes].forEach(v => p.push(multicollab(v))); await Promise.all(p); var vm = vms.find(v => v.id === window.location.hash.substring(1)); if (vm)