#👾-core-development
1 messages · Page 88 of 1
Adds a popover button to either toggle a css snippet (adds it to quickcss) or eval a javascript snippet
Only shows the buttons in the official css/js snippets channels for safety
Js snippets are locked behind a plugin setting and give you a warning before running it
@austere talon would js snippets be too unsafe?
i think you could do private settings instead because like 0.0001% of people read warnings
yea true
what
oh as a pr
ohhh
ye, I put effort into it, there's just some quirky thing that needs to be resolved
oh uh
To fix themes not loading on web can't you patch the cross-origin and csp?
There are already extentions to do that but it would require the user to install 3 extentions instead of 1
we already do
if it doesnt work its your browser's skill issue
aka you're most likely using brave
ohh
There are extensions that work tho
Currently using
- CORS Unblock
- CSP Unblock
ok
close
What do you think about it?
Not so good, but not so bad I would say.
idk really why lol
Guys, can I push the themes myself into the C:\Users\UserName\AppData\Roaming\Vencord folder?
On the other hand...
why install themes at all?)
Yes, there is no place
i remove download button xd
It remains to add a search
vupdate
💢

am I just stupid or does Clipboard.copy() just not work within a contextmenu patch
check console for errors
but there is already pr with betterdiscord theme browser plugin with better design https://github.com/Vendicated/Vencord/pull/956
kek, well that's unfortunate
https://adriancastro.dev/vpo95v53dj5j.png
hm I pulled just now, but I'll see
kek I checked out the remote branch and git apparently creates new branches from the local head
me big stupid
@austere talon branch main?
Oh
noice
nice
this adds a button to copy user urls, if this is useless just close, I mainly made it for myself since I use user urls a lot
my bad
cant you provide the firefox xpi file for vencord web on discord?
regarding the announcement
aww oki
sry for commitins settings for vsc btw
hello
this code is very messy, there are many issues:
- use const/let over var
- use SCREAMING_SNAKE_CASE for constants
- use a css file instead of inline styles
- storing react state in global variables is almost always, most definitely in your case, an anti pattern
- avoid using resources from random websites
- lines should be broken if they get too long
- follow the project's style and lint
- push to the customSections of settings instead of copy pasting the patch
Regardless ...
this name is misleading
name: "BDThemeRepo",
About bad code is expected - I wrote for the first time on TS while learning the syntax on the go) (usually I work with C #, C ++, sometimes java, rarely rust and js / css / html)
Therefore, I also planned to completely rewrite the code from scratch, refactor it. And about the need for a plugin - when I first downloaded Vencord, I wanted to look through the plugins, but it takes about 10-15 seconds to insert them, which does not allow them to be viewed normally. Therefore, for beginners (per...
А как мне использовать customSections?
adryd's clear urls dont work on youtube and instagram's share feature
actually i dont remember youtube videos' shortened urls having tracker
here's an example https://youtu.be/-R0eNs3xMGs?si=u8D_bJQlE5T7oYfA
I did my best as always! I hope you enjoy! (/^-^)/
Instrumental: Linkin Park - Faint
Acapella: Linkin Park - Faint
Acapella: Slipknot - Nero Forte
Acapella: Eminem - No Love
Patreon: https://www.patreon.com/XYClanKILLER2
PayPal Donation Link: https://www.paypal.com/paypalme/DSchwind116?locale.x=de_DE
If you want to know more about my life, f...
there’s a PR for youtube
instagram?
IgnoreActivities (had no effect):
ID: 985101
Match: /!([A-Za-z_$][\w$]*)(\)return null;var [A-Za-z_$][\w$]*=([A-Za-z_$][\w$]*)\.overlay.+?children:)(\[.{0,70}overlayStatusText.+?\])(?=}\)}\(\))/
None
font-weight: bold;
color: purple;
[kb store] KeybindStore: Looking for callback action SOUNDBOARD_HOLD but it doesn't exist in this version. Skipping
%c[FetchBlockedDomain]
font-weight: bold;
color: purple;
Unable to process domain list delta: Client revision number is null
%c[FetchBlockedDomain]
font-weight: bold;
color: purple;
Downloading the full bad domains file ```
IgnoreActivities (had no effect):
ID: 985101
Match: /!([A-Za-z_$][\w$]*)(\)return null;var [A-Za-z_$][\w$]*=([A-Za-z_$][\w$]*)\.overlay.+?children:)(\[.{0,70}overlayStatusText.+?\])(?=}\)}\(\))/
None
font-weight: bold;
color: purple;
resetSocketOnError Cannot access 'nde' before initialization
%c[FetchBlockedDomain]
font-weight: bold;
color: purple;
Unable to process domain list delta: Client revision number is null
%c[FetchBlockedDomain]
font-weight: bold;
color: purple;
Downloading the full bad domains file ```
export function getPluginTarget(filePath) {
const pathParts = filePath.split(/[/\]/);
if (/^index.tsx?$/.test(filePath.at(-1))) pathParts.pop();
if (/^index.tsx?$/.test(pathParts.at(-1))) pathParts.pop();
const identifier = pathParts.at(-1).replace(/\.tsx?$/, "");
const identiferBits = identifier.split(".");
*/
export function getPluginTarget(filePath) {
const pathParts = filePath.split(/[/\]/);
if (/^index.tsx?$/.test(filePath.at(-1))) pathParts.pop();
if (/^index.tsx?$/.test(pathParts.at(-1))) pathParts.pop();
const identifier = pathParts.at(-1).replace(/\.tsx?$/, "");
const identiferBits = identifier.split(".");
*/
export function getPluginTarget(filePath) {
const pathParts = filePath.split(/[/\]/);
if (/^index.tsx?$/.test(filePath.at(-1))) pathParts.pop();
if (/^index.tsx?$/.test(pathParts.at(-1))) pathParts.pop();
const identifier = pathParts.at(-1).replace(/\.tsx?$/, "");
const identiferBits = identifier.split(".");
mozilla finally found out how to read code i guess
gonna have to either drop firefox support or remove a lot of features from firefox
drop it 
Firefox now support import chrome extensions
it is in about:config browser.migrate.chrome.extensions.enabled
but only support import from extensions exist in chrome
oh that sounds cool I'll check it later
hmmmmm
The macOS installer requires Full Disk Access, and I am incredibly uncomfortable with granting the installer Full Disk Access.
Could you make it so it uses Files and Folders permissions?
Thank you!
can we yoink the profile card component from somewhere, or is that a bit too convoluted to get
Mozilla decided to create a list of extension pairs for extensions that are available on the Chrome Web Store and the Mozilla Add-ons Store. Instead of importing the Chrome extension directly, Firefox is installing the Firefox version of the extension from Mozilla's own extension store.
lol this is useless
So this means you can now "import" Extensions from chromium into furryfox?
just use copyWithToast instead
creating number formats is pretty expensive, you should cache and reuse the same instance. just make a global instance
both of these matches are pretty bad. children:(\(.+stuff means find the first children:( in the file, then match all characters up to the first instance of stuff. the odds of this matching the wrong thing are incredibly high
how is this animation cpu intensive?
you kind of missed the point. I meant inside index.ts
when focus, animation running
when unfocus, animation stop
714d872 build: allow overriding git details & disabling... - Scrumplex
just removed the toast and cleaned it up, copy user ID doesn't have any confirmation either, dunno what my 2 AM brain was thinking
this seems kinda dangerous. if they add an additional prop after showBorder, it will also match that and produce broken code
this should be stored inside a variable on the top level
60458cd Win32Updater: use before-quit event instead of ... - CanadaHonk
cannot reproduce, it uses virtually nothing for me
0335e1c new plugin FixSpotifyEmbeds: less loud embeds - Vendicated
0f02825 🗿 but HD (#1678) - MeguminSama
f628aa7 ClearURLs: Add si parameter on youtu.be (#1681) - pointydev
714d872 build: allow overriding git details & disabling... - Scrumplex
60458cd Win32Updater: use before-quit event instead of ... - CanadaHonk
upload theme button is broken on both web and desktop (i edited code to enable on desktop, finding the bug)
doesnt allow css files for some reason
just pick it anyway
doesnt let u
skill issue of whatever picker you use
doesnt do anything on click
fixed by changing filters={[{ extensions: ["*.css"] }]} to filters={[{ extensions: ["css"] }]}
works fine on windows
crapOs part 2
yes it still works with css
explorer says cascading style sheet document instead of *.CSS files
this is the first time anyone has seen that text in 25 years
before and after the fix
oh my god LMAO
it interpreted the wildcard literally
"cascading style sheet style sheet"
beautiful OS
horrid
????????????????
(reverted the changes)
github is a stable platform with no issues 
https://the.yog.zone/3qFLAiz.png
it died for me too lol
will do later
@austere talon how do i use customSections?
why are github actions so slow https://cdn.discordapp.com/emojis/1102371462934962187.webp?size=48&name=pureagony&quality=lossless
codeberg ci stay winning
i probably shouldve made a branch for this so i can actually contribute but oh whale 🐳
have a guess
😭
I mean, should I add directly through the sources, or look for methods to add NOT through the sources?
try settings.customSections.push();
ok fixed
... but I can only add the section ID
Fuck the installer, all we need is shiggy clicker
(Builds)[https://github.com/ImLvna/ShiggyClicker/actions/runs/5976425902#artifacts]
@turbid hatch you love
why does it take so long to install wails on windows wraaaa
istg if setup-go caching doesnt do global stuff im gonna cry
I m done with refactor. What about now?
If you still don't like the code in some places, then tell me - I'll try to improve it
this is never going to happen
what won't happen?
Merge?)
maybe) but it was fun
lol ok
try this fix someone posted in a signal issue:
obviously, you will have to change the app_id. i'm not quite sure what the app id is, try vesktop, vencorddesktop and vencord-desktop
for_window [app_id="signal"] floating enable
IT DOES
Oh wait, now this plugin can't be turned off...
How can I know if my plugin is enabled or not?
@turbid hatch you love
the time variety lol
why did u move setup node after pnpm
idk why windows takes so long to install wails tho, even with the cache
windows and go is not a good mix
yeah
it takes ages
it's something relating to cgo
don't pull go into this
because wails uses some cgo stuff
real
all languages are slow asf to compile on windows
try rust or c++
its so horribly slow
my rust code compiles in like
what
2s?
without pkgs of course, with it takes time
but that's natural
it's rust
lol
go without cgo is fine, with cgo it fucking dies
because i assume it's using MSVC
C#
The old C# was not cross-platform, and it was impossible to compile it on linux :)
Although something tells me that now dotnet is also faster on Linux
I suck at react but actually kinda not too bad
https://adriancastro.dev/utet0yrzynsz.png
just needs to be prettier
oo nice
it doesnt i think
Linux itself just trusts processes more by giving them more power, and spends less on its own.
mingw
does vesktop use hardware acceleration
oh yeah that'll do it lmfao
because my member list is duing
also windows defender
windows defender sucks when it comes to compiling
that's why i normally just turn it off / add exclusions
:D
i wanna try this merge queue thing
yes
awa
cause it says to add to the CI the merge_group event
WHY IS IT BACK
so what im assuming it does is it creates a fake branch to do it
Turning off windows defender on windows 10 is too hard)
and then runs it through actions
?
it's a toggle switch
what
or you can completely kill it with a powershell command
it turns back on
You have to do this every damn launch.
yeah but the point is that you do it temporarily
whilst you compile stuff
and it goes weeeeee
And it doesn't turn off completely.
if you wanna turn it off completely
group policy
easy
or a regkey
or a powershell command
it's like a 10 second google
Seriously? It's just that usually when I search for it, I find only "too difficult, not worth it"...
Although I may have searched too early after the release of Windows
group policy makes it significantly easy
it's a single option
Comptuer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus > Turn off Microsoft Defender Antivirus
In general, right now I work mostly only with C #, rarely with other languages, so yes
so you can still leave all of the other protection on
and just disable real time
which is actually fire
|| pwsh Set-MpPreference -DisableRealtimeMonitoring $true New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender" -Name DisableAntiSpyware -Value 1 -PropertyType DWORD -Force
||
spoilerd so randoms dont run it
In general, I have been planning to buy a second disk for a long time, and put Linux on it for work
But everything stops me the lack of VS on it (
what is it
lets u tweak a bunch of registry keys
but it also allows you to break a bunch of shit
so its not advisable to get unless you know what you're doing
lewi do we know exactly what triggers the full disk access popup
i wanna make a prompt for it
its cause it's trying to write to the /Applications directory
which is considered protected
it's because /Applications/Discord.app is owned by the root user for some people
while for the majority of people it's owned by their user
the fix is to either elevate to root, or do what we tell people to do, chmod it to their own user
the full disk access is wrong and misleading in almost all cases
vprune 3 by 1045795875001208894
:3
also u have a bunch of local changes from when u went to bed
do u want me to send a patch file in a bit?
i think i ported all of it onto the main thing anyway
so
all the stuff that matters
ah oki
nice
i wish windows let you do what mac does
where it just drops the window controls into the frame
so you can have a custom titlebar
stopping plugin didnt call stop
oh wait, i m stupid
yeah it works
you "can" do that with DWM hacks but most people just opt to rebuild the entire window frame from scratch at that point
so sad that the web installer got deprecated
web installer got ported to wailsinstaller
wailsinstaller still uses the web installer code
yes but the web installer was so insane
it would have been cool and good if pwas had more functionality
relating to native filesystem stuff
but they dont so it makes it more difficult
also pwas only really work in chrome
firefox and safari dont support them nearly as well
yeah but im talking about the ws thing, i never seen an installer like that
ah yeah
i know its not quite the same
but via and qmk config are both web based tools that do stuff in the browser
and then write to hardware
via especially is really cool
though i use the downloaded version of the app cause authorising it access to my keyboard every time is a lil annoying xd
ah webusb
yeah webusb is cool too
i wrote a website that used adb
its gonna be less cool but a bit more convenient
its funny how many draft standards are widely used only because chrom(e|ium) implements them
ye
i think convenience > coolness
wait, i can explain...
cf workers is fire
I checked everything, now everything works exactly without errors
true 😔
@spark cove for voice api, should i allow plugins to set priority? ie: soundboard has priority 2 so rnnoise gets injected first
im not even sure voice api is a good idea
it doesn't seem very useful and only works on web
i mean its better than hardcoding support for other voice plugins
look at the patches for my soundboard pr
i don't think a web only fake soundboard plugin is a good idea either
and I cannot think of any other plugins wanting to mess with voice
stereo audio 
combust
Damn, I wanted to create a new fork of the project to edit the changes in the branches
But you can only create one fork...
Well now I have a fork with my 100% useful plugin
And I made a big mistake in the beginning: I pushed everything in main branch
make a branch from main, change repo default branch to that, delete main, remake it from upstream, fix the default
Yes, this is understandable ... Although it seems to me easier to manually copy all the files, roll back all the changes by deleting the commits permanently, paste the changes manually back, commit they into a new branch and make a new pull request
but then it loses commit history
ok, I'll try to save them
maybe try this
https://stackoverflow.com/a/1628584/15255084
niceeeeeee
It remains to rename the repository
done
I thought it would be much more difficult
all the same git and really very powerful
this embeds user urls of cached users using the friends activity card as component
Volume booster
Prob better to have it centralized tbh doesn't hurt and web is a big target cus vesktop
Ok so I just came to ask considering I'm considerable new to this vencord thing
Is this thing safe to install? Or could there be potential problems with it, ignoring the possible bans from using it like better discord obviously
Oh, thank you and sorry for the intrusion
need to find out how to make it a link https://cdn.discordapp.com/emojis/1102371462934962187.webp?size=48&name=pureagony&quality=lossless
wdym
so incase the popup was dismissed before u dont have to dig thru settings to find it
its in a weird place

whar
full disk access is not the right solution
oh
actually it looks like there might be a really clean solution
can someone on macos try running this
and tell me how the experience is
please grant the
vns
wheel is real on mac??
osascript -e 'do shell script "chown -R \"${USER}:wheel\" /Applications/Discord.app" with administrator privileges'
why osascript?
someone on mac run that
oh nvm im dumb
nuh uh
osascript shows a graphical adim prompt apparently
after running osascript
it does
does granting disk access actually fix it
lmao what th ehll
full disk access is whats working on my end https://cdn.discordapp.com/emojis/1102371462934962187.webp?size=48&name=pureagony&quality=lossless
is ur user admin
yeah'
awa
uh weird
for reference:
well
okay so
the best flow imo would be:
on permission error:
- check if directory is owned by root instead of current user. If yes, show a popup telling the user about it and that they need to enter their password to fix it and then have a button "ok" and on click it runs the osascript chmod
- if still fail, tell them to grant disk acess
- if still fail, tell them to explode
why is some weirdo spamming codeburger issues
[Voir-Film!] Les Déguns 2 2023 Streaming Complet VF Voir- Film! Les Déguns 2 en streaming vf 100% gratuit, voir le film complet en français et en bonne qualité.
𝗟𝗲 𝗱𝗲𝘀𝘁𝗶𝗻 𝗱𝗲 𝗦𝗶𝗺𝗼𝗻𝗲 𝗩𝗲𝗶𝗹, 𝘀𝗼𝗻 𝗲𝗻𝗳𝗮𝗻𝗰𝗲, 𝘀𝗲𝘀 𝗰𝗼𝗺𝗯𝗮𝘁𝘀 𝗽𝗼𝗹𝗶𝘁𝗶𝗾𝘂𝗲𝘀, 𝘀𝗲𝘀 𝘁𝗿𝗮𝗴é𝗱𝗶𝗲𝘀. 𝗟𝗲 𝗽𝗼𝗿𝘁𝗿𝗮𝗶𝘁 é𝗽𝗶𝗾𝘂𝗲 𝗲𝘁 𝗶𝗻𝘁𝗶𝗺𝗲 𝗱’𝘂𝗻𝗲 𝗳𝗲𝗺𝗺𝗲 𝗮𝘂 𝗽𝗮𝗿𝗰𝗼𝘂𝗿𝘀 𝗵𝗼𝗿𝘀 𝗱𝘂 𝗰𝗼𝗺𝗺𝘂𝗻 𝗾𝘂𝗶 𝗮 𝗯𝗼𝘂𝘀𝗰𝘂𝗹𝗲́ 𝘀𝗼𝗻 é𝗽𝗼𝗾𝘂𝗲 𝗲𝗻 𝗱é𝗳𝗲𝗻𝗱𝗮𝗻𝘁...
the webhook notifs didn't even work
waaaaaaaaaaa
what am i doing wront
cmd := exec.Command("osascript", "-e", "do shell script \"chown -R \"${USER}:wheel\" /Applications/Discord.app' with administrator privileges")
stdout and stderr are nil
cmd := exec.Command("osascript", "-e", `do shell script "chown -R \"${USER}:wheel\" /Applications/Discord.app" with administrator privileges`)
omg
im used to js so when copilot suggested backticks i ignored it because "im not substituting anything"
do shell script "chown -R "${USER}:wheel" /Applications/Discord.app" with administrator privileges
notice whats wrong here
thats what youre running
you might need \\" instead of just \"
im not sure
ah no
` is fully raw
i tried changing the user to singlequotes after i sent it
\" escapes the quote surrounding the string
then it doesnt work cause ' prevents variable expansion
anyway this should work
` is for raw string literals in go
can we customise what this says
lemme check docs
oh
its easy
do shell script "" with prompt "Vencord Installer needs to fix Discord file ownership. Enter your password to allow this" with administrator privileges
try this
oh wait
remove the "Enter your password to allow this"
cause the prompt already says the same
does that force login keychain password or does it allow touch id, these permissions prompts are inconsistent in what they want from you sometimes
try it and see
Summary
Shows the timeout chat badge without moderate member perms.

osascript -e "do shell script \"echo\" with administrator privileges"
run in terminal
forces keychain
whar
works here
did you enable touchid for pam?
osascript uses pam
i never bothered to enable that because i use nopasswd
applescript is so cursed
didn't enable anything as far as I remember, perhaps if it prompts you at some point I may have clicked yes in the past
much good, very appreciated 👍
why is it even hidden in the first place lmao
blindly clicked on a prompt and cant edit my sudo file https://cdn.discordapp.com/emojis/1102371462934962187.webp?size=48&name=pureagony&quality=lossless
brb
description: "Shows timeouts in chat even if you aren't a moderator",
or something like that, idk describing things is hard
no point in showing it to normal users (trust me)
so it shows to mods only
how would i do string substitution in it, so its not hardcoded to /applications/Discord.app
just use +
oki
common dolfies W
did you actually make it check whether the perm check is necessary
no
check if the folder is owned by root
ohh
it's "sensitive info"
(they send it to everyone)
thank you copilot
info, err := os.Stat("/path/to/the/file")
if stat, ok := info.Sys().(*syscall.Stat_t); ok {
isRootOwned := int(stat.Uid) == 0
}
????????????????
yes that's correct
go is confusing
anyways
it skips the cast check but that should be fine
ohhh
chillax buddy there's 2 more pages 
By the way, I was thinking about loading external plugins
Yes I know)
its a joke moment
yes, i m not funny
you can still respond to a joke silly
ai will take our jobs
Oh no, are you saying you're joking too?
Then I joked at your joke
any question?
xd
😭
btw
I thought about loading plugins from outside
For example from github
but from another page
report message button:
wave good bye to ur account
this will unironically get you banned 

you should delete that message
If I get banned for this, it will be at least funny)
nah they dont care at all
you can edit any message that someone replies yes/no/similar to into something like "ru under/over 13" and report the reply
and the person will be banned
the chown is failing D: ill send code in a sec
its showing the prompt but giving status 1
bro revealed the secret tactics of the raid
for eel
check stderr
you can ban literally anyone that's ever replied with something in the negative/affirmative to you
is he happy because he is close to his death?
Has he really looked at my files and cannot mentally endure this burden?
I need to buy another CD...
<Nil>
cmd := exec.Command("osascript", "-e", `do shell script "chown -R \"${USER}:wheel\" \"` + path + `\"" with prompt "Vencord Installer needs to fix Discord file ownership. Enter your password to allow this" with administrator privileges`)
still failed if i removed the quotes around path
func (i *Installer) PromptForChown(path string) bool {
fmt.Println("Showing osascript prompt", path, "...")
cmd := exec.Command("osascript", "-e", `do shell script "chown -R \"${USER}:wheel\" \"` + path + `\"" with prompt "Vencord Installer needs to fix Discord file ownership. Enter your password to allow this" with administrator privileges`)
err := cmd.Run()
if err != nil {
fmt.Println("Error while prompting for chown:", err)
fmt.Println(cmd.Stderr)
return false
}
return true
}```
Showing osascript prompt /Applications/Discord.app ...
Error while prompting for chown: exit status 1
<nil>```
wait wtf
the "with admin priviledges" got trimmed off
wait no it didnt im blind
const fixPermsCommand = `do shell script "chown -R \"$USER:wheel\" '%s'" with prompt "Vencord Installer needs to fix Discord file ownership" with administrator privileges`
cmd := exec.Command("osascript", "-e", fmt.Sprintf(fixPermsCommand, path))
same thing
i mean
the chmod didnt work earlier either did it
try just sudo chmod ... in the terminal
does it work
but it doesnt work via osascript
uh
set c to "chown -R \"$USER:wheel\" '%s'"
do shell script c with prompt "Vencord Installer needs to fix Discord file ownership" with administrator privileges
try this
should it just work with multilines?
yes
const command = `
set c to "chown -R \"$USER:wheel\" '%s'"
do shell script c with prompt "Vencord Installer needs to fix Discord file ownership" with administrator privileges
`
this should work
yeah but how do i run that thru console
sudo 
I somehow accidentally deleted the entire bin on a working server in an attempt to remove some library
wtf
did i fuck up the permissions somehow
lemme try and get it to install as admin and try again
now it works??
no thats canary
And now it tells me to install PC version on PC version
you deleted your vencord install
lol
dont use the dev build if you dont know how to make it work
ii didnt do anything
you also block my PC discord
fun
ven
ur using $USER in admin context
** **vns 
applescript won't expand that
try this script
how can you have multiple imports with conflicting names
i tried to import runtime a bit ago and it conflicted with wails
import * as WailsRuntime from "..."
btw this happen when i change theme
in go
** **vns
import (
alias "thing"
)
set discordPath to quoted form of POSIX path of "/Applications/Discord.app"
set username to do shell script "whoami"
do shell script "chown -R " & username & ":wheel " & discordPath with prompt "Vencord Installer needs to fix Discord file ownership." with administrator privileges
try this
oh
lol
yeah probably because the reactivity doesnt quite realise that it's updated
mac is still a bit funky
ah
i'm gonna make this a native mac thing btw cc @austere talon
i'm gonna add something to the mac-specific build that calls into NSAppleScript instead of using the command line
because its a bit silly doing it this way
TRUE
xd
why
oh fuck
cli is fine
it labels the admin prompt as from osascript
so what
- you can fix that fairly easily
you can
the part i'm talking about is the application name
<application name>
<custom prompt>
Use Touch ID [...]
no
nuh uh
but i am not creating symlinks on people's PCs to evade mac's security measures lol that will get us branded as malware
wrong
create symlink
invoke it
delete it
or just you know dont care about osascript name
except NSAppleScript exists for the reason that applications are not meant to use the CLI to invoke applescripts
tbh we could just write this entire operation in go itself and then elevate as needed
instead of using applescript
either write it in go or shell out to applescript
writing objective c is a terrible idea, do not do that
applescript is by far the easiest solution
wrong video
so just use it 
you also say "just elevate"
yet the entire point of using osascript is its graphical password prompt
wraa i hate obs naming scheme
that you dont get in other ways
and no we will not make our own password prompt and feed it into the shell or whatever thats horrible
just use applescript cause it just works and is simple, don't overcomplicate it :P
i was never ognna ask to write our own prompt
that is horrific and really shit for security
yes
how would a window get its own id?
?
for closeWindow
but it leaves the error window open
oh i didnt see that
how would i use svelte components in an on:click
//#cgo CFLAGS: -x objective-c
//#cgo LDFLAGS: -framework Foundation
//#include "applescript.h"
import (AppleScript "C")
func main() {
script := AppleScript.CString(...)
defer AppleScript.free(unsafe.Pointer(script))
AppleScript.explode(script)
}
// applescript.h
#import <Foundation/Foundation.h>
void explode(const char *s) {
NSString *script = [NSString stringWithUTF8String:s];
NSAppleScript *applescript = [[NSAppleScript alloc] initWithSource:script];
NSDictionary *errInfo = nil;
[script executeAndReturnError:&errInfo];
}

god objective c makes me hate myself
where findByCode("4.4408921e-16 C4.4771525,-1.77635684e-15 4.4408921e-16") finding element?
do not.
:3
why does it even say "thing u were trying to do"
let resolve: () => void;
function WaitForButton() {
return new Promise<void>(res => {
resolve = res;
});
}
function ShowAdminPrompt() {
resolve();
}```

and using #await WaitForButton()

we already had it say the proper thing
drop the random PascalCase :P
i have no idea if my weird go stuff works
but i want to compile it
and find out
lmfao
btw there's a proposal that will make that better
awa saw it being used in bindings.go and started using it
this is purely my curiosity so
bindings.go is using go convention
cause that's go's naming convention
in js its camelCaseLikeThis
in javascript the convention is camel
PascalCase is used to export functions publicly in go, so we need to use them for the bindings
ahh
https://x.lewisakura.moe/23/08/Code_-_Insiders_2023-08-25_19-43-44.png even with syntax highlighting
objective-c still looks fucking stupid
// js
function notExported() {}
export function exported() {}
// go
func notExported() {}
func Exported() {}
go is silly like that


smh, OBS 
cache?
whats try again as admin
is that still the chown or do you spawn the installer as root
optimally we wouldn't chown and instead spawn the installer as root
but idk how plausible
thats the chown
copilot did the text and i went with it https://cdn.discordapp.com/emojis/785701654015901716.webp?size=48&name=firShrug&quality=lossless
requires either using applescript to respawn the installer or elevating via objective-C code
both are undesirable imo
actually apple's own recommendation is to spawn a separate tool with admin to do the operation for you 
you could literally just spawn the cli
but cursed
I think we just chown who cares
we're fixing the perms anyway
so
i dont think it realistically matters in the end
82ab9af feat: applescript natives - lewisakura
ecbefac fix: drop incorrect go:build pragma - lewisakura
https://github.com/Vencord/WailsInstaller/pull/4 fixed this with the changes
wdym?
idk
it seems odd that it happens on some but not others
I can't tell you why it happens
so idk what the correct behaviour is
well I think root owned is minority
happens when the user installing it isnt admin
it always installs as user:admin(group)
but when the user installing isnt admin they dont have perms to edit it afterwards
here i have a ss of installing it as a test user
huh?
no
usually it's owned by your own user, but for some it's owned by root
root wheel instead of luna wheel
wtf
I think root owned makes more sense tbh cause its system wide apps
/Applications should be root owned and ~/Applications should be user owned
fav button (to quickly turn on and off the necessary plugins (idk why))
Looks ugly
maybe something like this
What do you think about it?
selected
no i originally just made it say "couldnt do what u were tring to do"
but i added the error message in later and forgot to remove the placeholder text
silly
Added favorite button inside plugin info/settings
Favorite plugins are now placed before of others
idk why
the icon looks kinda off? idk
also, why not use this color (var(--yellow-300))? It would kinda look more on par with other areas inside discord that use that
I already changed the color, it was just that initially I was too lazy to select for tests, and I just prescribed YELLOW
Now it looks like this
but i like your version better
update color
and then just add favorited plugins to toolbox
ez ez
no silly list thing
oh kinda real
Which toolbar?
vencord toolbox*
its just a plugin
then you need to change the toolbox plugin
not hard
I know
since youre changing plugins list code anyway
I just want good architecture
therefore, I suggest adding a separate method for external plugins in the toolbox plugin, through which you can add your items to the list
which is what someone already did (does that pr exist still)
might be mandela effect but isnt there just a field in definePlugin to add a toolbox entry
could've sworn that's a thing
yes i know
its kinda easy
it is
that is typically for plugins adding their own actions though
unless you add a "settings" action to every plugin which is kinda just clutter
even though i did that for mine, since i change my settings a lot
perhaps something like that:
toolboxPlugin.addMenu("fav plugins", [
{
name: "idk",
callback: () => {}
}
])
what
api for toolbox plugin
It does 😭
what lo
there is
yeah i figured
oh wait





