#📙-client-mod-wiki
1 messages · Page 1 of 1 (latest)
jumpscare
first
meow
hi
vencord now has a wiki at https://wiki.vencord.dev
any topics related to discord client modding are welcome (not just vencord, but also other mods and such). its mostly meant to be serious but can also have less serious topics like shiggy
if you want to contribute, let us know what topics you'd like to contribute to and you'll get an account
intresting
venpedia is real
minkypedia
venpedia
@cobalt reef
vesktop page soon
yop add 
they made shiggy real???
i would totally help but i know barely any venlore
Same
i wonder if its possible to add a toggleable oneko.js
probably yeah
This is a guide for how, as contributors to a wiki, you can develop JavaScript to make a wiki page interactive.
Elected content administrators and on-wiki interface admins can develop JavaScript via site scripts such as Common.js or a Gadget. Both of these reside in the "MediaWiki" namespace that is restricted to administrators.
jQuery is bundled with MediaWiki core. You can write your script like this:
INSANE
im in
Someone should make a page about how vencord turns everyone gay and or trans 
Special:Gadgets - can be activated by any user in Preferences, or may be enabled by default for all users; provided by Extension:Gadgets
AMAZUING
I LOVE MEDIAWIKI
common mediawiki w
@cobalt reef help
why is the timezonedb page so passive aggressive
oh you need to install https://www.mediawiki.org/wiki/Extension:Gadgets
The Gadgets extension provides a way for users to pick JavaScript or CSS based "gadgets" that other wiki users provide.
Gadgets are made up of JavaScript and/or CSS Snippets located on pages in the MediaWiki namespace.
Each gadget is defined by a line in MediaWiki:Gadgets-definition, providing a name and description for the gadget, and a list o...
can emotes be added like 
yeah
do
you can upload images
and use them
@cobalt reef do this https://www.mediawiki.org/wiki/Extension:Gadgets#Installation
The Gadgets extension provides a way for users to pick JavaScript or CSS based "gadgets" that other wiki users provide.
Gadgets are made up of JavaScript and/or CSS Snippets located on pages in the MediaWiki namespace.
Each gadget is defined by a line in MediaWiki:Gadgets-definition, providing a name and description for the gadget, and a list o...
already exists
okay
in LocalSettings.php
okay done
yop works
it loggd me out
no way jetbrains writerside v2
why is the embed in german
I have to restart container in order to apply changes
maybe thats why
https://wiki.vencord.dev/index.php/Ittai @royal juniper you love
it went unmaintained because all mods but vencord died lmaoo
and replugged is a joke
idk what i wanna contribute to
WHY DOESNT IT WORK
fixx
okay
JavaScript parse error (scripts need to be valid ECMAScript 5): Parse error: Illegal token in file 'MediaWiki:Gadget-oneko.js' on line 8
ECMASCRIPT 5
I wonder if we can bump that
i manti on my ka til i fasi
can you increase yeah
i can't use oneko without signing in :(
Warning: 'Exponentiation operator' is only available in ES7 (use 'esversion: 7').
ES6 is default rn I think
i think the problem is the template strings
the ones on line 8/9 don't even need to be template strings anyways
Since MediaWiki 1.41, ES6 is the default for all JavaScript code loaded through ResourceLoader.
Prior to that and since MediaWiki 1.36, you can use ES6 in JavaScript code that is loaded through ResourceLoader. ES6 code will only be served to browsers that support it: ResourceLoader will detect whether the user's browser supports ES6, and will no...
mmm
okay but do gadgets use resourceloader
you can do that with caddy
you do
haii
I cant edit caddy config
do yal want anythin
replace with nothing
better
if u can
actually dont think you can
lame
WORKSS
good
i am
but it needs es5

