sindresorhus/refined-github

Do you want to work on this issue?

You can request for a bounty in order to promote it!

Disable image auto-links if they point to themselves #4132

cheap-glitch posted onGitHub

<!-- 1. Make sure your requested feature makes sense for Refined GitHub: https://github.com/sindresorhus/refined-github/issues/2960 2. Include a REAL URL where the feature should appear. e.g. Do you want a feature to appear on the main page of a repo? Paste a link to a repo -->

Follow-up of https://github.com/sindresorhus/refined-github/pull/4127#issuecomment-802730145

This would help distinguish useless auto-links from actual, custom links. (The locations of images would still by accessible from the right-click context menu.)

Two examples with auto-linked images (demo screenshots) and purposely-linked images (sponsor logos) :point_down:


Would also love to see this includes replacing camo.githubusercontent.com image links (not image src) on GitHub with image's [data-canonical-src] attribute.

Currently I've rolled a script for myself.

posted by kidonng over 3 years ago

Not a good idea, GitHub does that to avoid tracking. https://stackoverflow.com/a/57862219

May be ok for a local script but not in RG

posted by fregante over 3 years ago

Though said above, I'd like to make it clear: it's to change <a href> not <img src>. The latter can stay using camo.githubusercontent.com.

The point is that knowing where the original image come from can be handy and you don't want to hunt for it in Devtools every time.

I also changed my mind and agree with what you said here, that this feature should only deal with links literally pointing to the same url as images (thus it should not touch blob links. The change I'm proposing above are also included.

posted by kidonng over 3 years ago

Oops I thought I was editing a previous comment

posted by kidonng over 3 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests