How many people will use my crude fix for the caching issues that cause markets to display incorrect data?
11
230Ṁ498
resolved Jan 1
Resolved as
1.0%

Manifold tries to cache market data to make pages load faster, but it does it poorly, which often results in markets displaying incorrect probabilities, graphs, or descriptions. I got frustrated by this and wrote a short script that just deletes all cached data.

I've been using this for a few hours and it has fixed all the problems I was having, and doesn't appear to cause any new ones other than increasing page loading time by a small fraction of a second. It even fixes embedded markets displaying wrong on Substack and other sites!

(As long as you visit a Manifold tab in between visiting any two other sites that have a Manifold embed; I couldn't figure out how to have the plugin directly access window.localstorage in a Manifold iframe.)

If I discover any problems with this script, I'll try to fix it and edit this description appropriately.

That said, use at your own risk. :)

Instructions:

  1. Install the User Javascript and CSS Chrome extention, or any other extention/plugin that lets you run Javascript on a website.

  2. Create a new rule for https://manifold.markets.

  3. Paste this block of code into that rule:

const clearStorage=function(){if(Object.keys(localStorage).length>0)return localStorage.clear(),!0};setInterval(clearStorage,50),clearStorage()&&window.location.reload();

  1. Click "save".

  2. Leave a comment that you have done so, so I know how to resolve this market.

The market closes once Manifold fixes these issues and there is no more need for this hack. It resolves to the number of people in the comments who said they tried out the script/100.

Get
Ṁ1,000
to start trading!

🏅 Top traders

#NameTotal profit
1Ṁ21
2Ṁ15
3Ṁ10
4Ṁ5
5Ṁ2
Sort by:

I just enabled it. We'll see how long I keep it!

"It resolves to the number of people in the comments who said they tried out the script."

Should this have been a numeric market? Will you interpret the percent as the number of people?

predictedNO

@whenhaveiever Yes, if 5 people use it, this resolves to 5%.

How many people will use my crude fix for the caching issues that cause markets to display incorrect data before Manifold fixes the problem?, 8k, beautiful, illustration, trending on art station, picture of the day, epic composition

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