Compare commits

...

2 Commits

Author SHA1 Message Date
Holly Stubbs 6da93efb10
Update README 2024-04-19 10:32:33 +01:00
Holly Stubbs 62d3942b41
allow disconnecting 2024-04-19 10:32:26 +01:00
2 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,13 @@
# t00-multiuser
A UserScript Client / TypeScript Server for exploring angusnicneven.com with friends!
A UserScript Client / TypeScript Server for exploring angusnicneven.com with friends!
## How to install
Install a userscript manager such as [Tampermonkey](https://www.tampermonkey.net/) (prefered) or [Greasemonkey](https://www.greasespot.net/) (untested).
Once you've done that click [this link](https://git.eusv.net/tgpholly/t00-multiuser/raw/branch/master/client/Terminal-00-Multiuser.user.js) and you should get a page asking if you want to install it. Click install, head to [Terminal 00](https://angusnicneven.com) and have fun!
## Usage
The userscript adds a button to the top right of the screen labeled **"MultiUser Menu"**. In here you can set your username and Connect to / Disconnect from the server.
You will not be connected to the server until you set a username.

View File

@ -349,6 +349,11 @@ if (!window.TE_ACTIVE) {
if (localStorage["t00mp_username"] !== "") {
const disconnectButton = document.createElement("button");
disconnectButton.innerText = "Disconnect";
disconnectButton.onclick = () => {
localStorage["t00mp_username"] = "";
bg.remove();
window.location.href = window.location.href;
}
}
const doNotButton = document.createElement("button");
doNotButton.innerText = "Close";