Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Feature request for existing plugin MaskedLinkPaste: an option to put the link between <> #876

Closed
3 tasks done
thismoon opened this issue Jul 9, 2024 · 4 comments
Closed
3 tasks done
Labels
rejected (plugin exists) This plugin is already part of Vencord.

Comments

@thismoon
Copy link

thismoon commented Jul 9, 2024

Plugin Description

add an option to MaskedLinkPaste to make pasted links between <> so it doesn't make an embed
original behavior:
[selected text](link)
new behavior (with the option enabled):
[selected text](<link>)

Existing Plugin for other mod

No response

Request Agreement

  • I read the above and made sure my plugin is possible and allowed
  • I checked the existing plugins and made sure my plugin doesn't already exist
  • I searched the existing issues and made sure a similar request doesn't already exist
@nvhhr
Copy link
Collaborator

nvhhr commented Jul 9, 2024

You can use textreplace plugin to achieve this.
REGEX:
find (https?:\/\/\S+)
replace <$1>

This could probably be improved I don't know regex very well.
I use something similar to disable embeds for specific sites.

@Jazza-231
Copy link

You can use textreplace plugin to achieve this. REGEX: find (https?:\/\/\S+) replace <$1>

This could probably be improved I don't know regex very well. I use something similar to disable embeds for specific sites.

This is a good solution for now, but it would be nice to add it as a setting to the original plugin.

@thismoon
Copy link
Author

thismoon commented Sep 5, 2024

update: the MaskedLinkPaste plugin is now deleted since its functionality is a discord built in feature now (Vendicated/Vencord@5160f90).
and the feature i suggested was going to get implemented in that plugin. but since the plugin got deleted, the pr was closed.
however automatically adding <> isn't a part of the built in feature. that's why i am going to keep my request open.
i'm not sure how this should be implemented. a part of NoMaskedLinkPaste? a standalone plugin (that could have the extra functionality or putting non masked pasted links in between <>)?
also editing the message with regex (which happens after it's sent to my understanding) wouldn't be a good solution in some cases. what if i have a message with 5 links and i want to unmask one important link to show it's embed? editing the message wouldn't be so convenient. although this is a specific use case it would be nice to have a good solution.

@Vendicated
Copy link
Member

use textreplace

@Vendicated Vendicated closed this as not planned Won't fix, can't repro, duplicate, stale Sep 6, 2024
@Vendicated Vendicated added the rejected (plugin exists) This plugin is already part of Vencord. label Sep 6, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
rejected (plugin exists) This plugin is already part of Vencord.
Projects
None yet
Development

No branches or pull requests

4 participants