Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
27 changes: 27 additions & 0 deletions websites/P/Psychonaut Wiki/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "https://schemas.premid.app/metadata/1.16",
"apiVersion": 1,
"author": {
"id": "538604507064696832",
"name": "talon2"
},
"service": "Psychonaut Wiki",
"altnames": [
"PsychonautWiki"
],
"description": {
"en": "PsychonautWiki is an encyclopedia that documents all aspects of psychonautic theory from an evidence-based perspective. It provides education, encourages safe practices, and emphasizes that substances should not be abused. Do not do drugs."
},
"url": "psychonautwiki.org",
"regExp": "^https?[:][/][/]([a-z0-9-]+[.])*psychonautwiki[.]org[/]",
"version": "1.0.0",
"logo": "https://i.imgur.com/GPxHYOV.png",
"thumbnail": "https://i.imgur.com/QwNGXcq.png",
"color": "#808080",
"category": "other",
"tags": [
"drugs",
"harm-reduction",
"psychonaut"
]
}
53 changes: 53 additions & 0 deletions websites/P/Psychonaut Wiki/presence.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
const browsingTimestamp = Math.floor(Date.now() / 1000)

const presence = new Presence({
clientId: '1432152324163502130',
})

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

let articleName: string | null = null

// /w/index.php?title=ArticleName
if (params.has('title')) {
articleName = decodeURIComponent(params.get('title')!)
.replace(/_/g, ' ')
.trim()
}
// /wiki/ArticleName
else if (pathname.startsWith('/wiki/')) {
articleName = decodeURIComponent(pathname.slice(6))
.replace(/_/g, ' ')
.trim()
}

const action = params.get('action')
const isEditing
= params.has('veaction')
|| action === 'edit'
|| action === 'submit'

const presenceData: PresenceData = {
largeImageKey: 'https://i.imgur.com/GPxHYOV.png',
startTimestamp: browsingTimestamp,
}

if (isEditing) {
presenceData.details = articleName
? `Editing article "${articleName}"`
: 'Editing article'
}
else if (pathname === '/wiki/Main_Page') {
presenceData.details = 'Browsing the Main Page'
}
else if (articleName) {
presenceData.details = `Browsing the article "${articleName}"`
}
else {
presenceData.details = 'Browsing the Wiki'
}

presence.setActivity(presenceData)
})
Loading