Skip to content
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
da0d372
Add Psychonaut Wiki activity
Zinibow Jan 7, 2026
5c775e8
Fixed Code
Zinibow Jan 7, 2026
7ac34b8
Fixed Website Detection
Zinibow Jan 7, 2026
420cfc6
Fixed Random Stuff
Zinibow Jan 7, 2026
3dab617
Fixed Logos And Timestamps
Zinibow Jan 7, 2026
c4071aa
Fixed Random
Zinibow Jan 7, 2026
cb8fa1a
Removed Comment
Zinibow Jan 7, 2026
2e276cf
Fix ESLints Dumb Errors
Zinibow Jan 7, 2026
18d41e5
Fix ESLints Dumb Errors V2
Zinibow Jan 7, 2026
3ae0964
Fix ESLints Dumb Errors
Zinibow Jan 7, 2026
f708327
Fix ESLints Dumb Errors V2
Zinibow Jan 7, 2026
51c7ec1
Fix ESLints Dumb Errors FINAL
Zinibow Jan 7, 2026
b9547e3
Fix ESLints Dumb Errors Final V2
Zinibow Jan 7, 2026
cdc9ec9
Added Editing Articles
Zinibow Jan 8, 2026
8f48264
Fixed All ESLint Issues
Zinibow Jan 8, 2026
879003f
Fixed ESLint V2
Zinibow Jan 8, 2026
dcf3a43
Did Recommended Changes
Zinibow Jan 8, 2026
f540062
Did Recommended Changes V2
Zinibow Jan 8, 2026
ad4c52a
Added API Version
Zinibow Jan 8, 2026
7c3088a
Fixed API Version
Zinibow Jan 8, 2026
f12dce8
Removed Useless Website Matching
Zinibow Jan 11, 2026
a35775e
Removed Useless Website Matching V2
Zinibow Jan 11, 2026
a5209fb
Merge branch 'PreMiD:main' into Psychonaut-Wiki
Zinibow Jan 11, 2026
7a2ff25
Fixed ESLint Issues
Zinibow Jan 11, 2026
286a04d
Fixed Random Stuff
Zinibow Jan 11, 2026
0186397
Added Space In Folder Names
Zinibow Jan 11, 2026
56569cc
Fixed service
Zinibow Jan 11, 2026
e53cd2b
Fixed Accidental Changes To Other Folders
Zinibow Jan 11, 2026
d175b45
Fixed Accidental Changes To Other Folders V2
Zinibow Jan 11, 2026
6cfa92e
Fixed Folder Names
Zinibow Jan 11, 2026
0d994f7
Changed Version
Zinibow Jan 11, 2026
06bc1ca
Fixed Version And Removed Useless Folders
Zinibow Jan 11, 2026
8a5016b
Update websites/P/Psychonaut Wiki/metadata.json
Zinibow Jan 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion websites/H/HTB Academy/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"url": "academy.hackthebox.com",
"regExp": "^https?[:][/][/]academy[.]hackthebox[.]com[/]",
"version": "1.1.1",
"version": "1.1.0",
"logo": "https://cdn.rcd.gg/PreMiD/websites/H/HTB%20Academy/assets/logo.jpg",
"thumbnail": "https://cdn.rcd.gg/PreMiD/websites/H/HTB%20Academy/assets/thumbnail.png",
"color": "#40a832",
Expand Down
52 changes: 27 additions & 25 deletions websites/H/HTB Academy/presence.ts
Original file line number Diff line number Diff line change
@@ -1,62 +1,64 @@
const presence = new Presence({
clientId: '1200517025383075840',
})
const browsingTimestamp = Math.floor(Date.now() / 1000)
const { pathname } = document.location

