[Userscript] Like Counter

Would it be bad design to just make the heart disappear? :thinking: Same as on your own posts when using transparency userstyle.

Woah, I completely forgot that I did that! I thought it was native! Well, not that strange since Discourse changed it and I kept the original

I did try this, but I am worried that the count will be off and you actually do have likes to be used sweat_smile

What if there are some likes left but the scripts thinks there are none? An indicator is better because it leaves open the possibility to click the heart anyway.

Edit: leeboed by Kumirei. I should read previous posts more attentively.

If you reallyyyyyy want to like a post but “don’t have” any likes left, you can just click the L key on your keyboard, right? (joke answer, hehe) I don’t think it’d be a problem for mobile users though, since I guess most doesn’t use userscripts on their phones :thinking:

But yeah, sounds like it could be problematic

Maybe you could just add a diagonal strikethrough?

image

CSS
button.toggle-like.like::after {
	content: "";
	width: 1.35em;
	height: 0.1em;
	position: absolute;
	display: block;
	background-color: var(--primary-low-mid-or-secondary-high);
	transform: translate(-0.1em, -0.66em) rotate(-35deg);
}

button.toggle-like.like {
	cursor: not-allowed;
}

Oh, I tried that, but yours looks much better than what I tried. Might be a good option

It’s high time I get this script…

Just installed it. :slightly_smiling_face:

Everyone please update to 3.1.3. as the current version is making too many requests and the overlords are unhappy

WaniKani Forums: Like counter

oh wow, they literally told you it was becoming a problem?

Haha yes, Viet messaged me saying the hosts were seeing high CPU loads

How embarrassing

image

I knew it was an issue and had it on my list to improve it, but I assumed that their rate limits would be strict enough that they wouldn’t be bothered by it

Maybe you got bug report already, but in case you haven’t: something’s up with the Likes Received counter. For me it keeps showing 0.

Yeah, I noticed that too. I removed the fetching for received likes and went back to the method of just recording total likes received every 10 minutes (meaning it takes 24h to catch up), but it shouldn’t still be zero

I know for @trunklayer it shows -50.

Edit: oops, read that wrong, it was the other counter

It now shows

image

:sweat_smile:

This is all Discourse’s fault. It’s not satisfied with me having 0 likes - it wants me to have negative amount of likes!

Did you just get demoted to member?

I lost my regular status quite a while ago…
Should have been more active in threads other than the POLLs thread :sweat_smile:

The only way I can think of that happening is if you have more registered likes than your max number of likes. That should only happen if you’ve been demoted think