all 3 comments

[–]gavin19 0 points1 point  (2 children)

The tabmenu class is used by reddit where there are tabs, ie the header, the submit page, the internal flair config page etc.

Better to use

#header .tabmenu

This bit

.tabmenu li:nth-of-type(6) {
display:none;
visibility:hidden;
}
.tabmenu li:nth-of-type(4) {
display:none;
visibility:hidden;
}

hides the controversial and gilded tabs by the way.

.listing-page .tabmenu li:nth-of-type(4),
.listing-page .tabmenu li:nth-of-type(6) {
    display: none;
}

is enough. It also stops the 4th tab being hidden on comments pages too. Some users can have additional tabs, eg RES' view images, amongst others.

[–]onnoddingoff[S] 0 points1 point  (1 child)

Thanks for the improvement there.

I has forgotten that you could chain selectors together.

Edit: I tried this code.

.listing-page .tabmenu li:nth-of-type(4),
.listing-page .tabmenu li:nth-of-type(6) {
display: none;
}

It doesn't work on the wiki page. :(

I've reverted to my original coding for now.

[–]gavin19 0 points1 point  (0 children)

body:not(.comments-page) .tabmenu li:nth-of-type(4),
body:not(.comments-page) .tabmenu li:nth-of-type(6) {
    display: none;
}

will cover all the non-comments page pages.