Reduce rain, remove comments

This commit is contained in:
Violet 2024-03-04 15:11:27 +00:00 committed by GitHub
parent 8db8c95df1
commit c23e8fef0a
2 changed files with 1 additions and 35 deletions

View file

@ -2,7 +2,6 @@ const express = require('express'),
path = require('path'),
fs = require('fs'),
pageUpdater = require('./pageUpdater.js')
// ytjs = require("youtubei.js")
var app = express()
@ -10,47 +9,14 @@ const PORT = process.env.PORT || 8080
const staticpath = path.join(__dirname, 'static')
// var mostRecentVideo = undefined
var config = JSON.parse(fs.readFileSync(path.join(__dirname, 'config.json')))
// var thumborInstances = config.thumborInstances
// var thumbCount = 0
// function getThumbor() {
// thumbCount += 1
// return thumborInstances[thumbCount % thumborInstances.length] + "unsafe"
// }
// async function getMostRecentVid() {
// innertube = await ytjs.Innertube.create()
// var video = await (await (await ytjs.Innertube.create()).getChannel('UChcrBJNJLZucy3TPyGyAY2g'))
// video = video.current_tab.content.contents[1].contents[0].content.items[0]
// mostRecentVideo = video.endpoint.payload.videoId
// console.log(mostRecentVideo)
// }
// getMostRecentVid()
app.listen(PORT, () => {
console.log("Violet's Purgatory is now listening on port: " + PORT)
})
var cachePath = path.join(staticpath, 'cached')
// var gamePath = path.join(__dirname, "games")
var fontPath = path.join(staticpath, "fonts")
// var imgPath = path.join(staticpath, 'imgs')
app.use("/games", function (req, res, next) {
res.setHeader("Cross-Origin-Embedder-Policy", "require-corp")
res.setHeader("Cross-Origin-Opener-Policy", "same-origin")
next()
});
// app.use("/games", express.static(gamePath))
app.use("/fonts", express.static(fontPath))

View file

@ -39,7 +39,7 @@ module.exports = {
</style>
`
var amount = 12
var amount = 10
var iterationReducer = 3