HenDaBen.Com

Home
About
Gallery
Blog
News
Downloads
Services
Contact
Home
About
Gallery
Blog
News
Downloads
Services
Contact

Sanakirja org Adblock

10.10.2025 by HenDaBen

CPU usage icon

"May our CPU usage be high and performance low" -Sanakirja org sysadmins

What the fuss?

So recently I have been using Sanakirja.org, a dictionary to translate certain words between english and finnish. What started to concern me, was that I realized my CPU would hit all time highs for a brief moment.

CPU usage

So what was this about?

I know I have this bad habit of having multiple (yeah, just a few..) tabs open. But they fall asleep if they haven't been used for a while! I checked the Microsoft Defender - I haven't had hits there, just some faulty threats in the history. Then I checked out the current processes and services. Nothing special, just Google Chrome eating lots of RAM. But it did have a high CPU usage at times.

Now I had my server GUI in one tab, chatGPT in one, YouTube in two tabs, mail, dictionary and Coordinate Converter in one. The suspect was one of these tabs, I knew it.

By closing one at a time the CPU usage fell a little, but the spikes continued to happen until Sanakirja.org was closed. Bingo!

Solution

TamperMonkey. The Google Chrome addon, that I have covered earlier when I made the blog about the YouTube Adblocker some time ago.

By creating a new UserScript in your profile, just add the following code to your project:

// ==UserScript== // @name HenDaBen's Sanakirja.org adblocker // @namespace http://tampermonkey.net/ // @version 2025-10-10 // @description try to take over the sanakirja.org! // @author Me, I and myself // @match https://*/* // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // ==/UserScript== (function() { 'use strict'; const hideAds = () => { document.querySelectorAll( '#top_banner, #right_banner, .box_banner, .publift-widget-sticky_footer-container' ).forEach(el => el.style.display = 'none'); }; // Run early and observe dynamically loaded ads const observer = new MutationObserver(hideAds); observer.observe(document.documentElement, { childList: true, subtree: true }); window.addEventListener('load', hideAds); })();

.. and hit save! Now, head to www.sanakirja.org and enable the plugin on the site, if that already didn't happen automatically.

Enjoy!

Quick guide

Remember, you can use this pice of code to edit ANY website! Youtube? Check. Facebook? Check. Mail? Check.

Just find the site's adblock elements (CTRL + Shift + I or top-right menu, dev tools) and replace the element names on line 17.

Sanakirja.org performance

On default, the page CPU usage is like this. Every 20 seconds or so, a new set of ads are loaded, causing the usage to hit off the charts.

Sanakirja org ads

Sometimes, even Google's Ad manager realizes to remove ads due to high usage of resources.

Low CPU usage

This is what your CPU usage looks like after removing (hiding) the dodgy HTML elements.



Latest News and Blogs

Recent acitivity

ETS2 MP
ETS2 MP
Cinebench
Cinebench
Website update
Visual Update
WoW Classic
Level 60 in WoW C!
OSRS UIM 5
UIM progress
Old School RuneScape
Say Wc 99!