Code golf: Will someone post <=57 characters of Javascript code that I can use to resolve this market to YES?
13
230Ṁ603
resolved May 7
Resolved
NO

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

Post Javascript code in the market comments. I will run each piece of code that's 57 characters or less and doesn't use fetch() or another way of bringing in external code in my JS console on this page. (Including from comments.) 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.)

As a change from previous markets, I am now in full cooperation with the golfers in attempting to resolve this market YES. I will provide any relevant information they ask for, such as my browser environment and any error messages or other results of running a certain code snippet. And I will no longer try to foil their plans, such as by resizing the window to change the page layout. (I do however reserve the right to refuse certain requests, such as a request to buy or sell shares in order to change what buttons exist.)

Get
Ṁ1,000
to start trading!

🏅 Top traders

#NameTotal profit
1Ṁ122
2Ṁ79
3Ṁ23
4Ṁ19
Sort by:
predictedNO

Well, looks like we finally hit the wall.

i=0;setInterval('$$(".font-md")[++i*3+(i>2)].click()')

ReferenceError: $$ is not defined

predictedNO

@JasonNichols I tried this as well, does anybody know why it doesn't work?

predictedYES

@levifinkelstein For some reason Chrome doesn't pass $$ into the scope of the callback unless you redefine it.

In the spirit of cooperation, here's my 58 character solution:

i=0;b=$$;setInterval('b(".font-md")[++i*3+(i>2)].click()')

Good luck, golfers!

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