presence.on('UpdateData', async () => {
const { pathname } = document.location

const presenceData: PresenceData = {
largeImageKey: 'https://cdn.rcd.gg/PreMiD/websites/H/HTB%20Academy/assets/logo.jpg',
startTimestamp: browsingTimestamp,
}

if (pathname === '/' || pathname === '/login') {
presenceData.details = 'Breaching into the Academy'
}

else if (pathname.includes('/dashboard')) {
presenceData.details = 'Browsing the dashboard'

const off = document.querySelector('.redPercent')?.textContent || '0'
const def = document.querySelector('.bluePercent')?.textContent || '0'
const gen = document.querySelector('.greenPercent')?.textContent || '0'

presenceData.state = `Off: ${off}% | Def: ${def}% | Gen: ${gen}%`
presenceData.state = `Off: ${document.querySelector('.red .progress')?.textContent} `
+ `Def: ${document.querySelector('.blue .progress')?.textContent} `
+ `Gen: ${document.querySelector('.green .progress')?.textContent}`
}

else if (pathname.includes('/exams')) {
presenceData.details = 'Browsing the exams'
}

else if (pathname.includes('/paths')) {
presenceData.details = 'Browsing paths'
}

else if (pathname.includes('/modules')) {
presenceData.details = 'Browsing modules'
}

else if (pathname.includes('/section')) {
const moduleName = document.querySelector('.page-title.mb-0.font-size-18.letter-spacing-1-2')?.textContent
const sectionElement = document.querySelector('.breadcrumb-item.active')
const sectionName = sectionElement?.textContent?.trim() || 'Reading Section'
let module: HTMLElement | null

presenceData.details = `Reading Module: ${moduleName}`
presenceData.state = `Section: ${sectionName}`
}
if (document.querySelector('.iterminal')) {
module = document.querySelector(
'#layout-wrapper > div.main-content > div > div:nth-child(2) > div > div > h4',
)
}
else {
module = document.querySelector(
'#layout-wrapper > div.main-content > div > div:nth-child(1) > div > div > h4',
)
}

presenceData.details = `Reading Module: ${module?.textContent}`
presenceData.state = `Section: ${
document.querySelector('.training-module h1')?.textContent
}`
}
else if (pathname.includes('/details')) {
const title = document.querySelector('.page-title-box .page-title')?.textContent?.trim()
presenceData.details = 'Reading details about module:'
presenceData.state = title ? `"${title}"` : 'Unknown Module'
presenceData.state = `"${
document.querySelector('.page-title-box .page-title')?.textContent
}"`
}

else if (pathname.includes('/my-certificates')) {
presenceData.details = 'Looking at certificates'
presenceData.state = 'Admiration Mode'
presenceData.details = 'Looking at their certificates'
}

else if (pathname.includes('/my-badges')) {
presenceData.details = 'Looking at badges'
presenceData.details = 'Looking at their badges'
}

presence.setActivity(presenceData)
Expand Down
28 changes: 1 addition & 27 deletions websites/H/HackTheBox/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,18 @@
"id": "937757295453044806",
"name": "Atsukoro1"
},
"contributors": [
{
"name": "firstoften",
"id": "339316517558681610"
}
],
"service": "HackTheBox",
"description": {
"en": "Hack The Box is a massive, online cybersecurity training platform, allowing individuals, companies, universities and all kinds of organizations around the world to level up their hacking skills."
},
"url": "app.hackthebox.com",
"regExp": "^https?[:][/][/]app[.]hackthebox[.]com[/]",
"version": "1.2.1",
"version": "1.1.0",
"logo": "https://cdn.rcd.gg/PreMiD/websites/H/HackTheBox/assets/logo.png",
"thumbnail": "https://cdn.rcd.gg/PreMiD/websites/H/HackTheBox/assets/thumbnail.jpeg",
"color": "#9fef00",
"category": "other",
"tags": [
"hacking"
],
"settings": [
{
"id": "showRank",
"title": "Show Rank",
"icon": "fas fa-trophy",
"value": true
},
{
"id": "showGlobalRanking",
"title": "Show Global Ranking",
"icon": "fas fa-globe",
"value": true
},
{
"id": "showFlags",
"title": "Show owned flags",
"icon": "fas fa-flag",
"value": true
}
]
}
Loading
Loading