okay theres oneko gadget you can use now
ven help me
why arent any trackers working
guh is there a way to reload without restarting server
I dont want to log everyone out
nop
@royal juniper tell
wdym log out
how do I update docker compose links
it logs out when I restart container
@royal juniper HELP ME
volumes:
- ./LocalSettings.php:/var/www/html/LocalSettings.php
I mean this
HELPPP MEEE
it links LocalSettings to inside container
docker compose restart mediawiki\
no
dont listen to aa
it is updating
not trustworthy
mediawiki isnt reading it again
anyway I restarted
until its restartd
Short URLs or URL Rewrites hide php file extensions from the page address.
Please take a few minutes to devise a stable URL structure for your website before getting started, to reduce problems later.
document xinto kotlin bomb soon
@royal juniper dms
@lofty vigildms
https://www.mediawiki.org/wiki/Extension:UrlShortener why mediawiki has built in url shortener 
very
I think instead of messing with those editing caddy config to auto add index.php would work
@cobalt reef ```
If not already, you'll need to enable Extension:Cite.
You'll also have to export, en:Template:Cite web into your Wiki (remember to check the Include templates option). After this, you can import the created XML file into your own Wiki.
do
already diddd
wait
en:Template:Cite
add infobox when
sec
done
@cobalt reef
Import failed: The content model 'sanitized-css' is not registered on this wiki. See https://www.mediawiki.org/wiki/Content_handlers to find out which extensions handle this content model.
This page contains information about different content models and their implementations. It may be incomplete as any extension can add their own content model. Content model refers to the internal ID that represents that content type. The content format is the mime-type of ways the content can be represented (serialized) in.
TemplateStyles is a parser extension that allows users to store custom CSS code on wiki pages, and to embed these styles into articles via the <templatestyles> tag. The extension allows only a safe subset of CSS syntax to be stored in embeddable style pages. This is powered by the css-sanitizer library.
Editors are encouraged to include styles...
install
wfLoadExtension( 'TemplateStyles' );
done
download from here
Fatal error: Uncaught ExtensionDependencyError: TemplateStyles is not compatible with the current MediaWiki core (version 1.41.0), it requires: >= 1.42. in /var/www/html/includes/registration/ExtensionRegistry.php:460 Stack trace: #0 /var/www/html/includes/registration/ExtensionRegistry.php(314): ExtensionRegistry->readFromQueue(Array) #1 /var/www/html/includes/Setup.php(285): ExtensionRegistry->loadFromQueue() #2 /var/www/html/includes/WebStart.php(92): require_once('/var/www/html/i...') #3 /var/www/html/index.php(44): require('/var/www/html/i...') #4 {main} thrown in /var/www/html/includes/registration/ExtensionRegistry.php on line 460

insane
update mediawiki lmao
mantika moment
i cloned vee
wing wong
DO NOT CLONE
DOWNLOADDD
because thats stable version 
wing wong wing wong
mantika insane
this is how i got templates btw
im just trying to add more information to vesktop page

make it look like actual wiki page
@tardy cedar psst
lmaooo
done
lua 
templatestyles exploded again
HORROR
Lua error: Internal error: The interpreter exited with status 126.
No further details are available.
do you have to install lua
possible
infobox still not there
I enabled module aaaaaa
WHY IS THIS SO PASSIVE AGGRESSIVE LMAOOO
template needs to be manually imported I think
copy
like this @cobalt reef
i just stole wikipedia templates
anyway fix lua error
mantika is going more insane by the second
Note that "status 126" from bash means that the file to be executed was found but was not actually executable, so the error message is technically correct (if rather obscure).
wait maybe its arm moment
does it have arm lua binaries
lua broke
also dont forget to chmod +x
actually read the README
maybe you just have to chmod +x the binaries
@cobalt reef
LuaBinaries is a distribution of the Lua libraries and executables compiled for several platforms.
okay
dont
I am 777 ing then
READ README FIRST
WHICH
docker exec -it vencord-wiki-web-1 /bin/bash
okay
yeah okay
i ran into this issue after migrating to an arm64/ARMv8 cluster (Linux.)
Scribunto does not ship with a compatible binary.
my deployments are containerized and k8s-managed, so I was able to fix this by layering a standalone Lua5.1 package on top of the official mediawiki container image (1.39) using apt, then updating wiki settings to point at the compatible image:
$wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua5.1'
incidentally, I also purged the files which aren't necessary for my platform, to reduce the image size a bit, from
extensions/Scribunto/includes/engines/LuaStandalone/binaries/
pushed the container image and performed a rollout restart to the cluster and presto-chango! working as intended again! took all of 5 minutes :) hope this helps someone else someday!
btw @royal juniper does docker reset container contents on restart
dont use these binaries they have vulnberablities i think
or do I need to add it as volume mutable
well how do we get ones that dont have vulns 
no but youre insane
use volume
never store required state in container fs
@tardy cedarwgScribuntoEngineConf
you are scribunto
root@9fde1c6ab5d2:/var/www/html/extensions/Scribunto/includes/Engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic# apt search lua
Sorting... Done
Full Text Search... Done
liblua5.3-0/now 5.3.6-2 arm64 [installed,local]
Shared library for the Lua interpreter version 5.3
but half of the modules are preinstalled
can we just use that
it wont override right
- ./extensions:/var/www/html/extensions
but that means I have to do again for every extension
HOW MANY EXTENSIONS DO YOU HAVE
i installed lua5.1
temporary
I dont want to add new lines to docker-compose yaml everytime I add extension
if you want to do that you need to
make a dockerfile
that does FROM on th emediawiki one
then RUN apt install blabla
add this $wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua5.1' @cobalt reef
then point the compose at it
image: vensinsanemediawiki
build: ./folderwithdockerfileinit
guh fine then
ven we need to put lua into vencord-wiki folder
then link via docker-compose
otherwise it nukes
I dont want to make a dockerfile sob
i think it works
ITS TWO LINES MANTI

write for me 
I JUST DID
insane
explode now
manti will give me ssh to vencord production servers
put wha
we need to blow up mantika
aagamer give me pubkey
I will give you access to my account for now
it doesnt have root anyway 
wait where does this write
that just makes it not nuke database folder i think
/var/lib/docker/volumes/foldername-database-0/_data
yes
docker crash course with aagaming
yes
aagamer give me your pub key
and i will give access to mantis account
so you can fix the mess

just make a new account wtf lmao
then you cant access it
its in mantis home folder
vencord-wik is on my account
oh my god you are insane
like /opt/vencord-wiki
uhh usually i do smth like /srv/compose/vencord-wiki
I mean its docker compose
but htat works too
and then make it owned by docker group so anyone in that group can access
docker compose down
then move it
but dont rename it
then docker compose up -d in new loc
do docker compose down @cobalt reef
okay
lazy
done
docker dont care
aagamer runs priv escalation on vens vps using docker socket 🙏
(i wouldnt)
manti would probably do this
NO I WOULDNT
manti runs rm -rf / for fun
okay
opp
well now its broken
amyway
because its probably mantika making stupid volume mount over the entire extensions folder
wiki.vencord.dev is actually just a ton of error pages that gets randomized every reload
TRUE
you are truly insane
aa
btw better solution
make an image like i said and just have it COPY the extension in
try
Host oracle
User aa
IdentityFile ~/.ssh/idk-your-file
HostName 130.61.235.108
soon
you do that as you have access 
Host vendor
youre in cocker group
I nuked templatestyles for now
its in /opt/vencord-wiki
cocker lmao
i will use nix soon anyway lol
WHY IS MY ACCOUNTS SHELL BASH IN SH COMPATIBILITY MODE
LMAO
then just ssh oracle
lmaoo cause default shell is /bin/sh
yes
your password is mantiinsane
change it but you dont have to cause ssh password login is off anyway
well i would still change it
i will
aa can setup kubernetes anytime now
aa will change vps to use kubernetes and nix for everything
TRO
INSANE
its all in the homedir dw
aa be like let me import 200mb dotfiles to make small change to config
default zsh is terrible
you literally cant scroll
aa making long time plans
also its one command lmao
autoload -U compinit colors
compinit
colors
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%} %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
HIST_STAMPS="dd/mm/yyyy"
HISTFILE=$HOME/.cache/zhistory
HISTSIZE=10000
SAVEHIST=10000
DISABLE_UPDATE_PROMPT="true"
setopt autocd
eval "$(dircolors -p | sed 's/ 4[0-9];/ 01;/; s/;4[0-9];/;01;/g; s/;4[0-9] /;01 /' | dircolors /dev/stdin)"
source $HOME/.config/ZshPlugs/autosuggestions/zsh-autosuggestions.zsh
source $HOME/.config/ZshPlugs/syntax-highlighting/zsh-syntax-highlighting.zsh
for file in "$HOME/.config/zsh-stuffs/"*; do
source "$file"
done
# make Ctrl + left/right work over ssh
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
source $HOME/.config/ZshPlugs/substring-search/zsh-history-substring-search.zsh
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
this is my zsh config
on vps
zsh dont EXPLODE challenge
need to install terminfo
do this
but easier is to alias ssh="TERM=xterm-256color ssh"
i just do that
cause for me TERM is alacritter
and too lazy to install terminfo everywhere
guh install terminfo i dont want to fix my 7 other hosts last time i tried that
wait its f=not complaining now
what
ok
anyway ill fix it later i have dumb homework to do
happy?
aagamer fix
mantiwrote that not me
oh fair but still dumb
true
aa is the only person that writes 127.0.0.1 instead of localhost
sums up devilbro
whats the packages you need @tardy cedar
we do not need packages but TemplateStyles extension
also lua arm binaries
what lua package
pakcage
just arm binaries
oh
idk
only thing I know is mediawiki only support 5.1.x
but offical versions have vulns I think
lua5.1
obviously debians has patches
where do i get template styles extension
/var/www/html/extensions
@cobalt reef let's kill aa
oh
TemplateStyles is a parser extension that allows users to store custom CSS code on wiki pages, and to embed these styles into articles via the <templatestyles> tag. The extension allows only a safe subset of CSS syntax to be stored in embeddable style pages. This is powered by the css-sanitizer library.
Editors are encouraged to include styles...
AA will quit self hosting everything
also we probably want to replace
/var/www/html/extensions/Scribunto/includes/Engines/LuaStandalone
as it will probably try to use that
no ust use config
you don't have to
like vee did
install lua5.1 and use that config
oh okay
also aagamer you can put images/icon.gif to var/www/html/resources/assets/icon.gif
currently its hardlinked through docker-compose file

don't explode vps while im gone
dont worry I wont
@royal juniper use tmux so I can watch you
actually since we are in different accounts will I even able to join ur session
prob no
well whatever then
load
LOAD WHAT
its not
in folder
what
go to bottom and uncomment
insane
well I am doing
BAD
exploded again
fixing
hwy is it copyinh
wdym
Is the wiki down?
anyway i go do homework now go explode
nop its up
have fun

@tardy cedar aagamer saved us
add more extensions in image/extensions then docker compose build --pull
and then docker compose up -d
ez
lmao some guy entered tsngom articles into every checkout machine and the people before me were too retarded to cancel
so they had to get an employee to help

lmaoo
lmaoo
ven i fixed
you love
I'm the wiki
idk how to remove
No it just says index.php for fun
how do we add mobile support
@tardy cedar congratulate aagamer
there are probably mobile themes
use a theme
Timeless is ugly
MinervaNeue
let's make minerva neue the default
I dont have write perms to /image
DONT INSTALL
imma try
we can make minerva default for mobile
and current one default on desktop
with that plugin
fix this junk added when using infobox NOW
how do we really fix that lmao
I dont have perms
and make minerver on mobile
@royal juniper INSANE
guh
nop
not here
that Skin template is probably just a wrapper around Infobox
just with fields used by skins
maybe infobox template is broken
fix
What are the guidelines for making pages? I would like to contribute and just want to know
warh
basically pinned message
Short URLs or URL Rewrites hide php file extensions from the page address.
Please take a few minutes to devise a stable URL structure for your website before getting started, to reduce problems later.
@cobalt reef
do in caddy
apache horror
WDYM
it will still have index.php in links everywhere
it should probably work
hmm
soon
probably tomorrow 
wth do I write to interwiki prefix
while importing templates
Users
System Administrators
Developers
Translators
This tutorial outlines steps to import infoboxes used by English Wikipedia.

what did you want to import
i can do later
ping me when fixed
tomorrow I will try to shorten URL and also install MobileFrontend module
(after ven fixes permissions)
is vencord wiki gonna be vencord specific
someone made page about ittai
Nop
check pins
oh okai
yop
yeah
I am planning to write aliucord free nitro incident sometime
Because they're lazy fucks
write about e2ee selfbot incident
looks too old for ipad kids
can you add venchord gruvbox theme
too boring
<ewd:publicKey
don't you remember
ohh i have the ability to talk here
also huskbot incident
mantika made an end to end encryption aliucord plugin that had a feature to automatically exchange keys
whenever someone sent their key via <ewd:publicKey, the plugin replied with own key
i will write about opencord
funny thing was I didnt limit it to DMs
mantika be like yeah let me put selfbot plugin in the plugin list channel stupid users definitely won't install
so whenever someone sent a public key into aliucord server 4 people would reply automaticly
yop
should we do like biography pages too
i think that would be fun
LMAOOO this guy installed all the insane plugins and rosie banned him for "raiding"

sus and pog plugin 
god I remember poglugin
it was good tho
best plugin ever
sent from my samsung smart fridge
sent from bens basement
remember people installing ThisWillCrashYourDiscord or pressing the crash test button then asking for help in support

Users are smart
AudioPlayer incident
god aliucord has so many funny memories
didn't we release plugin to wipe all your plugins once
and it was labeled as what it would do
and people installed it
or was that fakenitro incident
I think I made wipeallplugins
mantika single handedly causing the most incidents
VIBRATOR PLUGIN
mantika "bigger" incident
when will you port it to vencord @cobalt reef
never
hmm do PCs even have vibrators
lovesense plugin
shares your lovesense code in every single channel every 10 minutes

unfortunately i lost source code for the server
because it involved compiling on my server and i didnt want 3 million stupit users compiling on my server

@rigid jungle
HORROR
night night
what's this
new wiki
is there a plugin to show local timestamps
i cba to convert everything from utc
@short flicker hiiii
spy
tyes
hi
hi
There's Special:AllPages
guh but how can i link my avatar on user page
example guh
Just upload your avatar as an image and use that
^
pain
i will upload 20pb zip bomb
manti should write a page on devilbro
already exists
guh is there a way to import all the wikipedia Template: stuff
i tried importing a single template and it has a fucking dependency chain of like 20 other templates
@tardy cedar can i have wiki admin
its not letting me delete my own page 
i find the see deleted messages thing rlly helpful for exposing a bad person
what do you wanna delete
these
i was testing
eh it doesn't matter much
guh give
(nopmachine will nuke venpedia)
It's be hours and no articles about the great cute purge yet? For shame
FUCK OFF
i misnamed it
why the fuck can't i delete my own pages
@tardy cedar give admin when
mediawiki is dumb
never
mantika has admin 
i should delete opencord icon?
thanks
article deleted. reason: icon too low res
true wikipedia mod
love
brain
whats this
and
how do i sign up
seems like it's manual request an account here
I CREATED WIKI
give admin
mediawiki has the worst permission system ever
Soon
yop
🕋 ☝🏻
Lol
mediawiki hosting moment
I want to do that
but 
lol
Do you not have an infobox template yet?
we do
that is using infobox template
Vesktop is an alternative Discord client that loads Vencord on top of the Discord browser client
ok now we have proper embeds
also added mobile support

Honestly, looks a bit better on mobile
when infobox is not aligned it looks a bit weird
I think that was supposed to be on right side
why does mantika have admin, they don't even have image perms here in vendor
manti runs it lol
speaking of
@cobalt reef ENABLE THE REWRITES
INDEX.PHP LOOKS UGLY AND DOESNT SEO PROPERLY
ALSO PUT CITIZEN THEME ON IT IT LOOKS NICER
I have image perms wdym
guhhhh soon
I hate apache
never touched its configs ever
oh contrib
I am planning to do it with caddy once ven wakes up
you still don't have human rights role (regular)
its running inside docker
WHY
it's just mediawiki cocker container
php is cool
it has a cute logo
mediawiki in docker is cursed
good grief
well anyway why does it use apache
thats horrible
why is it cursed
I mean it has to use one webserver inside docker
always done bare metal installs like the wiki describes, never even considered putting it in docker cause i usually have dedicated servers for mediawiki or have one install for a wikifarm
so its just horribly cursed to me even though it is actually logical
cause then you can run all of visualeditor's stuff in containers too
dedicated servers 
the uhh
parsoid
so not needed to run on dedicated vps for it
it is, i just put it on a separate box because bare metal install is a little messy at times
i have like 5 different services running on some wikis so it makes sense for me to do so
GIRL
bare metal install is messy
using docker which fixes the messiness is cursed
🫨🫨
cursed to me
shush
im just not used to that as a concept cause i have been administering mediawiki before i learnt docker

mantika is insane sysadmin we had to get aagamer to help
he manually copied files into docker or smth
manti doesnt know how to bureaucrat
instead of mounting
im a certified mediawikier
I learned
(i have ran multiple wikis)
aagamer knowledge has born inside me
also one of the plugins was shipping lua binaries to use with the formatter or whatever
but they only shipped x86 binaries 
yeah some plugins require lua
anyway its all settled up
so we had to manually install lua in the container and override the path
imo its fine this way
yes
we have that
but scribunto only has x86 binaries
so we had to install lua manually inside the container and override the binary path
oh we're arm right?
yeaa
yeah
you can just put the binary as a mount
we got lua error 126 jumpscares in the page cause of x86 binary
nono it's even easier
and then configure the engine to use the mounted binary
RUN apt-get update && apt-get install -y lua5.1
# bomb apt cache so the image isnt 4 trillion pb
&& rm -rf /var/lib/{apt,dpkg,cache,log}/
just install lua5.1 via apt
that also works
ew
use a build image
dummy
split images are great
also did you look at using luasandbox @tardy cedar @cobalt reef
its a php extension so you dont need to faff with binaries
our solution works for now 



