#Hides many of the Vencord plugin stuff
1 messages · Page 1 of 1 (latest)
scuffed way to hide donator badges
[class*="profileBadges-"] > :not([target]) {
display: none;
}
i hope so lol
also does this hide any vencord-added context menu items
uhh not yet
i forgot about those
quick switching between looking vanilla and having 🅱️encord injected
what's the point of this lmao
yes
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
yeah it happened to me some times, the problem is if you have a custom theme 
oh my god i thought the schizophrenia snippet persisted through a reload
also dont look too closely at the direct messages header
Actually, it would be quite neat to have this as a hidden button or something, though doing so would have to be done through a plugin, of course-
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
Ooh yeah a keybind could work too
Wehhh but I like my custom theme

lemme write a snippet to bind toggling themes to F9
it could be control + something like discord keybinds 
that is indeed possible
Yeah maybe ctrl+f9 if it's not used already?
doesn't seem like very easy access idk
huh
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;
}
});```
Nice nice, guessing it's something that can just be toggled back on with the same keybind?
yeah
Nicenice
Just wanted to check, since well, I know pretty much nothing when it comes to js lmao
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 💀
Pffft
did u type that manually
uhh it doesnt work fuck hang on
i made it smol manually yes
WAIT WHAT
WHY IS IT THAT ISSUE AGAIN
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;}});"```
fixed
horror
Also I presume putting stuff like that in the openasar json means it stays between startups?
true
yeah
you will copy(JSON.stringify(`code here'))
Ooh neat
never
either this or save the snippet in a file then node -p "JSON.stringify(fs.readFileSync(0))" < thefile.js
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;}});"
hmm
ok yeah it works now
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 
WHY IS THE NICKNAME IN THE SUFFIX AAAAAAAAAAAA
and how am i supposed to check for this 
why wouldn't it be
why wouldn't it not be
this is really easy to hide just display none .vc-smyn-suffix
that hides the nickname not the username
how else would it be that works with css
username in suffix
😔
but that doesn't correspond to ur settings
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
Me about to try and come up with some super goofy and overcomplicated css selector that only works if you believe enough in that it will work:
the addition of :has gave css so much power
**hideGarbage.css: **Lines 2-5
[class|=listItem]:has([data-list-item-id=guildsnav___app-download-button]),
[class|=listItem]:has(+ [class|=listItem] [data-list-item-id=guildsnav___app-download-button]) {
display: none;
}
That plus stuff like how dynamic and interactive you can make elements using pure css
Advanced selectors are crazy tbh
holy shit i think i just disabled at least 100 plugins in web to check defaults lol
Purged lol
its insane because we couldn't even do this without :has
I've gone ahead and pushed the changes
Oh yeah btw, which openasar json do I put the jsonified js into now again?
@last rune, sorry for ping, but uh yeah- 
good timing, my pc just froze and my settings.json reset
so uhh
you know discord's settings.json?
actually first off, you have https://openasar.dev installed, right?
Starts faster, performs better, even smaller
wait wtf it didnt reset my settings.json
okay uhh you know where your settings.json is right
The Vencord one? Otherwise I don't-
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
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!
ayy
Is there an easy way to switch a hover function in CSS to toggle with a keybind instead? Complete n00b
not possible
use javascript
also not the right place to ask that :P
this is the thread about a specific css snippet
thx