sindresorhus/refined-github

Add hover-cards for popular website-links in comments #2565

staabm posted onGitHub

could refined github add popup/hover-cards for popular urls, like e.g. twitter

expected result: a url like https://twitter.com/markusstaab/status/1197832308470034433 when used in e.g. a comment should open a card-overlay on mouse-over. the card-overlay could/should contain the schema.org defined properties like og:title, og:image, og:description etc. like e.g. popular chat systems do (slack, mattermost)

that way people can get a impression on what the actual link will provide/contain without leaving github.com

example how mattermost renders a similar feature: grafik

this feature could be used for several services (as long as the og:* schema is supported by the website) but should not open hover-cards for all links (for security reasons) but just whitelisted domains.

examples I can think of righw now are

  • stackoverflow
  • medium

This seems something that should exist as it's own extension and apply to multiple websites.

posted by busches over 5 years ago

I totally thought about the same thing. This is a big feature and it would have to include an open graph parser and wide permissions to fetch each page.

posted by fregante over 5 years ago

Interesting feature nonetheless. Perhaps suggest it to https://github.com/sindresorhus/module-requests

posted by fregante over 5 years ago

Fund this Issue

$0.00
Funded

Pull requests