TetraTsunami / linklooker

Previews links using ChatGPT when you hover over them
3 stars 0 forks source link

Use README for GitHub/GitLab links #10

Open LostBitset opened 3 weeks ago

LostBitset commented 3 weeks ago

When using LinkLooker on a GitHub link, the AI usually just says weird stuff about how to search.

linklooker github weirdness png(1)

Given that it's already standard to explain your project in a README.md file, I think it would make a lot of sense to have a special case for links to GitHub repos, where the AI is asked to summarize only the README file.

It would probably be a good idea to do the same thing with the GitLab, but the thing is that you can self-host GitLab under any URL. So instead of using the URL, we'll have to look for:

<meta content="GitLab" property="og:site_name">
TetraTsunami commented 3 weeks ago
firefox_wl6Gkn24dl

I've got it working with GitHub links. It should be simple enough to extend this foundation to GitLab and other types of sites (Twitter?), but I'm going to take a break for now.