News for hackers. Stuff that matters.
Re:Show HN: I Made a Magic Trick by ColinWright on Monday April 25, 2022 @12:33PM (#31157221)
I click on a card, hit "paste" in the window, and get text I've previously copied.

I'm guessing it's not working ... it's certainly not doing what I expect, even at that stage.

Re:Show HN: I Made a Magic Trick by scintill76 on Monday April 25, 2022 @01:34PM (#31158117)
Demonstrating how easy it is to get someone to disclose their clipboard contents to any web page that asks? ;) Not working for me either, but it was surprising to see my previous copied text.
Re:Show HN: I Made a Magic Trick by croshan on Monday April 25, 2022 @12:37PM (#31157282)
Hmm. Guessing you're trying it on Android? It's relying on the navigator.clipboard API, and generally the experience is not good on mobile
Re:Show HN: I Made a Magic Trick by echeese on Monday April 25, 2022 @01:12PM (#31157828)
I have the same issue, Firefox 99 on Windows
Re:Show HN: I Made a Magic Trick by ColinWright on Monday April 25, 2022 @12:43PM (#31157392)
Nope

Firefox 99.0 (64-bit) for Ubuntu canonical - 1.0

    $ lsb_release -d
    Description: Ubuntu 20.04.4 LTS

    $ cat /etc/debian_version 
    bullseye/sid
Re:Show HN: I Made a Magic Trick by aidenn0 on Monday April 25, 2022 @01:03PM (#31157703)
I'm having the same issue on Firefox 99 on Linux (NixOS).
Re:Show HN: I Made a Magic Trick by croshan on Monday April 25, 2022 @01:11PM (#31157806)
Agh. Turns out Firefox doesn't support it, my bad! Safari and Chrome work fine, but I'm guessing that's not an option for many Linux users. Sorry!
Re:Show HN: I Made a Magic Trick by daveloyall on Monday April 25, 2022 @01:37PM (#31158159)
Firefox 101.0a1 (2022-04-22) (64-bit) says:

> Uncaught (in promise) ReferenceError: ClipboardItem is not defined

Re:Show HN: I Made a Magic Trick by notRobot on Monday April 25, 2022 @02:05PM (#31158523)
Same, doesn't work for me on both Firefox on Desktop (Windows) and Android.
Re:Show HN: I Made a Magic Trick by bally0241 on Monday April 25, 2022 @01:55PM (#31158396)
Same...was just browsing stack overflow for positive mod, so I got

"return (i % n + n) % n;"

heh

Re:Show HN: I Made a Magic Trick by motoboi on Monday April 25, 2022 @02:06PM (#31158526)
Didnt work for me. Firefox on MacOS