News for hackers. Stuff that matters.
Re:What's so hard about PDF text extraction? by Santosh83 on Tuesday March 03, 2020 @07:40AM (#22473943)
Another site that breaks the browser's back navigation. Why do so many sites do this? Do they imagine they retain user attention for longer if they break navigation? It's pretty trivial to long-press the back button or just close the tab and not come back again to your site...
Re:What's so hard about PDF text extraction? by maest on Tuesday March 03, 2020 @08:41AM (#22474327)
Hi, author here.

We've taken no intentional action to change the way the back button works - in fact, I too hate it when websites do that.

Can you PM me with some details about what you're seeing? I'm having issues reporducing it with my particular setup.

Re:What's so hard about PDF text extraction? by Santosh83 on Tuesday March 03, 2020 @09:06AM (#22474494)
Good to know! I don't believe PM is possible on hacker news so I hope you don't mind that I describe some details right here?

My browser is the latest (v73.0.1) Firefox on the latest build of Windows10. I confirmed the issue with all addons disbled so it is not an addon issue. I think I know what may be responsbile. When initially I load the page the back button works as intended for about a second. After that delay the page seems to load some resources from static.parastorage.com and www.mymobileapp.online. Once those resources are finished loading the back button does not navigate back to the HN article on the first press. Have to press once more. So I presume a script from one of those domains is responsible. Hope this helps!

Re:What's so hard about PDF text extraction? by LorenPechtel on Tuesday March 03, 2020 @01:28PM (#22477302)
Broken back buttons are often due to a site where a placeholder loads and it turns around and loads the real thing. Back takes you to the placeholder which promptly takes you back where you were.

There are sites that explicitly mess with the back button but I haven't seen one in ages.

Re:What's so hard about PDF text extraction? by amelius on Tuesday March 03, 2020 @07:43AM (#22473959)
This was done to impede automatic HTML text extraction :)
Re:What's so hard about PDF text extraction? by hippish on Tuesday March 03, 2020 @08:48AM (#22474372)
I'm curious, how would fiddling with navigation impede text extraction? The site renders perfectly fine without javascript, and the markup looks straight forward enough
Re:What's so hard about PDF text extraction? by bil7 on Tuesday March 03, 2020 @07:48AM (#22473979)
I don't seem to have that issue