Hacker News new | ask | show | jobs
by blendergeek 1533 days ago
I see so many people here arguing that by embedding javascript directly from Twitter, you are accepting whatever they choose to make that javascript do. While that is true to an extent, Twitter has provided documentation for this javascript that says that if the Tweet gets deleted, the javascript will simply stop styling your quote of the tweet that you have on your website.

By changing the behavior of the javascript, without even updating the documentation, Twitter has broken every rule of being a good distributor of third-party code. In a similar vein, any third party code could at any time do any number of malicious things. Just because I didn't pay Twitter for the privilege of running their code and just because I embedded their code in my website does not make it okay for them to start distributing malware to modify my website to their liking.

There are lots of other malicious things Twitter could have the javascript do. Twitter could start showing ads before and after all quoted tweets. This would also conflict with the documentation and would be malicious.

1 comments

"Twitter has broken every rule of being a good distributor of third-party code." Yes, and you've broken every rule of common sense by thinking that their goals are your goals and they have any interest in being a 'good' anything besides profitable. You are embedding code from a a money making bot. To expect them to host deleted tweets forever as some public record is absurd.
Okay, but they’re not “hosting” anything (other than the script). They could take down the server with that script on it and the markup would show up fine. If Twitter went out of business tomorrow, all these tweets would magically show up again. But no, they’re going out of their way to break your webpage. That is absurd.
You are using content from twitter on your page and then using a script from twitter to format the content, right? You've seeded control on how it's displayed. They changed their mind on how to format the content. You are responsible for your page no one else.
This is kinda like asking someone who just got robbed “Why did you leave your door open? You’re responsible for your home no one else.” That’s true, but it’s still not okay to rob people!