BetterDiscordStuff icon indicating copy to clipboard operation
BetterDiscordStuff copied to clipboard

Update linkProfilePicture.plugin.js

Open BadScribbles opened this issue 2 years ago • 2 comments

BadScribbles avatar Aug 09 '22 11:08 BadScribbles

Thank you for such a simple fix :D

manchyy avatar Aug 09 '22 16:08 manchyy

#184 bro 💀

TheGameratorT avatar Aug 10 '22 18:08 TheGameratorT

Might you have missed line 16 which came with the original code ? The new BD update requires plugins to have a stop function, not the functionality. Satisfying a requirement without changing old code is always a preference.

ghost avatar Aug 11 '22 15:08 ghost

Not including actual functionality within stop() makes the plugin make multiple hooks into the click action if you load/unload the plugin repeatedly, which will cause multiple copies of the link to get opened with a single click.

I don't notice such behavior after testing it. But I did also have to change it for it to work properly as stated in #184. I did also see Scribbles' deleted reply a moment ago. Anyways I'd still approve #184 after they fix that one bit I pointed out that recently changed. But square would still be the one to merge it or not so.

CompletelyUnbelievable avatar Aug 12 '22 14:08 CompletelyUnbelievable

Yes, I had to actually get back into this, since I've seen broken code being shared as working and branded as better while it is itself broken as illustrated here #183

I can't believe making a pull request to solve an issue could blew up into all this for whatever reason. it's not like I'm saying the other suggested answer is bad, in fact it's much more clean and follows propre semantics, However i thought I'd share this little fix since it stray far from the original code and follows the original dev way of doin things.

ghost avatar Aug 12 '22 18:08 ghost

JavaScript moment

TheGameratorT avatar Aug 12 '22 18:08 TheGameratorT

Still doesn't work?

PrototypeGR avatar Aug 12 '22 19:08 PrototypeGR

Still doesn't work?

For now, just manually add an empty stop function inside the linkProfilePicture class like this:

module.exports = class linkProfilePicture { start() { ... } stop() {} }

kmidm21iomiodaw avatar Aug 18 '22 14:08 kmidm21iomiodaw

module.exports = class linkProfilePicture { start() { ... } stop() {} }

image

Do i need to remove anything from line 12 or anything else?

PrototypeGR avatar Aug 18 '22 16:08 PrototypeGR

Do i need to remove anything from line 12 or anything else?

Uhh just copy paste from this pastebin instead. https://pastebin.com/B6nUFvQ2

kmidm21iomiodaw avatar Aug 18 '22 20:08 kmidm21iomiodaw

Do i need to remove anything from line 12 or anything else?

Uhh just copy paste from this pastebin instead. https://pastebin.com/B6nUFvQ2

It doesn't show any error at start but even if you click on the avatars it won't open bigger either.

PrototypeGR avatar Aug 18 '22 21:08 PrototypeGR

Is the script actually enabled in the plugins section?

On Thu, Aug 18, 2022, 23:07 PrototypeGR @.***> wrote:

Do i need to remove anything from line 12 or anything else?

Uhh just copy paste from this pastebin instead. https://pastebin.com/B6nUFvQ2

It doesn't show any error at start but even if you click on the avatars it won't open bigger either.

— Reply to this email directly, view it on GitHub https://github.com/Inve1951/BetterDiscordStuff/pull/185#issuecomment-1219964190, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASTZ5T6EICNVABWH7EBXTJTVZ2QZVANCNFSM56AOYXQA . You are receiving this because you commented.Message ID: @.***>

kmidm21iomiodaw avatar Aug 18 '22 21:08 kmidm21iomiodaw

Yes

PrototypeGR avatar Aug 18 '22 21:08 PrototypeGR

Idk then it is interfering with a different plugin or something. It's working perfectly fine for me with the same copy pasted code.

On Thu, Aug 18, 2022, 23:13 PrototypeGR @.***> wrote:

Yes

— Reply to this email directly, view it on GitHub https://github.com/Inve1951/BetterDiscordStuff/pull/185#issuecomment-1219969428, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASTZ5T35DINO7C2BQXJNISTVZ2ROJANCNFSM56AOYXQA . You are receiving this because you commented.Message ID: @.***>

kmidm21iomiodaw avatar Aug 18 '22 21:08 kmidm21iomiodaw

thx

Inve1951 avatar Aug 24 '22 00:08 Inve1951