Multiple Likes on a single post
-
If you can make a script I can give you the bolierplate to add a special button to each post for it. :P
-
Screen shots for posterity.
-
-
According to Sam the postgres unique constraint is being broken because null is being set when the like is removed, allowing the dupe from the race condition. He's proposing a fix, so have your fun now.
I started to try this on meta.d, but couldn't get it to work the first time, and I didn't want to mess around too much over there.
-
I can't make sense of all the requests Discourse is making so I don't think I know enough to make a script.
I tried spamming clicks with AutoHotKey but the timing is too variable for that to work.
-
I can't make sense of all the requests Discourse is making so I don't think I know enough to make a script.
I tried spamming clicks with AutoHotKey but the timing is too variable for that to work.
$ ('.like').click(); $('a[data-act="2"]').click();
Should do it I think, if I understood the method correctly. You will have to scope it correctly though.
-
Yay I made one be two.
And it is bizarre when I somehow end up with a -1 likes sometimes in the middle of the spam.
-
Question - does the double like count as 1 or 2 towards the total? When you like something and then unlike it, it still counts against you, so I can't even guess as to how it counts when there's 2.
-
Also, open the console and watch the errors fly as you spam likes... why don't they disable the button until the response has come back from the server, at least then you'd have to use javascript to do it. Right now you can just click the heart a bunch until it breaks.
-
Ooops... didn't get the double like, but my screen looks like:
-
Double oops?
wonder if it stuck?
edit - yep, it stuck
-
I think something like this should do the trick:
$('#post_56 button.like').click(); $('#post_56 a[data-act="2"]').click();
I'm going to try it now on post_57.
Edit: No luck.
-
try this:
[code]
javascript:
$('#post_1 .has-like').click();
$('#post_1 .has-like').click();
$('#post_1 .like').click();
$('#post_1 .like').click();[/code] (change the post# to the one you're trying to like... )it works more consistently for me. The double triggers the race. The .has-like is for if it's already been turned to liked previously, and the .like class is the unliked button.
-
I set it up in a bookmarklet and mashed the bookmarklet a few times quickly and it worked.
It of course depends on the server's usage since it's a race. You need other races happening so you can win :)
-
I vote for a new badge, that @PJH only gets because he fufilled the "5-likes" requirement in a negative fashion!
Filed Under: Glitchworld here we come
-
Ah yes, works nicely. Two likes for the trouble.
But how do you get the bookmarklet to target the correct post?
-
i told you, put the post # instead of "1"
you could also put it like this (but it makes it a lot harder to spam... which kinda defeats the point... though it still works if you type the # and hit enter fast enough, I just did it to post#66)
[code]
javascript:
var post = prompt("whose post do you wanna double like?",1);
$('#post_'+post+' .has-like').click();
$('#post_'+post+' .has-like').click();
$('#post_'+post+' .like').click();
$('#post_'+post+' .like').click();
[/code]
-
i told you, put the post # instead of "1"
you could also put it like this:
[code]
javascript:
var post = prompt("whose post do you wanna double like?",1);
$('#post_'+post+' .has-like').click();
$('#post_'+post+' .has-like').click();
$('#post_'+post+' .like').click();
$('#post_'+post+' .like').click();
[/code]Yeah I know how to modify the javascript. I was just wondering if you were altering you bookmarklet for each use.
-
Dumb question: How do I use that as a "bookmarklet" in Firefox? I saved it to a bookmark but it opens a JSON thing in another tab.
-
I was just wondering if you were altering you bookmarklet for each use.
I was, but I"m not anymore now that I added that prompt, it actually worked pretty well
-
BTW, here's a good one to double-like, because I really do doubly like it:
-
Why stop at 2? You can probably get 3 or 4 if you're really lucky.
-
Wat? I found it first. If PJH gets this badge I seriously get 'THEY STEALIN MAH BADGES badge.'
Fuckers always be stealing my badges.
-
I'll just end up undoing the double probably (is it possible to undo the double or is it just stuck forever?). My connection here has terrible latency so it's hard to get enough spam to even get 2 to show up.
-
Wat? I found it first. If PJH gets this badge I seriously get 'THEY STEALIN MAH BADGES badge.'
Fuckers always be stealing my badges.
I'll take your badge for making the first javascript to be able to Auto-double-like ;)
-
According to this topic, @PJH is the only one who has 5 negative likes.
He doesn't get the badge for liking badly but for being the poor soul who has been used to abuse the system!
Filed Under: Gotta value that, too
-
I managed to get my like counter to be -2 on the first post lol
I was the first to proof of concept.
-
According to this topic, @PJH is the only one who has 5 negative likes.
Haha. But I'm the one that negative liked him so much ;)
I love how my screenshot of -5 likes has 5 likes, it's like it balances out.Also, @onyx actually scripted it before me, I just made it more tolerant.
Either way, @Matches should definitely get a <HTML> or <CSS> award for it, if @pjh thinks this is worthy of one of those.
-
damn, this should be in the Likes topic anyway.
WHY IS THIS NOT IN THE LIKES TOPIC
-
Either way, @Matches should definitely get a <HTML> or <CSS> award for it, if @pjh thinks this is worthy of one of those.
Cite? I got the impression @chaostheeternal was the first to discover it?
Willing to be corrected however, since searching on a mobile is even more painful than on a desktop..
-
I assume they're referring to getting it to say negative likes.
As far as getting double likes, I do believe I was the first to pull it off, in the Likes thread, no less.
-
@matches posted it to meta.d
maybe @ChaosTheEternal did find it first in the likes topic.
i was gone too long and didn't see it all til just now.
-
@matches posted it to meta.d
Because I won't make an account to post anything over there.I had it happen and both @boomzilla and I posted about it at roughly 2014/08/14 20:39 UTC, and @Matches didn't post it on meta.d until roughly 2014/08/15 03:56 UTC, using a screenshot that was after we'd already found and posted about it.
-
Chaos discovered it.
I only figured out the repro.
But I discovered the negative likes :P
-
You can probably get 3 or 4 if you're really lucky.
3 is definitely possible, I managed to do it by manually spamming the like button on the likes thread. It probably helps if, like mine, your internet connection is made of wet string, I guess.
(here : http://what.thedailywtf.com/t/the-official-likes-thread-topic-get-your-double-likes-here/1000/13781)
-
I briefly had negative likes, it was counting down at a rate of one like per second. At -4 it finally updated and showed the actual value. Haven't got it to happen again since.
-
All (well two of you) shall have badges.
Once I get to something with a keyboard and a mouse.
And if I remember...
-
Doesn't your phone have a keyboard and mouse? That's so 2013. The new hotness and all that.
-
Doesn't your phone have a keyboard and mouse?
Not real ones, no. Was in pub last night with laptop and did stuff on here. Didn't regret any of it...
-
I regret reading this sentence.
-
I regret reading this sentence.
Hurrah for the mobile interface.
I have no idea or context for that reply...
Edit: Desktop view to the rescue. Get yer mind out of the gutter.
Not enough room for all of us here...
-
Hurrah for the mobile interface.
I have no idea or context for that reply...
That's why I'm adamant the mobile interface was an afterthought, because it's pretty bad.
-
the mobile interface was an afterthought, because it's pretty bad.
I find it more usable than CS was. Damning with faint praise and all that...
-
http://i.imgur.com/jDYnzJt.png
http://i.imgur.com/qZb4GdT.png
Either my math skills are off, or they half-assed a fix.
-
-
Half assed? Never. Your counting is doing it wrong.
-
I count 11 if liked and this. count as people
-
It's correct in base 7.
-
if I remember...
Or if you get reminded...
Filed under: [I also waited until I was around a keyboard and mouse](#tag2), [and also not at home](#tag2)
-