Beware of Embedded Tweets can be Easily Faked

Beware of Embedded Tweets can be Easily Faked: Hello, Everyone Today am going to sharing some exciting facts on The “Beware of Embedded Tweets can be Easily Faked”.

You can easily embed tweets in your website by adding a little HTML snippet to your site’s template. The embedded tweets are interactive in the sense that they’ve a follow button, they show live retweet counts, and you also use CSS to change the formatting of tweets.

Now CSS does help you control the tweet’s appearance but you may be surprised to know that it is also possible to change the other elements of an embedded tweet. For instance, you may modify the actual text of the tweet. The favorite & retweet counts can be altered as well. Let me illustrate that with an example:

This is the original tweet:

This is the same tweet, but altered with JavaScript:

Notice any difference? Well, there are quite a few.

The altered tweet uses a different font family, there’s minimal Twitter branding, the favorite & retweet numbers are made up, some extra words were appended to the tweet itself and the date has been replaced with custom text. And it is not a fake screenshot.

After the tweet is rendered, you can use standard DOM methods to change the various inner elements based on class names. For instance, you can change the innerHTML property of the element with the Tweet-text class to modify the tweet text. Similarly, if you set the display property of class FollowButton to none, the follow button is hidden.

Read Also  Google Play Movies offered heavy discounts ahead of Christmas

Fake tweets are known to have crashed markets so the next time you come across an embedded tweet with unbelievable retweets or favorites, it may be a good idea to verify the numbers.

These are some “Beware of Embedded Tweets can be Easily Faked“. If you have any query and question about the article feel free to comment on the down below.

For the latest Health news, follow Knowledge Fact on TwitterFacebook, and subscribe to our YouTube channel.

Be the first to comment

Leave a Reply

Your email address will not be published.


*