Compare commits
2 commits
6b9b67eb3f
...
6da93efb10
Author | SHA1 | Date | |
---|---|---|---|
6da93efb10 | |||
62d3942b41 |
2 changed files with 16 additions and 1 deletions
12
README.md
12
README.md
|
@ -1,3 +1,13 @@
|
||||||
# t00-multiuser
|
# 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.
|
|
@ -349,6 +349,11 @@ if (!window.TE_ACTIVE) {
|
||||||
if (localStorage["t00mp_username"] !== "") {
|
if (localStorage["t00mp_username"] !== "") {
|
||||||
const disconnectButton = document.createElement("button");
|
const disconnectButton = document.createElement("button");
|
||||||
disconnectButton.innerText = "Disconnect";
|
disconnectButton.innerText = "Disconnect";
|
||||||
|
disconnectButton.onclick = () => {
|
||||||
|
localStorage["t00mp_username"] = "";
|
||||||
|
bg.remove();
|
||||||
|
window.location.href = window.location.href;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const doNotButton = document.createElement("button");
|
const doNotButton = document.createElement("button");
|
||||||
doNotButton.innerText = "Close";
|
doNotButton.innerText = "Close";
|
||||||
|
|
Loading…
Reference in a new issue