Chrome extension
Restoring Sanity in 2022 with the Earnings Extension
Packing a punch again

Early this week I was happily typing out these release notes. I was just about ready to release a new version of the Earnings-extension. Then, when I was reluctantly crafting the ‘Known issues’-section, I did some more elaborate testing.
It was then that I found a, ahem, feature. Let’s not call it a bug, shall we?
A little later I stumbled upon some unexpected behaviour. Let’s not call it a bug, shall we?
Slightly discouraged, I did some more testing and I found yet another oddity.
Let’s not call it a bug, shall we?
Ok, maybe I should call it a bug. Maybe even a couple of bugs. They were not your typical shoulder-shrug-types. They were the kind Apple found when they released their navigation-app. You know… The one that was supposed to get you to your destination, but ended up sending you on the wrong way.
Yeah, those kind of bugs. Being a responsible adult, I postponed the release, got my tools from the shed, and started hammering away the bugs. That’s what they get for punching me in my face!
I am about ready to release my fixes, but I want to do a few more tweaks before I release the extension into the wild. Below you’ll find the release notes that I originally wanted to ship with this version.
Most of it has made it to the new release, but I did some major refactoring and you won’t recognize the main screen anymore! There’s a screenshot at the bottom of this story.
The release notes that didn’t make it
These release notes of an unreleased version are for your pleasure only. They provide a sneak peek as to what’s coming. They’re not totally accurate, as the new version is fabulated up beyond any recognition.
Last year I already posted that the latest release of the Earnings-extension came with a couple of bugs. This update fixes all of this.
And to kick off 2022 properly, I added a few additional things into this release as well. Ready for version 1.1.3? Here’s your package to restore sanity this year:
- No more tedious waiting for the graph (🩹 bugfix)
- Showing the actual earnings (🩹 bugfix)
- Better performance (💉 booster-shot)
- Replaced the graph with the earnings of the last six months (🎁 new)
- Added quick-filters (🎁 new)
- Shows when the data is collected (🎁 new)
- Loading Progress-indicator (🎁 new)
- Improved Export (🧬 improved)
- Improved read times (🧬 improved)
Performance Boost and a Fancy New Graph
As I shared earlier, loading the extension could take nearly 10 minutes. I’ve taken the easy way out on this one and removed the culprit (the fancy new graph). Now it only shows after you click a button and confirm that you want to load it.
As I did like to have some visual information in the extension, I added a new graph, which shows you your earnings for the previous 6 months:

The new overview gives you a quick insight into how you are doing this month (blue) compared to the rest (orange). It might help you to stay sane when you are typing out your stories.

The old graph is still available, but you now have to click a button to see it. No more useless waiting. That is, if you disregard waiting for your next potential viral story to kick off.
I’ve now become aware that JavaScript doesn’t handle some kinds of computations in the code very well. I have updated some of the code to speed things up a bit. You shouldn’t experience a huge boost, but I’ll be more careful with unoptimized functions in the future.
Correct earnings
Nothing much to show here, but I finally managed to make sure that the data in the extension matches the partner program dashboard. I’m sorry for those of you that have created exports in the past. They don’t contain all the information.
If you’re curious about what the bug was, have a look here.
Quick Filters
This extension introduces the first version of some quick filters. I created a couple to kick things off. Let me know in the comments if you want to see some other filters added.

Note that the weeks starts on the day depending on your locale. For now I am letting the browser figure it out, but I may change this someday to start on Monday.
When Was The Data Updated?
The data in the extension should be synced with the data you pull from the partner program dashboard. But up until when was the data up to date?

As you might expect from my last update, I don’t want to make any assumptions about when Medium runs their batches for earnings or views. To get the data as shown in the screenshot, I just look at when you have received your last earning and when you have received your last view, so on a very poor day, the dates here might look the same as yesterday.
Loading Progress

I don’t know about you, but having to wait isn’t good for my blood pressure. To ease that pain and to make analyzing the wait-times a bit easier I created a little progress indicator.
It’s a bit of a quick hack-but I liked it enough to have it stick around for some mental support.
Improved Export
Maybe Improvement is too big of a word, but now the export uses leading zeroes for months and days. This feature won’t mean a lot to most, but some people that do some automation with the csv will have an easier time to parse the data in their own program (credit to Anthony Lawrence (Pcunix) for the suggestion).
Read times
Earlier, if your story had been read over 24 hours, the clock would reset and start at 0 again. Now the extension properly displays the number of days. I am not sure if I should revert back to seconds, but I am fond of human-readable formats, so I’ll stick to this for a while, unless I get some devastating feedback. Let me know in the comments what you prefer.
I prefer to at least see how viral my viral stories went…
Known issues
You know what, I’d best not share this. All of these issues have been fixed anyway. Ready for the sneak peek?
The release that will make it

So, there you have it. A totally revamped table to show your earnings. I will keep the old table in this release. Next release it is probably gone.
My own experience is that, although it takes some getting used to, is that this works a lot better. I am very curious to know what you think.
There are a few other tiny updates as well, but I’ll share those with you in the actual release notes.
Sorry to keep you waiting. It’s been worth it. I promise.
Stay tuned for an update sometime soon!





