stevengharms.com

Sententiae viri ex temporibus duobus

Misuse of JavaScript Annoys Me

IMDB’s image provider has implemented the classic way of preventing image stealing: return false for the right-click or contextMenu event.

This annoys me so much.

Here, try right-clicking (or any clicking) on this link.

Ohhhh man, aren’t I clever and devious. I’ve told that link, via the evil JavaScript pseudo-protocol definition in the HTML <a> element to ‘trap’ your click events and do nothing with them.

And it’s so trivially easy to subvert, it just irritates me that this qualifies as security and / or is demanded by clients. A demonstration should suffice. In these examples, IMDB tries to prevent me from grabbing images out of their pictures tool. Sigh. Must it be so?

Or…

So, please, stop. Just stop. Because you don’t stop the slightly-enlightened from getting the goodies:

madeline_kahn

Comments