#Hides many of the Vencord plugin stuff

1 messages · Page 1 of 1 (latest)

deep hazel
#

scuffed way to hide donator badges

[class*="profileBadges-"] > :not([target]) {
    display: none;
}
last rune
#

i completely forgot about those

#

(does that actually work lol)

deep hazel
#

i hope so lol

last rune
#

yeah it did

#

gonna throw it into the css file

#

danke

deep hazel
#

also does this hide any vencord-added context menu items

last rune
#

uhh not yet

deep hazel
#

is there a good way to hide smyn?

#

others are doable but annoying

last rune
#

i forgot about those

#

quick switching between looking vanilla and having 🅱️encord injected

livid imp
#

what's the point of this lmao

last rune
#

yes

topaz wolf
#

I mean if some people or the staff on certain servers end up being very whiny and all that about someone just having clientside 3rd party client stuff, it can be nice to just hotswitch if you want to for example take a screenshot
Not to mention, it can also help with anonymising the screenshots if that were to end up being relevant for some reason

ember latch
#

yeah it happened to me some times, the problem is if you have a custom theme trolley

last rune
#

oh my god i thought the schizophrenia snippet persisted through a reload

#

also dont look too closely at the direct messages header

topaz wolf
last rune
#

themes and custom css aren't really possible to hide without js but setting a keybind (using openasar, for example) is a possible fix

#

for example

topaz wolf
#

Ooh yeah a keybind could work too

topaz wolf
last rune
#

trolley lemme write a snippet to bind toggling themes to F9

ember latch
#

it could be control + something like discord keybinds trolley

last rune
#

that is indeed possible

topaz wolf
#

Yeah maybe ctrl+f9 if it's not used already?

ember latch
#

doesn't seem like very easy access idk

clever wagon
#

huh

last rune
#

Uncaught TypeError: link.startswith is not a function
widesmile

#

ok i haves snippet

#
document.addEventListener("keydown", e => {
    if (e.key == "F9" && e.ctrlKey) {
        const final = [];
        for (const link of Vencord.Settings.themeLinks) {
            if (link.startsWith("#")) {
                final.push(link.slice(1))
            } else {
                final.push("#" + link)
            }
        }
        Vencord.Settings.themeLinks = final;
    }
});```
topaz wolf
#

Nice nice, guessing it's something that can just be toggled back on with the same keybind?

last rune
#

yeah

clever wagon
#

yeah

#

works perfectly

topaz wolf
#

Nicenice
Just wanted to check, since well, I know pretty much nothing when it comes to js lmao

last rune
#

and here's a version you can throw into the openasar json: json "document.addEventListener(\"keydown\",e=>{if(e.key==\"F9\"&&e.ctrlKey){const final=[];for(const link of Vencord.Settings.themeLinks){if(link.startsWith(\"#\")){final.push(link.slice(1));}else{final.push(\"#\"+link);}}Vencord.Settings.themeLinks=final;}});"

#

i forgot the ctrl check on that one 💀

topaz wolf
#

Pffft

livid imp
#

did u type that manually

last rune
#

uhh it doesnt work fuck hang on

#

i made it smol manually yes

#

WAIT WHAT

#

WHY IS IT THAT ISSUE AGAIN

clever wagon
#

get good ig

#

"document.addEventListener(\"keydown\",e=>{if(e.key==\"F9\"){const final=[];for(const link of Vencord.Settings.themeLinks){if(link.startsWith(\"#\")){final.push(link.slice(1));}else{final.push(\"#\"+link);}}Vencord.Settings.themeLinks=final;}});"```
last rune
#

fixed

livid imp
topaz wolf
#

Also I presume putting stuff like that in the openasar json means it stays between startups?

last rune
livid imp
#

you will copy(JSON.stringify(`code here'))

topaz wolf
#

Ooh neat

livid imp
last rune
#

if anyone wants my full openasar js, it's the following (no ctrlKey check :sunglaz:) js "document.addEventListener(\"keydown\",e=>{if(e.key===\"F10\")Vencord.Settings.useQuickCss=!Vencord.Settings.useQuickCss});document.addEventListener(\"keydown\",e=>{if(e.key==\"F9\"){const final=[];for(const link of Vencord.Settings.themeLinks){if(link.startsWith(\"#\")){final.push(link.slice(1));}else{final.push(\"#\"+link);}}Vencord.Settings.themeLinks=final;}});"

topaz wolf
#

I will now proceed to use the openasar json to install 3rd party plugins and such because I'm too lazy to actually build by myself trollholditin

last rune
#

WHY IS THE NICKNAME IN THE SUFFIX AAAAAAAAAAAA

#

and how am i supposed to check for this husk

livid imp
last rune
#

why wouldn't it not be

livid imp
#

this is really easy to hide just display none .vc-smyn-suffix

last rune
#

that hides the nickname not the username

livid imp
last rune
last rune
livid imp
#

but that doesn't correspond to ur settings

last rune
#

bleh i have default 😔

#

oh well, guess i'll just ignore it for now

#

ngl im impressed at the amount of stuff possible to hide with just css

topaz wolf
livid imp
last rune
#

true

#

some selectors in the snippet use it rn

livid imp
fervent carbonBOT
topaz wolf
last rune
#

holy shit i think i just disabled at least 100 plugins in web to check defaults lol

topaz wolf
#

Purged lol

last rune
#

its insane because we couldn't even do this without :has

#

I've gone ahead and pushed the changes

topaz wolf
topaz wolf
last rune
#

good timing, my pc just froze and my settings.json reset

#

so uhh

#

you know discord's settings.json?

#

wait wtf it didnt reset my settings.json

topaz wolf
#

Wh- huh lol
Anyway uh yeah, I have OA installed yesyes

last rune
#

okay uhh you know where your settings.json is right

topaz wolf
#

The Vencord one? Otherwise I don't-

last rune
#

uhh

#

check your discord folders

#

on linux it's ~/.config/discord/settings.json

#

should look something like this

#

in the openasar part, just set the "js" property

topaz wolf
#

Ohh big dumby move from me as usual lol, I was checking localappdata and forgot Discord has files in roaming as well

#

Eyy there ya go, thanks!

last rune
#

ayy

brazen breach
#

Is there an easy way to switch a hover function in CSS to toggle with a keybind instead? Complete n00b

livid imp
#

use javascript

#

also not the right place to ask that :P

this is the thread about a specific css snippet

brazen breach
#

thx