sindresorhus/refined-github

Remove projects tab when 0 (empty?) from repos not working #2370

tunnckoCore posted onGitHub

<!-- Thanks for reporting a bug! â›° 1. Make sure the bug is caused by Refined GitHub. Try disabling the extension first. 2. Include a full URL where the bug appears. 3. Include a screenshot/gif Issues without a URL/screenshot will be closed -->

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.


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.

posted by busches over 5 years ago

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.

posted by tunnckoCore over 5 years ago

@tunnckoCore CSS is our friend:

.reponav a[data-selected-links^="repo_projects"],
.reponav a[data-selected-links^="repo_wiki"] {
  display: none;
}
posted by kidonng over 5 years ago

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

posted by tunnckoCore over 5 years ago

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.

posted by fregante over 5 years ago

Fund this Issue

$0.00
Funded

Pull requests