I vibe coded a bookmarklet to hide your own traffic on Umami

I’ve been using Umami for a lightweight, self-hosted analytics solution on my blog. There’s a built in way to hide your own traffic by IP address, but I use private relay on my phone, and a VPN sometimes on my laptop, so I wanted to find a way to hide my own visits to my blog that’ll work across device/browser/network.

If you’re on desktop, you should just be able to set a browser flag:

umami.disabled = true

Or, per the official documentation, you can run this command from the JavaScript console:

localStorage.setItem('umami.disabled', 1);

But on Safari/iOS you can’t do that. So I vibe coded this little bookmarklet using Javascript Local Storage:

javascript:localStorage.setItem('umami.disabled','true');alert('Umami disabled for this browser');

And you can re-enable your own traffic by using this bookmarklet:

javascript:localStorage.removeItem('umami.disabled');alert('Umami enabled again');

It should work in any browser, and it saves that configuration for every site using that Umami endpoint. So other sites using Umami can still track you, but whatever sites you’re using your own self-hosted Umami instance on should ignore it.

Notes