zedeus / nitter

Alternative Twitter front-end
https://nitter.net
GNU Affero General Public License v3.0
10.05k stars 533 forks source link

Add oEmbed Support for Tweet Embeds and Previews #696

Open cguess opened 2 years ago

cguess commented 2 years ago

oEmbed is an open standard for embedding content in other locations that is described here https://oembed.com.

Primarily this is used to embed content within other web pages, such as news articles, but it's also used to display previews in messaging apps such as Signal. This would be very useful as it allows people to post links to a tweet and see what the gist of it is without having to click through.

It would also allow people to use Nitter to embed non-tracking links into articles etc.

ForumVoorAnarchisme commented 2 years ago

This would be a great feature +1. It will stop Twitter from tracking people on other websites.

sundayLOOKplants commented 1 year ago

Maybe it'd make sense to use functionality / code from fxtwitter @FixTweet.

awebeer256 commented 1 year ago

In the meantime, if Nitter relaxes its CORS settings, we could create an extension or userscript that embeds stuff by just fetching the regular page and parsing it. (If this is possible now, then someone please tell me how. You can't load the page in an <iframe>, nor fetch() or XMLHttpRequest it.)