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) => { 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" let demonMode = req.query.hasOwnProperty("demonlist") || req.query.hasOwnProperty("demonList") || req.query.type == "demonlist" || req.query.type == "demonList"
if (demonMode) { if (demonMode) {
@ -84,7 +84,9 @@ module.exports = async (app, req, res) => {
filters.type = 10 filters.type = 10
filters.str = demonMode ? demonList[req.id].list : filters.str.split(",") filters.str = demonMode ? demonList[req.id].list : filters.str.split(",")
listSize = filters.str.length 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 filters.page = 0
} }

View file

@ -58,10 +58,10 @@
let line = 0 let line = 0
let dialogue = [ 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", "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",
"So maybe Rob tried to fix it...", "...by killing GDBrowser??", "Look I really don't know", "Anyways uhhh", "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!", "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", "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", "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*" "I'm just gonna repeat myself", "*ahem*"

View file

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

View file

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