It would be useful if the readme.md text displayed as the file path on readme profile pages linked to view it directly. Applies to pages which match this regex: https:\/\/github.com\/.+\/$ and contain the #js-pjax-container > div.container-xl.px-3.px-md-4.px-lg-5 > div > div.flex-shrink-0.col-12.col-md-9.mb-4.mb-md-0 > div:nth-child(2) > div > div.Box.mt-4 element.
Linked to what? The user name right next to it already points to the repository
I always go to instinctively click on the readme.md text which should link to https://github.com/<username>/<username>/blob/master/readme.md
Me too, but the username link next to it links to https://github.com/sindresorhus/sindresorhus.
https://github.com/sindresorhus/sindresorhus/blob/master/readme.md still displays the rendered markdown so there's little difference
This is a 3-line feature, so it can be implemented as a GitHub shortcoming fix
const link = select('.user-profile-nav + div .octicon-smiley + a');
while (link?.nextSibling) {
link.append(link.nextSibling)
}
I wrote a really simple user script, which just appends #readme to the repository link. I don't think it is necessary to add a separate link just for the README.