Hello, I'm Stanko, a software engineer in Belgrade, writing mostly about JavaScript and React.

Latest post

JavaScript keyboard easter egg

I love easter eggs in software.

You may have noticed the keyboard image in the background of my blog. This thing on the right side of the screen. Those with a keen eye figured out it highlights keys as you are typing. It has been here for some time now, and on my colleague’s request, I’ll explain how it works.

Read more

Disable Cmd + Mouse Wheel (or Ctrl + Mouse Wheel) zoom in Firefox

Short Firefox tip to disable Cmd + MouseWheel zoom. There is a weird interaction with it. Therefore I decided to turn it off completely (I never used it anyway).

When I scroll a page using a trackpad and start switching tabs via Cmd + Tab, inertia scrolling would still be active, and the page I switched to gets zoomed in a lot (as I’m still holding Cmd). It really got on my nerves.

Read more

Back to Firefox (Nightly)

Two years ago I wrote this rant. Firefox had a problem on MacOS on scaled resolutions, resulting in insanely high CPU usage and battery drain.

Issue is finally fixed, and I’m happy to say I’m using it again. The fix is expected to land in the stable version in late October 2019, with the release of Firefox 70.

Meanwhile you can download Firefox Nightly, which is the freshest (and sometimes unstable) version of Firefox.

Firefox Nightly

I’m really happy to be using Firefox again, and I think you should try it as well.

Running Staticman on Heroku

I’m using Staticman as a comment system on this blog. Unfortunately public instance can’t handle all of the requests coming in. That resulted in some readers being unable to post a comment.

That is why I decided to run my own instance on Heroku. It was easy to find this great article describing the process thoroughly. But after following it and deploying Statamic to Heroku, I just couldn’t make it work.

It took me a while until I found another article with a workaround. Long story short, you need to use a specific version instead of the latest one.

In the first article in “Stage 2” in “Step 7” replace this:

git checkout -b production origin/dev

with this:

git checkout -b production 55d1430

That should be it. Now I have my own instance (running on a Heroku’s free tier) and hopefully there will be no further issues with posting comments.

Three web development bookmarklets

Today I want to share three bookmarklets I love to use in development. You can add them to your browser, by creating a new bookmark and entering bookmarklet code instead of URL. I usually keep them in the bookmarks bar to make them easier to find. , will run the code snippet on the page you are currently on.

For each bookmarklet I added a button to try it on this page.

Read more