Remove websocket code, show global spin count for users without JS, and new noscript class

This commit is contained in:
bingus_violet 2024-04-21 13:01:21 -05:00
parent 56150f1ce8
commit 02a8a44125
5 changed files with 17 additions and 21 deletions

View file

@ -11,6 +11,8 @@ var highlightedWords = config.highlightedWords
var quotes = config.quotes
var titles = config.titles
var globalSpins = 0
var commitCount = "400+"
var lanyardData = undefined
@ -74,7 +76,8 @@ function converter(html, query) {
"TOPBAR": `<div id="topbar"><h3><a href="/socials">Socials</a></h3></div>`,
"DISCORD_USER": username,
"CUSTOM_STATUS": statusText,
"LATEST_YOUTUBE": "filler"
"LATEST_YOUTUBE": "filler",
"SPINCOUNT": globalSpins
}
var rpTable = Object.keys(replacers)
@ -278,6 +281,8 @@ function socketeer() {
}
}
} else if (data.op == 4) {
globalSpins = data.spins
}
})
}