Kami's Corner

How to hide the upvote button

Heya! So, let's say you wanna get rid of the upvote button on your blog for whatever reason? How would one go about doing that? Well, there's actually a couple different options, each with their own advantages and disadvantages. Here we go:

1. make_discoverable
This is the only way to completely get rid of the upvote button. If you set the make_discoverable attribute on your post to false, it will no longer be possible to upvote your post. This does have one potentially unwanted side-effect though: your posts will no longer show up on discover, not even on the most recent tab. If you're fine with that though, this is the most obvious choice. If you want to make all your posts undiscoverable, you can add this to your post template in bears settings.

2. CSS
You can hide the upvote button using this css snippet:

.upvote-button { display: none; }

This has the advantage of being pretty easy to do, and is also available in the free tier of bear (unlike our next method). Downside is, people can still theoretically upvote your post, and quite easily at that, provided they have some basic devtools skills. It should keep most people from trying though - the couple upvotes you might receive from particularly dedicated readers won't exactly give you much staying power on trending. Still, something to look out for.

3. JS
You can add this snippet to the footer of your website:

<script>document.querySelector(".upvote-button").remove()</script>

Since only premium bearblog accounts can use JavaScript on their blog, this method may not be available to you. However, it does have the advantage of being a lot more annoying to override. Bearblog uses js for upvoting, so users wouldn't be able to turn it off entirely. It is possible to manually override the page html in Chrome and remove the js snippet in order to still be able to upvote, but the vast majority of people don't know that this is even possible, or how they can do it. Overall, if you still wanna appear on most recent but just don't want any upvotes, this is probably the most effective method. Still not 100% upvote-proof, but oh well. Does it's job well enough, i think.

Anyways, thank you for reading! If you've got any more ideas for upvote prevention that i can add to this post, feel free to send me an email.