Skip to content

shorten-links processes way more links than required #5889

@fregante

Description

@fregante

Description

As the selector suggests, this feature is being applied to all the links on every page:

observe(`a[href]:not(.${linkifiedURLClass})`, {

We should look into the feature’s git history to see where this feature is expected to work exactly (e.g. only on markdown, likely) and make the selector more specific, perhaps even avoiding known-misses like these 2 links:

Natively shortened

#5888

Natively extended

How to replicate the issue

  1. Visit https://github.com/refined-github/refined-github/issues
  2. I don't think any links would ever need to be shortened on this page, but the feature is run on 258 links

Extension version

any

Browser(s) used

any

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp wantedsmallIssues that new contributors can pick up

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions