#LoginWithQR

1 messages · Page 1 of 1 (latest)

simple crane
brittle wasp
#

i love this idea

#

feedback from what I can see in the image
maybe put this in settings as well as the popout there?
also add a textbox for pasting remote auth link directly?

sullen grotto
#

probably not possible but would be epic if you get like a screen capture like snipping tool when clicking scan to select a QR code

#

bc rn you have to save a file to disk if I see correctly

brittle wasp
#

just use regular screen capture API and take a screenshot of it

#

unless you're on discord desktop client

#

in that case you can explode

sullen grotto
#

if it works on vesktop then idc lmao

brittle wasp
#

real

#

just tested the plugin it works well

#

what is that text saying discord desktop app

#

is this your text

#

or copied

#

Maybe you could inject into here instead?

#

And this inconsistent dialog

#

I found a bug

#

onAbort is called regardless of if the auth finished

#

try something like this ugly code?

#

Also AbortStatus is entirely unused

#

I would recommend using onPointer{up,down} here.... for mobile compatibilty

simple crane
#

oh right vendroid exists

simple crane
#

update!!

  • added tab bar item
sullen grotto
simple crane
#

anyways im going

#

another banger plugin coming up very soon

simple crane
sullen grotto
#

I love that random 10k single file lib

brittle wasp
#

heres a stupid idea but why isnt the video stream shown

simple crane
#

been cooking all day

formal merlin
#

Why did you hack nexx?

simple crane
simple crane
#

update!!!

  • added webcam/image preview (and a super rad animation)
  • you can now paste a discord.com/ra/ link directly
  • fixed bugs
  • introduced more bugs maybe
    run
cd src/userplugins/LoginWithQR
git pull```
sullen grotto
#

why isnt that a discord feature

#

I have to login so often in incognito tabs where this is so useful

sullen grotto
#

because

#

discord logs me out so often

brittle wasp
#

Skill issue. Turn on NoDevtoolsWarning

sullen grotto
#

no not that

#

(and I have that on)

brittle wasp
#

what is it then trolley

sullen grotto
#

I authorize 2 oauth apps and get logged out

brittle wasp
#

WHY DOES DISCORD DO THAT

#

stupid

sullen grotto
#

lol

#

my alt logs out everytime lol

#

could be because I change countries all the time

brittle wasp
quick zinc
#

any idea why pressing "Scan using webcamera" might do nothing? The button doesnt change into scanning or anything

#

I get no console errors, I had OBS virtual cam already set up from before and also switched around with the original cam and I made sure to update

#

pasting the qrcode works fine

brittle wasp
#

new bug found

#

if you turn off the camera while it is still initializing this happens

formal merlin
tough bear
#

There's an off switch for a camera?

#

(it might just be in the plugin I still haven't tested it)

brittle wasp
tough bear
#

If (!init) crash

#

Imagine

brittle wasp
#

doesnt really crash

tough bear
#

I know

brittle wasp
#

just buggy

tough bear
#

I meant crash discord

#

But close enough

#

Just needs to disable the button if !init

brittle wasp
#

nothing stopping the plugin from intentionally crashing

brittle wasp
#

but ideally it would just cancel the init process properly

tough bear
#

Next update: we crash you if you do stuff

#

fair

#

if (personPressedBeforeInitEvilness) init stop thing

#

Perfect example

simple crane
brittle wasp
#

i think

simple crane
#

i saw a black square once idk

brittle wasp
#

hm

simple crane
#

is it just on the web or smth

brittle wasp
#

you might be doing it too fast blobcatcozy

#

also i might not have updated in like a day

simple crane
#

perchance

brittle wasp
#

I LOVE RACE CONDITIONS

tough bear
#

Wha

brittle wasp
#

is this a race condition?

#

A race condition or race hazard is the condition of an electronics, software, or other system where the system's substantive behavior is dependent on the sequence or timing of other uncontrollable events, leading to unexpected or inconsistent results. It becomes a bug when one or more of the possible behaviors is undesirable.
The term race condi...

simple crane
#

i think it's this actually

tough bear
#

I'm gonna go ahead and assume if it's on the latest version it's just setting the preview

brittle wasp
tough bear
#

Ye same

brittle wasp
#

yeah it probably is

tough bear
#

Kaboom

simple crane
tough bear
brittle wasp
#

horror

tough bear
#

I need to start using submodules

brittle wasp
#

DO NOT

#

LOOK AT MY FUCKING USERNAME.

#

IT IS LIKE THAT FOR A REASON neofox_explode

tough bear
#

Wait what did you do

brittle wasp
#

I have committed many many many mistakes like committing submodules in my PR branches to Vencord

#

I did it multiple times

tough bear
#

...

brittle wasp
#

MANY TIMES ACTUALLY

#

blame vscode for that?

tough bear
#

Yes

#

All vscodes fault

brittle wasp
simple crane
#

yay

sullen grotto
#

just wanted to say how insane this plugin is, I love it

#

I get looged out in browser so often

simple crane
#

plugin crashes discord whoopsie!!

brittle wasp
#

husk WHAT

#

cant even open user profile popout where it is

#

its over

#

can't find "QrCodeCameraIcon"

#

also proxyLazy called on a primitive value

simple crane
#

fixed pookies

#

update!!!

  • fixed crash...
    run
cd src/userplugins/LoginWithQR
git pull```
formal merlin
#

Thanks dad

brittle wasp
#

The patch for the user popout broke

tough bear
brittle wasp
#

i'd also like to fix the button here (as it breaks with the search functionality)

#

by integrating it into the settings sidebar registry properly

#

there's a huge frozen block where they are all defined

#

search for USER_SETTINGS_MERCH_LINK_CONFIRMED),

#

regarding this, perfect find for the module, but you should edit the block of categories at the top instead

tough bear
# brittle wasp care to share your fix?
{
            find: "Messages.MULTI_ACCOUNT_MENU_LABEL",
            replacement: {
                // Insert our own MenuItem before the Switch Accounts button
                match: /children:\[(.{0,54}id:"switch-accounts")/,
                replace: "children:[$self.ScanQrMenuItem,$1",
            },
        },
#

couldn't fix the scanqrmenuitem thing

brittle wasp
#

wdym

#

what broke with it

tough bear
brittle wasp
#

ah

#

the find

simple crane
#

ermm ermm i completely forgot to fix this

simple crane
#

i'll do it now i swear

simple crane
#

update!!!

  • updated preview images
  • fixed crash again......
  • updated cross.png
  • new fancy zoom in animation when scanning images
  • moved Scan QR Code button from simplified user popout > switch accounts popout
  • fixed searchability in settings
  • (maybe more that i forgot)
    run
cd src/userplugins/LoginWithQR
git pull```
idle zodiac
#

nice

idle zodiac
#

this gotta be the most useful plugin on vencord

brittle wasp
#

This plugin is now causing crashes when loading settings on canary due to Discord's new i18n system

You may or may not have to fix this depending on how it is resolved upstream

simple crane
#

im aware

#

had to switch to stable

brittle wasp
idle zodiac
#

@simple crane stable is cursed now

#

its crashing

#

💔

stable veldt
#

yeah :(

simple crane
#

forgot to let you all know but

#

update!!!

  • FIXED!!
    run
cd src/userplugins/LoginWithQR
git pull```
brittle wasp
#

hollow i cant update the plugger because of @worldly crater's server being down causing git submodule update to explode

#

awesome

quartz swallowBOT
worldly crater
#

kys

worldly crater
brittle wasp
#

hello what are timezones what time is it now

worldly crater
#

4:47pm

strong sage
#

vfjd

#

vfjd

#

Reallu

#

vfjd?

quartz swallowBOT
strong sage
#

Still

sour ravine
#

vfjd?

quartz swallowBOT
brittle wasp
#

vfjd?

quartz swallowBOT
simple crane
#

vfjd?

quartz swallowBOT
oak copper
#

Its instantly crashing

#

I mean when scanning a qr code

#

Everythink is working but discord crashing

stable veldt
#

same for me

oak copper
#

Can someone push update?

simple crane
#

vfjd?

quartz swallowBOT
simple crane
simple crane
simple crane
oak copper
tough bear
light glade
#

vfjd

#

whoops

#

vfjd?

quartz swallowBOT
stable veldt
#

it doesnt work anymore, if you want to "hold to confirm login", you cant hold the button anymore

wintry minnow
#

@tough bear can u fix it ? sobbing_face

tough bear
#

Ill probably get around to the account tab patch eventually