Refined-github: Make exploring topics always focus the code tab

Created on 23 May 2020  路  2Comments  路  Source: sindresorhus/refined-github

Currently, Github sometimes focuses the issues tab when exploring repositories through topics:
image

I want it to always focus the code tab that actually explains what the repo is for:
image

enhancement help wanted under discussion

Most helpful comment

Yeah honestly the decision to show a random issue is mind-boggling for an "explore" section.

All 2 comments

Yeah honestly the decision to show a random issue is mind-boggling for an "explore" section.

Apparently GitHub loads either the Code tab or the Issues tab, automatically. We can't really _switch_ them without loading each repo and reconstruct the UI.

The UI could be fetched from the search pages and slightly adjusted to match the spacing/content: https://github.com/search?q=repo%3Aogham%2Fexa

Kinda like:

select('article > :last-child').append(
    await fetchDom(
        'https://github.com/search?q=repo%3Aogham%2Fexa',
        '.repo-list-item'
    )
);
Was this page helpful?
0 / 5 - 0 ratings