joelacus / RedditEnhancer

A browser extension to tweak the user interface on Reddit
83 stars 1 forks source link

[Feature request] Hide join buttons on New New UI #53

Closed georgwacker closed 4 months ago

georgwacker commented 5 months ago

When browsing all/popular, every post has a big join button, when you are not subscribed to the sub.

Would be a nice option to hide this button completely.

joelacus commented 5 months ago

Hi. Yeah, I can add this to the next version, no problem.

joelacus commented 4 months ago

Just published version 1.6.0 with an option to hide the join button on Old New and New New UI :)

georgwacker commented 2 months ago

I'm still seeing the join button on /r/all via New New UI. If I shrink the window horizontally, they disappear at some point. So it is working, but not for larger resolutions.

joelacus commented 2 months ago

The resolution shouldn't matter. Maybe my tweak is being overridden by a new site update.

If you know about CSS, this is the current way of hiding the join button:

shreddit-post shreddit-join-button {
    display: none;
}

I can change it to this. It adds a redundant selector just in case, and forces the "display none" to take priority.

shreddit-post shreddit-join-button,
[data-testid="credit-bar-join-button"] {
    display: none !important;
}