Skip to content

Commit e6c0a2e

Browse files
committed
Formatted with Prettier
1 parent 3b78970 commit e6c0a2e

File tree

6 files changed

+167
-161
lines changed

6 files changed

+167
-161
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ As of January 1st 2024, Replit is [no longer free](https://blog.replit.com/hosti
4444
2. Click "Code" (green button) and then "Create Codespace on main."
4545
3. In the terminal at the bottom, paste `npm i && npm run start`.
4646
4. Respond to the application popup by clicking "Make public."
47-
> Make sure you actually click the "Make public." button, or the proxy won't function properly.
47+
> Make sure you actually click the "Make public." button, or the proxy won't function properly.
4848
5. Access the deployed website from the ports tab.
4949
6. For subsequent uses in the same codespace, just run `npm run start`
5050

config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const config = {
22
passwordProtect: false,
3-
password: "password"
3+
password: 'password',
44
}
5-
export default config;
5+
export default config

index.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import express from 'express'
2-
import basicAuth from "express-basic-auth";
2+
import basicAuth from 'express-basic-auth'
33
import http from 'node:http'
44
import { createBareServer } from '@tomphttp/bare-server-node'
55
import path from 'node:path'
@@ -12,11 +12,13 @@ const bareServer = createBareServer('/v/')
1212
const PORT = 8080
1313
if (config.passwordProtect) {
1414
console.log("Password protection is enabled. Username is 'interstellar'.")
15-
console.log("Password is: " + config.password)
16-
app.use(basicAuth({
17-
users: { "interstellar" : password },
18-
challenge: true
19-
}))
15+
console.log('Password is: ' + config.password)
16+
app.use(
17+
basicAuth({
18+
users: { interstellar: password },
19+
challenge: true,
20+
})
21+
)
2022
}
2123
app.use(express.json())
2224
app.use(express.urlencoded({ extended: true }))
@@ -32,7 +34,6 @@ const routes = [
3234
{ path: '/&', file: 'go.html' },
3335
{ path: '/w', file: 'edu.html' },
3436
{ path: '/e', file: 'now.html' },
35-
3637
]
3738

3839
app.get('/y/*', cors({ origin: false }), async (req, res, next) => {

static/assets/scripts/apps.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ document.addEventListener('DOMContentLoaded', () => {
257257
link: 'https://now.gg/iframe/snippet?app_pkg=com.roblox.client&partner=interstellar',
258258
image: '/assets/media/icons/roblox.png',
259259
categories: ['all', 'emu', 'android'],
260-
now: true
260+
now: true,
261261
},
262262
{
263263
name: 'Now.GG',
@@ -270,7 +270,7 @@ document.addEventListener('DOMContentLoaded', () => {
270270
link: 'https://nowgg.nl/iframe/snippet?app_pkg=com.roblox.client&partner=interstellar',
271271
image: '/assets/media/icons/astroid.png',
272272
categories: ['all', 'emu', 'android'],
273-
now: true
273+
now: true,
274274
},
275275
{
276276
name: 'Roblox (NowGG.me)',
@@ -339,37 +339,37 @@ document.addEventListener('DOMContentLoaded', () => {
339339
if (app.local) {
340340
link.onclick = function () {
341341
if (typeof app.say !== 'undefined') {
342-
alert(app.say);
342+
alert(app.say)
343343
}
344-
window.location.href = app.link;
345-
return false;
346-
};
344+
window.location.href = app.link
345+
return false
346+
}
347347
} else if (app.blank) {
348348
link.onclick = function () {
349349
if (typeof app.say !== 'undefined') {
350-
alert(app.say);
350+
alert(app.say)
351351
}
352-
blank(app.link);
353-
return false;
354-
};
352+
blank(app.link)
353+
return false
354+
}
355355
} else if (app.now) {
356356
link.onclick = function () {
357357
if (typeof app.say !== 'undefined') {
358-
alert(app.say);
358+
alert(app.say)
359359
}
360-
now(app.link);
361-
return false;
362-
};
360+
now(app.link)
361+
return false
362+
}
363363
} else {
364364
link.onclick = function () {
365365
if (typeof app.say !== 'undefined') {
366-
alert(app.say);
366+
alert(app.say)
367367
}
368-
images(app.link);
369-
return false;
370-
};
368+
images(app.link)
369+
return false
370+
}
371371
}
372-
372+
373373
const image = document.createElement('img')
374374
image.width = 145
375375
image.height = 145

static/assets/scripts/g.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,7 @@ document.addEventListener('DOMContentLoaded', () => {
14971497
link: 'https://now.gg/iframe/snippet?app_pkg=com.roblox.client&partner=interstellar',
14981498
image: '/assets/media/icons/roblox.png',
14991499
categories: ['all', 'emu', 'android'],
1500-
now: true
1500+
now: true,
15011501
},
15021502
{
15031503
name: 'Now.GG',
@@ -1510,7 +1510,7 @@ document.addEventListener('DOMContentLoaded', () => {
15101510
link: 'https://nowgg.nl/iframe/snippet?app_pkg=com.roblox.client&partner=interstellar',
15111511
image: '/assets/media/icons/astroid.png',
15121512
categories: ['all', 'emu', 'android'],
1513-
now: true
1513+
now: true,
15141514
},
15151515
{
15161516
name: 'Roblox (NowGG.me)',
@@ -1635,37 +1635,37 @@ document.addEventListener('DOMContentLoaded', () => {
16351635
if (app.local) {
16361636
link.onclick = function () {
16371637
if (typeof app.say !== 'undefined') {
1638-
alert(app.say);
1638+
alert(app.say)
16391639
}
1640-
window.location.href = app.link;
1641-
return false;
1642-
};
1640+
window.location.href = app.link
1641+
return false
1642+
}
16431643
} else if (app.blank) {
16441644
link.onclick = function () {
16451645
if (typeof app.say !== 'undefined') {
1646-
alert(app.say);
1646+
alert(app.say)
16471647
}
1648-
blank(app.link);
1649-
return false;
1650-
};
1648+
blank(app.link)
1649+
return false
1650+
}
16511651
} else if (app.now) {
16521652
link.onclick = function () {
16531653
if (typeof app.say !== 'undefined') {
1654-
alert(app.say);
1654+
alert(app.say)
16551655
}
1656-
now(app.link);
1657-
return false;
1658-
};
1656+
now(app.link)
1657+
return false
1658+
}
16591659
} else {
16601660
link.onclick = function () {
16611661
if (typeof app.say !== 'undefined') {
1662-
alert(app.say);
1662+
alert(app.say)
16631663
}
1664-
images(app.link);
1665-
return false;
1666-
};
1664+
images(app.link)
1665+
return false
1666+
}
16671667
}
1668-
1668+
16691669
const image = document.createElement('img')
16701670
image.width = 145
16711671
image.height = 145

0 commit comments

Comments
 (0)