After Firefox mobile pasted my previous clipboard contents into the textbox in step 2, I thought "man, that's damn good clipboard phishing and you got this audience real good ;)"
A clever way to get a Twitter follower :) You win!<p>BTW we use a similar mechanism at websktop.com (online bookmarks manager), when you copy icons:<p>- if pasted into our app, all bookmark properties are preserved (text/html + "data- " attribute)<p>- if pasted into web app like Slack, you get a nice HTML-formatted unordered list of URLs with titles (text/html)<p>- if pasted into text editor, you get a simple bullet-point list (text/plain)<p>Unfortunately handling other MIME types gets troublesome.
Still, you can do a lot of cool stuff with just text/plain & text/html.
Now way I'm opening a new Google Doc. I'm just too paranoid!<p>I tried pasting the text in notepad anyway. :)<p>Also, in the last page, the emoji in the middle looks like a square with a question mark in my (old) computer.
I guess this is supposed to be some Jabbascript trickery, but for me, a 'paste' action in the second text field just yields... blankness...<p>Which is a pretty good trick, I have to admit, exposing the nothingness of life. Kudos!
Hi HN! This weekend, I made a magic trick that you can try out in your browser.<p>Works best on desktop. Also, for those who don't like it, Google Docs not required--JIRA comments or most other WYSIWYG editors will also work.<p>Hope you enjoy it!
Very fun!
If you wanted to add one more level of misdirection, the first cards could be textarea that you have to select with your mouse and hit ctrl-c to copy ;-)<p>This would hide a bit of the method for the twitter reveal.<p>-Seth<p>(I also make online magic tricks magicseth.com/animal )
I click on a card, hit "paste" in the window, and get text I've previously copied.<p>I'm guessing it's not working ... it's certainly not doing what I expect, even at that stage.
So obviously just as we click on the "new Google Docs"-link the JS-function<p>onMouseDown: function() {li(si({withAddtlText: !0}), "<a href="https://twitter.com/cyrusroshan" rel="nofollow">https://twitter.com/cyrusroshan</a>")}<p>gets called, which overwrites the clipboard.<p>I didn't spend any time looking at the obfuscated functions li and si, but why does this have to be in a 14,000 line Javascript?
Isn't writing something to the clipboard a regular html function?
<a href="https://www.w3schools.com/howto/howto_js_copy_clipboard.asp" rel="nofollow">https://www.w3schools.com/howto/howto_js_copy_clipboard.asp</a>
I tried it. Even though a magician never shares (excepting Penn & Teller) want an explanation though..<p>It seems to be pasting different things all over the place. I'm not sure how the "google doc card" past to just pasting a url thing happened..
Is it working for you with firefox?<p>If not, maybe you should add a note that firefox is not working, so the ~third(?) of your visitors won't get confused, and you won't just waste their time for nothing.
Before I pasted my clipboard, I checked what I was gonna paste, as this magic trick could be something to steal you clipboard..<p>It's funny.. I pasted it in a new Pages document.
So I tried this on my phone (Android - Bromite browser) and it's not working.
But from the comments, I'm guessing that multiple items are copied to the clipboard and one of them is the author's twitter link? :D<p>I'll try this on my PC to see what the actual trick is. But also looks like that some people have reported that it doesn't work on Firefox.<p>edit: Typo
Good trick, had me fooled and feeling very paranoid! :D<p>I appreciate that you took the time to explain how it works in another comment in this thread.
Underwhelming for me.<p>On my iPhone I opened Google Docs and started a new document, per the instructions, and pasted. It pasted a link to their Twitter.<p>Maybe Desktop works better?
Is the magic trick that after clicking the card to copy, when I go to paste it has magically disappeared? Because I dont get anything.<p>Edit: copied manually, dont have a Google account, so can't go further.