Code golf: Will someone post <=80 characters of Javascript code that I can use to resolve this market to YES, without fetching external code?
Basic
9
Ṁ2099
resolved Feb 22
Resolved
YES

Sequel to /IsaacKing/code-golf-will-someone-post-84-char

Post Javascript code in the market comments. I will run each piece of code that's 80 characters or less and doesn't use fetch() or another way of bringing in external code 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. (And if that fails, I reserve the right to resolve this market N/A.)

Each person gets one attempt.

Close date updated to 2023-03-01 12:00 am

Get
Ṁ1,000
and
S3.00
Sort by:
predictedYES

Looks like we're not getting any more bites on NO and I'm getting nervous that the UI might change again so here's my submission!

setInterval(b=>b("*").map(x=>x.innerText?.match(/^Re|^Ed|^YE/)&&x.click()),9,$$)

Tested successfully here: https://manifold.markets/A/test-market-8

I tightened up the regex so it's actually a little bit less crazy than the previous winner. There's room to drop a few more characters by bringing back some of the craziness, but for now I'll refrain from specifying exactly how many characters can be saved. :)

Once again, make sure to refresh the page after running.

@A Interesting. I tested this out and thought I had found a way to foil it, but then that method didn't work in the real market.

predictedNO

@A Nice, I thought we’d tried basically everything without disabling buttons.

Shorter timeline on this one than usual I think, is that intentional?

@A The other ones all ended pretty quickly, so I figured a week a half should be more than sufficient for this one. Since you're the only person who's bet so far, I'm happy to extend the close date if you'd prefer.

predictedYES

@IsaacKing Yeah I'd be in favor of extending it. I suspect you're right that it will end sooner than that but it's nice not to be rushed in my golfing. :)

Then again, shorter deadline probably makes this more profitable for YES betters since we don't have to coordinate not-posting-solutions for as long to draw in NO voters. Still, I'm more interested in the code side of it than the market, so on the balance I vote longer but I'll leave it to your discretion!

@A Gave you till the end of the month. :)

Related questions

© Manifold Markets, Inc.Terms + Mana-only TermsPrivacyRules