refined-github
refined-github copied to clipboard
`shorten-links` doesn't (always) apply to links affected by `sort-conversations-by-update-time`
Description
Depending on which feature gets to it first, shorten-link may skip a link. Example problematic comment:
Blah blah https://github.com/refined-github/yolo/issues and blah.
This works
-
shorten-linkfinds it and shortens itstext-content -
sort-conversations-by-update-timefinds it and changes itshref
Screenshot: 
This doesn't work
-
sort-conversations-by-update-timefinds it and changes itshref -
shorten-linkfinds it but thetext-contentno longer matches thehref
Screenshot: 
Possible solutions
- Detect and exclude this specific query (hard ⚠️ )
- Have
sort-conversations-by-update-timesave the original link in another attribute, so thatshorten-linkcan use that for the comparison instead of.href✅ - Ensure
sort-conversations-by-update-timealways runs aftershorten-link(oof ⚠️ )
How to replicate the issue
Live example:
Blah blah https://github.com/refined-github/yolo/issues and blah.
Extension version
22.8.1
Browser(s) used
Chrome
Note: This applies to at least 2 features
-
comments-time-machine-links -
sort-conversations-by-update-time