• madcaesar@lemmy.world
    link
    fedilink
    English
    arrow-up
    127
    ·
    4 days ago

    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
    85
    arrow-down
    1
    ·
    4 days ago

    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.

  • Arthur Besse@lemmy.ml
    link
    fedilink
    English
    arrow-up
    13
    ·
    edit-2
    3 days ago

    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
    ·
    3 days ago

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

    Does it have any use? Like at all?

  • LostXOR@fedia.io
    link
    fedilink
    arrow-up
    83
    ·
    4 days ago

    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
        83
        arrow-down
        2
        ·
        4 days ago

        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
          7
          ·
          3 days ago

          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
                2
                ·
                3 days ago

                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
                  ·
                  2 days ago

                  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
          4 days ago

          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
            ·
            4 days ago

            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
        ·
        4 days ago

        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
      ·
      4 days ago

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

      • LostXOR@fedia.io
        link
        fedilink
        arrow-up
        20
        ·
        4 days ago

        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).

      • undefined@lemmy.hogru.ch
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 days ago

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

  • yetAnotherUser@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    64
    ·
    4 days ago
    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
      ·
      4 days ago

      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
      ·
      4 days ago

      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
        ·
        4 days ago

        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
        ·
        4 days ago

        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
      ·
      4 days ago

      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.

  • TriflingToad@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    42
    ·
    edit-2
    3 days ago

    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.

  • cm0002@lemmy.world
    link
    fedilink
    English
    arrow-up
    31
    ·
    4 days ago

    There’s a special place in hell for whoever started that blocking paste shit, right next to the popup ad guy.

    Also, does anyone know of an Android Xposed/Magisk Module that does the same thing?

  • villainy@lemmy.world
    link
    fedilink
    English
    arrow-up
    26
    ·
    4 days ago

    Now give me a “Don’t Fuck With Back” extension.

    I’m guessing it’s all from the same ad network but I’ve noticed an uptick in the number of sites hijacking the back button to show more ads. Even the Associated Press site has been doing it and it drives me crazy.

    • ayyy@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      19
      ·
      4 days ago

      California DMV requires a bank routing and account number instead of a credit card, but doesn’t allow you to copy and paste it from your bank website. You have to type out the 20+ digits and if you get any of them wrong a cop pulls you over and potentially murders you.

  • Sterile_Technique@lemmy.world
    link
    fedilink
    English
    arrow-up
    18
    ·
    4 days ago

    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
      ·
      4 days ago

      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
        ·
        3 days ago

        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
      ·
      3 days ago

      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
      ·
      3 days ago

      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
        ·
        3 days ago

        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.

  • JakenVeina@lemm.ee
    link
    fedilink
    English
    arrow-up
    4
    ·
    3 days ago

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