Hacker News new | past | comments | ask | show | jobs | submit login

I genuinely dont understand the reason behind hijacking right-click (long press on phone). I'm using a slow internet, and I'm used to open multiple tabs so I can only wait for one and then go through all of them. So I'm eager to understand if this is done to stop people from copying from the site or there's another reason behind it.



I don't think right click is disabled? It's just that a bunch of the "links" aren't semantic <a> tags so you can't open them in a new window. (they're just <div> tags with onclick handlers)

I think this happens often in single-page-apps just because developer don't care or don't think about this use case. It's frustratingly common.

For example, Apple's online store does it too: https://www.apple.com/shop/accessories/all/cases-protection No way to right click the various items and open a bunch of tabs.


not using semantic HTML for links is a bigger sin than hijacking the right-click IMO. Maybe even worse than scroll-jacking


Works if you click the name of the case. I'm on Mac Safari FWIW.

Doesn't work on the image because they want that to click through the carousel. I think they are wrong (a regular clic can do that, plus they have navigation arrows).

But at least you can shop in the normal fashion, if you click on the text


>So I'm eager to understand if this is done to stop people from copying from the site

Disabling right-click for this purpose is like a lock on the front door to your house. It only keeps the honest person at bay. If I want to see the details of the site, there's no stopping DevTools. Hiding images div backgrounds or under click blocking divs is just a mere inconvenience. If the browser is displaying it, it can be gotten to in DevTools


Tricks like this scream "low quality" to me and I often just close the window because the site is hard to navigate the way I want to.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: