Refined-github: Remove projects tab when 0 (empty?) from repos not working

Created on 21 Aug 2019  Â·  5Comments  Â·  Source: sindresorhus/refined-github


Found similar issues, but they are quite old, so opening a new one.

It's is checked on the options, it shows it on the devtools as enabled, but it stills stays there as Projects (0). It's not working only on a repo pages and org page (should it be removed from there too?), correctly hides the profile projects tab.

I have more-dropdown and releases-tab disabled/unchecked.

Example: https://github.com/tunnckoCore/resources
refined-github-fkjshdfjksdhfkjshdfkjhsdfkj

I know GitHub added an option to hide that tab from the settings, but you should do it for every single repo, which is kind of too much for me.

Also, a good thing will be to have hide-wiki too.

Most helpful comment

@tunnckoCore CSS is our friend:

.reponav a[data-selected-links^="repo_projects"],
.reponav a[data-selected-links^="repo_wiki"] {
  display: none;
}

All 5 comments

This is working as designed. As you suggested, the current code is written to display when you have the option to turn it off in the repo.

https://github.com/sindresorhus/refined-github/blob/master/source/features/remove-projects-tab.tsx#L54-L55

I'll leave this open to discuss changing that behavior and hiding it all the time now.

The same is true for Wikis, if you disable the feature in the repo, GH will remove the tab.

the current code is written to display when you have the option to turn it off in the repo.

Which is all the time, since GH added that setting. So at least the description should be updated or to be renamed to remove-profile-projects-tab or similar, because basically, it is currently only for profile's project tab.

The same is true for Wikis, if you disable the feature in the repo, GH will remove the tab.

I know. Exactly, the thing is that you should disable them manually for each and every repo one by one, and when you have tons of repos and orgs it's too much repetition. You will one day have disabled them from GH for most of your repos, but until then you can use refined github for this to hide them all the time everywhere.

@tunnckoCore CSS is our friend:

.reponav a[data-selected-links^="repo_projects"],
.reponav a[data-selected-links^="repo_wiki"] {
  display: none;
}

Yes, but still, not that functional. I may use it for some time until/if PR come for this issue.

Sorry, I think it’s best for all of your users (rather than Refined GitHub’s users only) to just disable it on your repos.

As is, it does not only disable it on profiles but also on all other repos that aren’t yours.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fregante picture fregante  Â·  3Comments

yakov116 picture yakov116  Â·  3Comments

hkdobrev picture hkdobrev  Â·  3Comments

sompylasar picture sompylasar  Â·  3Comments

supremebeing7 picture supremebeing7  Â·  3Comments