Earlier quoted context omitted.
My point is that nothing runs without at least one initial user interaction - which makes a big difference for security. I believe this is even true for Acrobat with default settings, because while you can trigger JavaScript when a document is opened (/OpenAction) Acrobat will ask for permission.
I think I got your point but might have expressed myself badly. The pdf can run js and messes with the display right at opening time, without any warning or ask for permission.
Show HN: Tetris in a PDF
221–230 of 238 posts
Re: Show HN: Tetris in a PDF
#222Earlier quoted context omitted.
Theres a malaysian movie where the main premise is a hacker who uses pdf executions to steal one cent from every persons bank account. Its pretty interesting.
Do you know the name of the movie?
Re: Show HN: Tetris in a PDF
#223You glorious bastard, what a cool project! This is already a contender for most hacker project of the year :-) (below is not serious) I would advise people against using this in production though because it's still missing some critical features. For example: 1. The Javascript stops working when printed to physical paper. The resulting paper just has a static image and the controls no longer work. 2. It doesn't work…
"The Javascript stops working when printed to physical paper. The resulting paper just has a static image and the controls no longer work." -- this comment made my me laugh/choke on my coffee and I have no regrets.
Re: Show HN: Tetris in a PDF
#224You glorious bastard, what a cool project! This is already a contender for most hacker project of the year :-) (below is not serious) I would advise people against using this in production though because it's still missing some critical features. For example: 1. The Javascript stops working when printed to physical paper. The resulting paper just has a static image and the controls no longer work. 2. It doesn't work…
Re: Show HN: Tetris in a PDF
#225I'm very pleased that this did not work in Firefox on Linux Mint. Unfortunately it does work in Vivaldi.
Re: Show HN: Tetris in a PDF
#226This is awesome. Took a bit of prompting but was able to get a semi-working (only in Chrome) Flappy Bird out of Claude in ~10 minutes. Seems like the collision detection needs some work :) https://github.com/baileywjohnson/flapdfy-bird/blob/main/fla...
Re: Show HN: Tetris in a PDF
#227Earlier quoted context omitted.
A tetris PDF could be in a 1 pixel iframe right on this page and you'd never know it. So it doesn't require any user action to download one.
That's why you run NoScript along side with UBO
Re: Show HN: Tetris in a PDF
#228Earlier quoted context omitted.
"The Javascript stops working when printed to physical paper. The resulting paper just has a static image and the controls no longer work." -- this comment made my me laugh/choke on my coffee and I have no regrets.
Can't wait for physical paper with JS support
Re: Show HN: Tetris in a PDF
#229Earlier quoted context omitted.
For Chrome's PDF renderer, the runtime is V8, so we're literally one (hilarious) line of code away from this glorious future existing today: https://pdfium.googlesource.com/pdfium/+/refs/heads/main/fpd... > // Use interpreted JS only to avoid RWX pages in our address space. Also, --jitless implies --no-expose-wasm, which reduce exposure since no PDF should contain web assembly. > return "--jitless";
You could write an LLM in plain JS, right?
Re: Show HN: Tetris in a PDF
#230Earlier quoted context omitted.
Acrobat 9.5 works fine on Linux, if a little slow. This Tetris game makes it crash though.
Oh, thanks, that's good to hear! Edit: only now I see that's also from 2009 with updates into 2013. Do you where one can easily download the latest patched version?