Sequel to /IsaacKing/code-golf-will-someone-post-165-cha
Post Javascript code in the market comments. I will run each piece of code that's 100 characters or less in my JS console on this page. If this results in this market resolving to YES, so be it. If the market is still unresolved by the close date, it resolves to NO.
If I suspect that your code will do something that I do not want it to do, such as resolve this market to NO or send you all of my mana, I will not run it.
Each person gets one attempt.
š Top traders
# | Name | Total profit |
---|---|---|
1 | į¹13 | |
2 | į¹13 | |
3 | į¹12 | |
4 | į¹11 | |
5 | į¹1 |
@IsaacKing Iām taking down the repl, for posterity it was a flask server with CORS enabled and the text:
// From https://manifold.markets/IsaacKing/code-golf-will-someone-post-165-cha
f=(a,b,c)=>setTimeout(q=>[...document.getElementsByTagName('button')].filter(y=>y.innerText.endsWith(a))[b].click(),c)
f("YES",1,0)
f("lve",0,100)
f("o YES",0,200)
Selling for honor, not because I don't believe someone will do it.
Here's a manalink for the į13 profit I would have made: https://manifold.markets/link/l7eaKzDi
$$ is a console shorthand for document querySelectorAll, and instead of doing .filter(element => element.innerText.contains(string)), it just indexes the array of buttons
f(15,0);
create a manalink
f(19,100)
target user: citrinitas
f(36,200)
value: all your mana. And Send!
@citrinitas Ok, I think I understand what this is doing. Or rather, isn't doing, because I just ran it, and this market is still open.
oooh
well, for anyone else who wants to try, I'm on firefox. Probably Isaac has different buttons on his screen, you should try making the query selector more reliable