sindresorhus / refined-twitter

Browser extension that simplifies the Twitter interface and adds useful features
MIT License
1.31k stars 89 forks source link

Remove cards from links from code blocks #110

Closed filipekiss closed 3 years ago

filipekiss commented 6 years ago

The links rendered from code blocks should be detected and removed from tweet cards.

Basically turn this: image

Into this: image

jorgegonzalez commented 6 years ago

I'll try picking this up soon.

jorgegonzalez commented 6 years ago

It might be an edge case, but do we also want to keep link cards in situations when there are links in a tweet that also happens to have a code block?

image

filipekiss commented 6 years ago

Yeah, that's actually the main concern. My idea was to detect links that come from inside the code blocks and remove the related cards. If there are links outside the code block, keep'em.

sindresorhus commented 3 years ago

Closing as this extension is now deprecated: https://github.com/sindresorhus/refined-twitter/commit/8dd9df749d3a4e82c95b2bd6628c8d65f0f72e6c