Skip to content

linkify-code, linkify-symbolic-links: all URLs are overlapping at the top #9136

Closed

Description

@GalaxySnail

Description

linkify-code disabled:

Image

linkify-code enabled:

Image

How to replicate the issue + URL

Just enable the linkify-code feature.

https://github.com/refined-github/refined-github/blob/main/source/features/linkify-code.tsx

Extension version

26.3.21

Browser(s) used

chromium, firefox

Token ⚠️

  • I set a token in the options page. I understand that some features require a token to work.

Activity

  1. SunsetTechuila commented on Mar 29, 2026

    @SunsetTechuila
    Contributor

    Extension version

    26.3.21

    Are you sure you're not using a dev version?

  2. GalaxySnail commented on Mar 29, 2026

    @GalaxySnail
    Author

    Are you sure you're not using a dev version?

    I'm sure. I opened a new profile and installed refined-github from the extension store, and successfully reproduced this issue.

  3. SunsetTechuila commented on Mar 29, 2026

    @SunsetTechuila
    Contributor

    chromium, firefox

    What are the versions?

  4. GalaxySnail commented on Mar 29, 2026

    @GalaxySnail
    Author

    chromium, firefox

    What are the versions?

    chromium 125.0.6422.142 and firefox 148.0.

    (I know my chromium version is pretty old, but firefox should be new enough.)

  5. SunsetTechuila commented on Mar 29, 2026

    @SunsetTechuila
    Contributor

    Nvm, I'm able to reproduce, but the steps are different:

    1. Open https://github.com/refined-github/refined-github/blob/main/source/features/linkify-code.tsx
    2. Click linkifyURLs
    3. Go to the definition from the sidebar
    4. Scroll to the top
    5. (Optionally) Go back
  6. SunsetTechuila commented on Mar 29, 2026

    @SunsetTechuila
    Contributor

    Or you can just switch between the files:

    Image

    I'm pretty sure that wasn't a thing when #8989 was opened

  7. SunsetTechuila commented on Mar 29, 2026

    @SunsetTechuila
    Contributor

    And there is no element to which we can append links so they will be be automatically removed. Great

  8. fregante commented on Mar 29, 2026

    @fregante
    Member

    I think there's at least one feature where we listen to react/URL events to remove elements as necessary.

  9. auscompgeek commented on Mar 30, 2026

    @auscompgeek

    I can also reproduce in Firefox (149 and 150) with RGH 26.3.21 by simply opening https://github.com/openai/openai-openapi/blob/manual_spec/openapi.yaml

    (navigation not necessary, opening in a new tab will also trigger the bug there)

  10. SunsetTechuila commented on Mar 30, 2026

    @SunsetTechuila
    Contributor

    Anchoring doesn't work in Firefox if one of the anchor's ancestors has position: absolute and the anchored element isn't in the same DOM tree.

    Also the check is invalid:

    if (!CSS.supports('anchor-name: --test')) {

    It should be:

    !CSS.supports('anchor-name', '--test')
  11. SunsetTechuila commented on Mar 30, 2026

    @SunsetTechuila
    Contributor

    The feature has issues with virtualized (>3500 LOC) code blobs in any browser:

    1. Go to https://github.com/openai/openai-openapi/blob/manual_spec/openapi.yaml
    2. Scroll to the 400th line
    3. Scroll back to top
    Image
  12. added
    disabled via hotfix
    on Mar 30, 2026
  13. SunsetTechuila commented on Mar 31, 2026

    @SunsetTechuila
    Contributor

    Same issue with history navigation, jeez

  14. fregante commented on Mar 31, 2026

    @fregante
    Member

    We might have to anchor and append to the specific piece of linkified code.

    In my first attempt a few years ago I was able to surface the original React DOM so that it became clickable. The issue then was that it required breaking some text nodes and syntax highlighting elements, so it was a bit risky for React.

    This should mean that you might be able to place the overlays in these nodes and still surface them over the invisible textarea

  15. changed the title [-]`linkify-code`: all URLs are overlapping at the top[/-] [+]`linkify-code`, `linkify-symbolic-links`: all URLs are overlapping at the top[/+] on Apr 22, 2026
  16. fregante commented on May 11, 2026

    @fregante
    Member
  17. fregante commented on Jul 15, 2026

    @fregante
    Member

    What I can do now is revert #8878 so at least we get the feature working on non-React views (basically just markdown code blocks at this point). PR welcome

  18. github-actions commented on Jul 31, 2026

    @github-actions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedbugdisabled via hotfix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions