Skip to content

hide-user-forks missing from some links #6464

Closed

Description

@kidonng

Description

Both missing in profile nav and profile menu with "Global navigation updates":

image


image

How to replicate the issue + URL

https://github.com/kidonng?tab=repositories

Extension version

23.3.31

Browser(s) used

Chrome

Activity

  1. added
    small
    on Apr 7, 2023
  2. fregante commented on Apr 7, 2023

    @fregante
    Member

    This is actually not strictly related to the global navigation but your demo link itself right on this issue is broken 😅 because it doesn't have any selectable attributes.

    It seems that we should just alter the feature to observe('[href*="?tab=repositories"]', alterLink) and then filter out any unrelated links via !isProfile

  3. changed the title [-]`set-default-repositories-type-to-sources` broken on "Global navigation update"[/-] [+]`set-default-repositories-type-to-sources` missing from some links[/+] on Apr 7, 2023
  4. fregante commented on Apr 7, 2023

    @fregante
  5. kidonng commented on Apr 7, 2023

    @kidonng
    Author
  6. kidonng commented on Apr 7, 2023

    @kidonng
    MemberAuthor

    but your demo link itself right on this issue is broken

    Hmm have it ever worked? Because the feature never targeted user content (comments etc.).

    It seems that we should just alter the feature to observe('[href*="?tab=repositories"]', alterLink) and then filter out any unrelated links via !isProfile

    There's a slight issue with isProfile in that it solely relies on github-reserved-names to avoid false positives. But I'm probably worrying too much because:

    • Adding &type=source is just noop in most pages
    • If we do find any false positive we can report to github-reserved-names

    Never mind, forgot there's another filter

  7. fregante commented on Apr 7, 2023

    @fregante
    Member

    but your demo link itself right on this issue is broken

    Hmm have it ever worked? Because the feature never targeted user content (comments etc.).

    Judging by the comments in the current observe array: no.

    We have a handful of similar features that should target "all links" across the interface rather than hand-picked one. Similar features:

    • shorten-links
    • sort-conversations-by-update-time
    • comments-time-machine-links (almost, these are limited to comments)
  8. changed the title [-]`set-default-repositories-type-to-sources` missing from some links[/-] [+]`hide-user-forks` missing from some links[/+] on Apr 10, 2023
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

    acceptedbugsmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions