We need libre paste, people. - eviltoast
  • madcaesar@lemmy.world
    link
    fedilink
    English
    arrow-up
    129
    ·
    7 天前

    OMFG what asshole came up with the idea of blocking paste for fields? Whoever you are, get FUCKED

  • Ech@lemm.ee
    link
    fedilink
    English
    arrow-up
    87
    arrow-down
    1
    ·
    7 天前

    Can we get the same thing for when they hijack the back button to send you to some other promotional bs? I can’t stand that.

  • TriflingToad@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    42
    ·
    edit-2
    7 天前

    Don’t fuck with copy too, my schools e-textbook thing won’t let you copy text when quoting it for an essay.

    Edit: I appreciate the help but this is on a school laptop, we can’t install anything nor open inspect element. Also I already found a workaround by cntrl+c-ing before I lift the left click and it goes to highlight mode.

  • Arthur Besse@lemmy.ml
    link
    fedilink
    English
    arrow-up
    13
    ·
    edit-2
    6 天前

    This add-on is not actively monitored for security by Mozilla. Make sure you trust it before installing.

    It’s pretty lame that Mozilla’s addons site still doesn’t show source code which is guaranteed to correspond to the binary you’re installing.

    Anyway, I went and read the source on github (which probably corresponds to the extension one can install) and while this part seems very straightforward this other part exceeds my understanding 😂 (i’m not suggesting it is malicious, i just don’t understand everything it is doing there or why it is necessary).

    What I was really looking at the source for was to see if they were simulating keystrokes (and inserting plausible delays between them) to defeat a more determined anti-pasting adversary, or if they were simply suppressing the hostile website’s onPaste handler so that pastes can happen as normal. And: they are doing the latter.

    I wonder if any paste-blocking websites detect and defeat this extension yet?

  • Honytawk@lemmy.zip
    link
    fedilink
    English
    arrow-up
    10
    ·
    6 天前

    Bigger question is, why do browsers have this feature in the first place?

    Does it have any use? Like at all?

  • Sterile_Technique@lemmy.world
    link
    fedilink
    English
    arrow-up
    18
    ·
    7 天前

    Does this work with any text on page (vs just inputs)?

    Currently dealing with several digital textbooks - that I fucking purchased - from Elsevier that disable copy functions, which makes pulling chunks of text from a page to take notes a pain in the ass. I’ve resorted to just using the snipit tool to capture tiny screenshots of the text I want, but that’s ofc significantly less ideal than just highlighting text and hitting Ctrl+C.

    • hactar42@lemmy.ml
      link
      fedilink
      English
      arrow-up
      21
      ·
      7 天前

      There is a Firefox extension called Absolute Enable Right Click & Copy that works great for a lot sites that block you from being able to copy.

      • Sterile_Technique@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        7 天前

        Okay that actually sounds pretty amazing… but I can’t get it to work. Win+shift+T seems to just cycle through the icons pinned in my taskbar. I’ll do some googling to see if I can figure out why that is, but if you know a quick fix, then yes please!!

    • stom@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      2
      ·
      7 天前

      ShareX has an OCR feature. It’s a tool for taking screenshots and recordings, with support for configurable workflows which can do all sorts, including extract text from the snipped area and copy it to the clipboard.

    • Whats_your_reasoning@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 天前

      I just thought of a possible bypass. Maybe a phone’s “scan document” function can help with that? Provided that the text is clear, you may be able to scan a webpage and save it as a scanned document. Then open the doc on your phone (or other device), and you should be able to highlight and copy the scanned text.

      Okay, maybe not. I tested it with this very page and although the copied text got the gist, I still would’ve had to go back and edit things. But eh, YMMV. It could be a valid work-around for somebody, just with different text or using a different device.

      • Sterile_Technique@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        7 天前

        Usually I just leave them as little image blocks of text cuz ain’t nobody got time for dat. When I actually do want to fully convert it (usually only bother if I’m sending something out to the class), then I’ll save the whole doc as a PDF and then run it through an optical character recognition service like this one. There are ways, they just suck when a feature like copy exists.

  • lemmydividebyzero@reddthat.com
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    7 天前

    I had used a website that changed the max length of passwords, but ignored, that existing ones might already have been longer… I overcame the client side validation, but the server side validated it, too…

    • Mrfiddles@feddit.nl
      link
      fedilink
      English
      arrow-up
      6
      ·
      7 天前

      Good that the backend validated it, but why in god’s name would you ever lower the maximum password length?!?

  • JakenVeina@lemm.ee
    link
    fedilink
    English
    arrow-up
    4
    ·
    6 天前

    Can confirm. Use this one myself. Because of course my bank considers pasting into the password field to be a security risk.

  • Maggoty@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    3
    ·
    edit-2
    7 天前

    Just not allowing the clipboard is a legitimate security measure though. A lot of apps can read that memory space, so it’s kind of a security black hole.l

  • LostXOR@fedia.io
    link
    fedilink
    arrow-up
    84
    ·
    7 天前

    I ran into this just the other day, a site wouldn’t let me paste my password into the “confirm password” field when signing up. Had to resort to editing the HTML properties because there’s no way I’m manually typing in my long-ass randomly generated password.

      • herrvogel@lemmy.world
        link
        fedilink
        English
        arrow-up
        86
        arrow-down
        2
        ·
        7 天前

        I’ve seen password managers fail to detect password fields because the frontend devs thought whatever stupid piece of React crap they vomited from their keyboards was better than using standard html fields for their intended purpose. It’s not very common, but it happens. Credit card fields are also a big mess for the same reason. Half the time bitwarden’s best guess at auto filling those results in some absolute soup that makes no sense.

        I’d also like to take this opportunity to send my warmest, most sincerest fuck yous to all the UX designers who think it’s a good idea to fuck with navigation. Don’t prevent me from opening shit in a new tab. Don’t just scroll the page up to the previous h1 when I try to go back. Who the hell do you think you are?

        • undefined@lemmy.hogru.ch
          link
          fedilink
          English
          arrow-up
          8
          ·
          7 天前

          I’m a developer that doesn’t fuck with the fields! ✨ I can’t stand JavaScript-based validation either, I use HTML attributes for basic pre-submit validation then do the actual validation on the backend.

          I can’t stand the fucked up forms either.

              • tomcatt360@lemmy.zip
                link
                fedilink
                English
                arrow-up
                3
                ·
                6 天前

                Yeah, it wasn’t a good way to convey what I meant. I meant to say that I approve of what undefined@lemmy.hogru.ch is doing, but that I didn’t see (at the time) how what they were saying contributed to our discussion of our shared dislike of bad UX. At the time, it felt self aggrandizing. But I see that my pre-work self was off the mark. My apologies.

                • undefined@lemmy.hogru.ch
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  ·
                  6 天前

                  Honestly I was irritated at first, but I’ve been known to be a jerk anyway. It’s all good; honestly going back to my comment I was thinking to myself “well good for you” too.

        • slazer2au@lemmy.world
          link
          fedilink
          English
          arrow-up
          3
          ·
          edit-2
          7 天前

          Auto type doesn’t rely on password fields classification. Auto fill does

          In KeypassXC you click on the field where you want the password to be entered, then click into the password manager and do auto type.
          KeypassXC will then minimise and type the password for you.

          I do this a lot when replacing 20+ character passwords in remote desktop sessions.

          • BluesF@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            7 天前

            You just gave me a hideous flashback to the bitlocker carnage a while ago, and having to type in what felt like an endless stream of characters that some poor sod in IT was reading me over the phone, probably for the 100th time that day.

      • LostXOR@fedia.io
        link
        fedilink
        arrow-up
        4
        ·
        7 天前

        It does, but (as far as I know) not for putting a newly generated password into a signup field.

    • cm0002@lemmy.world
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      4
      ·
      7 天前

      Even with CTRL+V? 99% of the time when I encounter this they only block right click, but CTRL+V will work for…reasons

      • undefined@lemmy.hogru.ch
        link
        fedilink
        English
        arrow-up
        1
        ·
        6 天前

        On macOS it’s the opposite. Seems ⌘+V is blocked but Safari’s context menu apparently ignores JavaScript overriding it.

      • LostXOR@fedia.io
        link
        fedilink
        arrow-up
        20
        ·
        7 天前

        Yep, even Ctrl+V didn’t work. I guess I shouldn’t be surprised considering it’s a government site (the signup for federal student aid).

  • yetAnotherUser@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    66
    ·
    7 天前
    1. You can change that setting in your about:config by setting dom.event.clipboardevents.enabled to false.
    2. This sadly prevents pasting (T)OTPs for websites that choose to have 6 separate input fields. You have to enter these codes manually.
    • Xylight@lemm.ee
      link
      fedilink
      English
      arrow-up
      19
      ·
      7 天前

      why the hell do websites even have those 6 separate input fields? you can just have one and style it differently

    • naeap@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      18
      ·
      7 天前

      Do you know if this add-on does pretty much the same thing and with that will also have the regression regarding (T)OTP input fields?

      • henfredemars@infosec.pub
        link
        fedilink
        English
        arrow-up
        14
        ·
        7 天前

        I have a partial answer. The add-on has different modes for different degrees of bypassing. I’m sure the complete bypass would break it, but not sure about intermediate options.

      • psivchaz@reddthat.com
        link
        fedilink
        English
        arrow-up
        9
        ·
        7 天前

        I can confirm that it has not appeared to affect the functionality of those sites for me. Although… There are some sites with multiple fields that don’t work and some that do, I’ve just assumed that the sites which don’t work were down to poor code.

    • ilinamorato@lemmy.world
      link
      fedilink
      English
      arrow-up
      9
      ·
      7 天前

      Disabling clipboardevents entirely disables the clipboard API, meaning that single-click copy operations won’t work.

      Maybe you’re fine with that, but it’s worth noting.