Skip to content

Commit 3315e0b

Browse files
committed
GoPage rework + Navbar update + Formatted with Prettier
1 parent 131be41 commit 3315e0b

File tree

15 files changed

+231
-212
lines changed

15 files changed

+231
-212
lines changed

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const routes = [
2727
{ path: '/!', file: 'settings.html' },
2828
{ path: '/0', file: 'tabs.html' },
2929
{ path: '/&', file: 'go.html' },
30-
{ path: '/e', file: 'now.html' },
3130
]
3231

3332
const fetchData = async (req, res, next, baseUrl) => {

static/apps.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
1313
<link rel="stylesheet" href="/assets/styles/main.css?v=1" />
1414
<link rel="stylesheet" href="/assets/styles/themes/default.css?v=2" />
15-
<link
16-
rel="stylesheet"
17-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" />
1815
<script src="/assets/scripts/index.js?v=3"></script>
1916
<script src="https://kit.fontawesome.com/1237c86ba0.js" crossorigin="anonymous"></script>
2017
<script src="assets/scripts/apps.js?v=10"></script>
@@ -24,8 +21,8 @@
2421
<a class="icon" href="/./"><img alt="nav" id="INImg" src="/assets/media/favicon/main.png" /></a>
2522
<div class="fixed-nav-bar-right">
2623
<a class="navbar-link" href="/./-"><i class="fa-solid fa-gamepad navbar-icon"></i>Games</a>
27-
<a class="navbar-link" href="/./~"><span class="material-symbols-outlined weird-icon">apps</span>Apps</a>
28-
<a class="navbar-link" href="/./0"><i class="fa-solid fa-table navbar-icon"></i>Tabs</a>
24+
<a class="navbar-link" href="/./~"><i class="fa-solid fa-phone navbar-icon"></i>Apps</a>
25+
<a class="navbar-link" href="/./0"><i class="fa-solid fa-laptop navbar-icon"></i>Tabs</a>
2926
<a class="navbar-link" href="/./!"><i class="fa-solid fa-gear navbar-icon settings-icon"></i>Settings</a>
3027
</div>
3128
</div>

static/assets/scripts/apps.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ document.addEventListener('DOMContentLoaded', () => {
1717
link: 'https://now.gg/iframe/snippet?app_pkg=com.uncube.launcher3&partner=interstellar',
1818
image: '/assets/media/icons/android.webp',
1919
categories: ['all', 'emu', 'android'],
20-
now: true,
2120
},
2221
{
2322
name: 'Temu',
@@ -30,14 +29,12 @@ document.addEventListener('DOMContentLoaded', () => {
3029
link: 'https://now.gg/iframe/snippet?app_pkg=ai.character.app&partner=interstellar',
3130
image: '/assets/media/icons/characterai.webp',
3231
categories: ['all', 'emu', 'android'],
33-
now: true,
3432
},
3533
{
3634
name: 'Aptoide',
3735
link: 'https://now.gg/iframe/snippet?app_pkg=com.aptoide.partners.nowgg.store&partner=interstellar',
3836
image: '/assets/media/icons/aptoide.webp',
3937
categories: ['all', 'emu', 'android'],
40-
now: true,
4138
},
4239
{
4340
name: 'Movie Web',

static/assets/scripts/frame.js

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
const iframe = document.getElementById('ifra')
2+
3+
function reload() {
4+
if (iframe) {
5+
iframe.src = iframe.src
6+
}
7+
}
8+
9+
function erudaToggle() {
10+
if (!iframe) return
11+
12+
const erudaWindow = iframe.contentWindow
13+
const erudaDocument = iframe.contentDocument
14+
15+
if (!erudaWindow || !erudaDocument) return
16+
17+
if (erudaWindow.eruda?._isInit) {
18+
erudaWindow.eruda.destroy()
19+
} else {
20+
let script = erudaDocument.createElement('script')
21+
script.src = 'https://cdn.jsdelivr.net/npm/eruda'
22+
script.onload = function () {
23+
if (!erudaWindow) return
24+
erudaWindow.eruda.init()
25+
erudaWindow.eruda.show()
26+
}
27+
erudaDocument.head.appendChild(script)
28+
}
29+
}
30+
31+
const fullscreenButton = document.getElementById('fullscreen-button')
32+
fullscreenButton.addEventListener('click', function () {
33+
if (!document.fullscreenElement) {
34+
document.documentElement.requestFullscreen()
35+
} else {
36+
document.exitFullscreen()
37+
}
38+
})
39+
40+
const homeButton = document.getElementById('home-page')
41+
homeButton.addEventListener('click', function () {
42+
window.location.href = './'
43+
})
44+
45+
function goBack() {
46+
if (iframe) {
47+
iframe.contentWindow.history.back()
48+
} else {
49+
console.error('No iframe found')
50+
}
51+
}
52+
53+
function goForward() {
54+
if (iframe) {
55+
iframe.contentWindow.history.forward()
56+
} else {
57+
console.error('No iframe found')
58+
}
59+
}
60+
61+
window.onload = function () {
62+
let GoUrl = sessionStorage.getItem('GoUrl')
63+
if (!GoUrl.startsWith('/y/') && !GoUrl.startsWith('/f/')) {
64+
GoUrl = '/a/' + GoUrl
65+
}
66+
console.log(GoUrl)
67+
if (iframe) {
68+
iframe.src = GoUrl
69+
}
70+
}

static/assets/scripts/g.js

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,147 +1345,126 @@ document.addEventListener('DOMContentLoaded', () => {
13451345
link: 'https://now.gg/iframe/snippet?app_pkg=com.roblox.client&partner=interstellar',
13461346
image: '/assets/media/icons/roblox.webp',
13471347
categories: ['all', 'emu', 'android'],
1348-
now: true,
13491348
},
13501349
{
13511350
name: 'Madden NFL 24',
13521351
link: 'https://now.gg/iframe/snippet?app_pkg=com.ea.gp.maddennfl21mobile&partner=interstellar',
13531352
image: '/assets/media/icons/maddennfl24.webp',
13541353
categories: ['all', 'emu', 'android'],
1355-
now: true,
13561354
},
13571355
{
13581356
name: 'Android',
13591357
link: 'https://now.gg/iframe/snippet?app_pkg=com.uncube.launcher3&partner=interstellar',
13601358
image: '/assets/media/icons/android.webp',
13611359
categories: ['all', 'emu', 'android'],
1362-
now: true,
13631360
},
13641361
{
13651362
name: 'Genshin Impact',
13661363
link: 'https://now.gg/iframe/snippet?app_pkg=com.miHoYo.GenshinImpact&partner=interstellar',
13671364
image: '/assets/media/icons/genshinimpact.webp',
13681365
categories: ['all', 'emu', 'android'],
1369-
now: true,
13701366
},
13711367
{
13721368
name: 'Fortnite (Android)',
13731369
link: 'https://now.gg/iframe/snippet?app_pkg=com.epicgames.fortnite&partner=interstellar',
13741370
image: '/assets/media/icons/fortnite.webp',
13751371
categories: ['all', 'emu', 'android'],
1376-
now: true,
13771372
},
13781373
{
13791374
name: 'EA SPORTS FC™ MOBILE 24 SOCCER',
13801375
link: 'https://now.gg/iframe/snippet?app_pkg=com.ea.gp.fifamobile&partner=interstellar',
13811376
image: '/assets/media/icons/easports-fcmobile24.webp',
13821377
categories: ['all', 'emu', 'android'],
1383-
now: true,
13841378
},
13851379
{
13861380
name: 'EA SPORTS™ UFC® Mobile 2',
13871381
link: 'https://now.gg/iframe/snippet?app_pkg=com.ea.gp.easportsufc2&partner=interstellar',
13881382
image: '/assets/media/icons/easports-ufc.webp',
13891383
categories: ['all', 'emu', 'android'],
1390-
now: true,
13911384
},
13921385
{
13931386
name: 'Melon Playground',
13941387
link: 'https://now.gg/iframe/snippet?app_pkg=com.studio27.MelonPlayground&partner=interstellar',
13951388
image: '/assets/media/icons/melonplayground.webp',
13961389
categories: ['all', 'emu', 'android'],
1397-
now: true,
13981390
},
13991391
{
14001392
name: 'Solar Smash',
14011393
link: 'https://now.gg/iframe/snippet?app_pkg=com.paradyme.solarsmash&partner=interstellar',
14021394
image: '/assets/media/icons/solarsmash.webp',
14031395
categories: ['all', 'emu', 'android'],
1404-
now: true,
14051396
},
14061397
{
14071398
name: 'Bloons TD Battles 2',
14081399
link: 'https://now.gg/iframe/snippet?app_pkg=com.ninjakiwi.bloonstdbattles2&partner=interstellar',
14091400
image: '/assets/media/icons/bloonstd2.webp',
14101401
categories: ['all', 'emu', 'android'],
1411-
now: true,
14121402
},
14131403
{
14141404
name: 'Bloons TD Battles',
14151405
link: 'https://now.gg/iframe/snippet?app_pkg=com.ninjakiwi.bloonstdbattles&partner=interstellar',
14161406
image: '/assets/media/icons/bloonstd.webp',
14171407
categories: ['all', 'emu', 'android'],
1418-
now: true,
14191408
},
14201409
{
14211410
name: 'Cookie Run Kingdom',
14221411
link: 'https://now.gg/iframe/snippet?app_pkg=com.devsisters.ck&partner=interstellar',
14231412
image: '/assets/media/icons/cookierunkingdom.webp',
14241413
categories: ['all', 'emu', 'android'],
1425-
now: true,
14261414
},
14271415
{
14281416
name: 'Character AI',
14291417
link: 'https://now.gg/iframe/snippet?app_pkg=ai.character.app&partner=interstellar',
14301418
image: '/assets/media/icons/characterai.webp',
14311419
categories: ['all', 'emu', 'android'],
1432-
now: true,
14331420
},
14341421
{
14351422
name: 'Aptoide',
14361423
link: 'https://now.gg/iframe/snippet?app_pkg=com.aptoide.partners.nowgg.store&partner=interstellar',
14371424
image: '/assets/media/icons/aptoide.webp',
14381425
categories: ['all', 'emu', 'android'],
1439-
now: true,
14401426
},
14411427
{
14421428
name: 'Akinator',
14431429
link: 'https://now.gg/iframe/snippet?app_pkg=com.digidust.elokence.akinator.freemium&partner=interstellar',
14441430
image: '/assets/media/icons/akinator.webp',
14451431
categories: ['all', 'emu', 'android'],
1446-
now: true,
14471432
},
14481433
{
14491434
name: 'WorldBox',
14501435
link: 'https://now.gg/iframe/snippet?app_pkg=com.mkarpenko.worldbox&partner=interstellar',
14511436
image: '/assets/media/icons/worldbox.webp',
14521437
categories: ['all', 'emu', 'android'],
1453-
now: true,
14541438
},
14551439
{
14561440
name: 'Toca Life World',
14571441
link: 'https://now.gg/iframe/snippet?app_pkg=com.tocaboca.tocalifeworld&partner=interstellar',
14581442
image: '/assets/media/icons/tocalifeworld.webp',
14591443
categories: ['all', 'emu', 'android'],
1460-
now: true,
14611444
},
14621445
{
14631446
name: 'Toca Hair Salon 4',
14641447
link: 'https://now.gg/iframe/snippet?app_pkg=com.tocaboca.tocahairsalon4&partner=interstellar',
14651448
image: '/assets/media/icons/tocabocahairsalon4.webp',
14661449
categories: ['all', 'emu', 'android'],
1467-
now: true,
14681450
},
14691451
{
14701452
name: 'Toca Kitchen 2',
14711453
link: 'https://now.gg/iframe/snippet?app_pkg=com.tocaboca.tocakitchen2&partner=interstellar',
14721454
image: '/assets/media/icons/tocakitchen2.webp',
14731455
categories: ['all', 'emu', 'android'],
1474-
now: true,
14751456
},
14761457
{
14771458
name: 'Free Fire',
14781459
link: 'https://now.gg/iframe/snippet?app_pkg=com.dts.freefireth&partner=interstellar',
14791460
image: '/assets/media/icons/freefire.webp',
14801461
categories: ['all', 'emu', 'android'],
1481-
now: true,
14821462
},
14831463
{
14841464
name: 'Stumble Guys (Android)',
14851465
link: 'https://now.gg/iframe/snippet?app_pkg=com.kitkagames.fallbuddies&partner=interstellar',
14861466
image: '/assets/media/icons/stumbleguys.webp',
14871467
categories: ['all', 'emu', 'android'],
1488-
now: true,
14891468
},
14901469
{
14911470
name: 'Now.GG',
@@ -1498,7 +1477,6 @@ document.addEventListener('DOMContentLoaded', () => {
14981477
link: 'https://nowgg.nl/iframe/snippet?app_pkg=com.roblox.client&partner=interstellar',
14991478
image: '/assets/media/icons/astroid.webp',
15001479
categories: ['all', 'emu', 'android'],
1501-
now: true,
15021480
},
15031481
{
15041482
name: 'Roblox (NowGG.me) [Working]',
@@ -1660,8 +1638,6 @@ document.addEventListener('DOMContentLoaded', () => {
16601638
window.location.href = app.link
16611639
} else if (app.blank) {
16621640
blank(app.link)
1663-
} else if (app.now) {
1664-
now(app.link)
16651641
} else {
16661642
go(app.link)
16671643
}

static/assets/scripts/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ function go(value) {
3434
processUrl(value, '/&')
3535
}
3636

37-
function now(value) {
38-
processUrl(value, '/e')
39-
}
40-
4137
function blank(value) {
4238
processUrl(value)
4339
}

static/assets/scripts/now.js

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ function styledLog(message, style) {
22
console.log(`%c${message}`, style)
33
}
44

5-
// Made by discord.gg/interstellar
65
// Credits to @xbubbo and @xderpman on Discord
76
// You can use this code with proper credits.
87

@@ -15,7 +14,7 @@ function adjustElements() {
1514
return true
1615
}
1716

18-
var iframe = top.document.getElementById('iframeId')
17+
var iframe = top.document.getElementById('ifra')
1918

2019
if (iframe) {
2120
var innerDoc = iframe.contentWindow.document
@@ -43,7 +42,6 @@ function adjustElements() {
4342

4443
function CheckAndAdjust() {
4544
var intervalId = setInterval(function () {
46-
RunTopLogs()
4745
attempts++
4846
if (adjustElements()) {
4947
clearInterval(intervalId)
@@ -59,7 +57,7 @@ function CheckAndAdjust() {
5957

6058
function adjust() {
6159
setInterval(function () {
62-
var iframe = top.document.getElementById('iframeId')
60+
var iframe = top.document.getElementById('ifra')
6361

6462
if (iframe) {
6563
var innerDoc = iframe.contentWindow.document
@@ -99,12 +97,5 @@ function checkAndAdjustStyles(element, property, targetValues) {
9997
}
10098
}
10199

102-
function RunTopLogs() {
103-
console.log(
104-
'%cdiscord.gg/interstellar',
105-
'font-weight: bold; font-size: 39px; color: red; text-shadow: 3px 3px 0 rgb(217,31,38), 6px 6px 0 rgb(226,91,14), 9px 9px 0 rgb(245,221,8), 12px 12px 0 rgb(5,148,68), 15px 15px 0 rgb(2,135,206), 18px 18px 0 rgb(4,77,145), 21px 21px 0 rgb(42,21,113); margin-bottom: 12px; padding: 5%;'
106-
)
107-
}
108-
109100
CheckAndAdjust()
110101
console.log('%cNow.GG Adjustment script started. Checking every 5 seconds.', 'font-size: 15px; color: blue;')

0 commit comments

Comments
 (0)