this post was submitted on 19 Jul 2023
742 points (98.2% liked)
Asklemmy
43856 readers
1784 users here now
A loosely moderated place to ask open-ended questions
If your post meets the following criteria, it's welcome here!
- Open-ended question
- Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
- Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
- Not ad nauseam inducing: please make sure it is a question that would be new to most members
- An actual topic of discussion
Looking for support?
Looking for a community?
- Lemmyverse: community search
- sub.rehab: maps old subreddits to fediverse options, marks official as such
- !lemmy411@lemmy.ca: a community for finding communities
~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Do NOT do this unless you absolutely know what you are doing and it will break legitimate uses of clipboard on websites. Use it one time and revert immediately.
Yeah, that seems like it would be a problem for a bunch of sites. Anything with rich text like Google Docs or somewhere you paste images to upload them seems like it could be broken by disabling all clipboard events.
I am curious, what will it break?
It prevents any website being able to run intercepts on pasting. This is good when they're using it to just prevent you from doing it for no real reason but there are many situations where you don't want a user to be able to arbitrarily just drop text into a text field.
The big one is 2fa. A lot of the time you might need to enter a five digit code and each number may need to be entered into a particular box if you just click in the first box and press paste after copying the code from an email then it'll paste the entire contents into that one box. You don't want that you want some code to automatically paste each letter into each subsequent box, that requires you intercept the original paste command.
One big use is the ability to copy and paste images, like imgur or (my use case) Whatsapp Web. I've heard Google Docs acts poorly as well.