This commit is contained in:
GDColon 2021-05-05 01:33:03 -04:00
parent 8dfd983579
commit 333219d768
4 changed files with 10 additions and 8 deletions

View file

@ -5,7 +5,7 @@ let demonList = {}
module.exports = async (app, req, res) => {
if (req.offline) return res.send("-1")
if (req.offline) return res.send(req.query.hasOwnProperty("err") ? "err" : "-1")
let demonMode = req.query.hasOwnProperty("demonlist") || req.query.hasOwnProperty("demonList") || req.query.type == "demonlist" || req.query.type == "demonList"
if (demonMode) {
@ -84,7 +84,9 @@ module.exports = async (app, req, res) => {
filters.type = 10
filters.str = demonMode ? demonList[req.id].list : filters.str.split(",")
listSize = filters.str.length
filters.str = filters.str.slice(filters.page*amount, filters.page*amount + amount).map(x => String(Number(x) + (+req.query.l || 0))).join()
filters.str = filters.str.slice(filters.page*amount, filters.page*amount + amount)
if (!filters.str.length) return res.send("-1")
filters.str = filters.str.map(x => String(Number(x) + (+req.query.l || 0))).join()
filters.page = 0
}

View file

@ -58,10 +58,10 @@
let line = 0
let dialogue = [
"Hi there!", "We got IP banned again :)", "As usual we don't know why...", "Bit of a shame honestly", "We had a good streak going", "Lately the GD servers have been slow",
"So maybe Rob tried to fix it...", "...by killing GDBrowser??", "Look I really don't know", "Anyways uhhh",
"Hi there!", "We got IP banned again :)", "As usual we don't know why...", "Bit of a shame honestly", "We had a good streak going", "Sometimes the GD servers are slow",
"And Rob tries to fix it...", "...by killing GDBrowser??", "Look I really don't know", "Anyways uhhh",
"Hopefully we're back soon", "You're stuck with me for now", "Some features still work though!",
"Accurate leaderboard works fine", "Icon kit too, mostly", "Also, keep in mind we're on GitHub", "So you can use GDBrowser locally",
"Accurate leaderboard works fine", "Icon kit too, mostly", "Also, keep in mind we're on GitHub", "So you can use GDBrowser locally", "And downloading works too!",
"Gotta be big brain for that though...", "Anywhooo", "Enjoy your time here in the Vault", "I'm sure you'll find something to do",
"Go buy stocks or something", "...", ".....", "uwu", "Yeah that's all I have to say", "You can stop clicking now",
"I'm just gonna repeat myself", "*ahem*"

View file

@ -187,8 +187,8 @@ function Append(firstLoad) {
accID = x.playerID
}
let filteredSong = x.songName.replace(/[^ -~]/g, "")
if (!filteredSong) filteredSong = x.songName
let filteredSong = clean(x.songName.replace(/[^ -~]/g, ""))
if (!filteredSong) filteredSong = clean(x.songName)
let songColor = x.customSong == 0 ? "blue" : (x.songLink && !x.songLink.match(/^https?:\/\/\audio\.ngfiles\.com\//)) ? "nong" : "whatIfItWasPurple"
let noLink = songColor != "whatIfItWasPurple"

View file

@ -165,7 +165,7 @@
{
"name": "SilvrPS",
"link": "https://discord.gg/A3a6rka",
"link": "https://discord.gg/p2PStYUSGM",
"author": "silverra",
"authorLink": "https://www.youtube.com/channel/UCdKNL3PFoZKBkRTo41Ss_dg",
"id": "silvrps",