Remove garland from VK

Удаляет новогоднюю гирлянду на vk.com

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Remove garland from VK
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Удаляет новогоднюю гирлянду на vk.com
// @author       dmg_b
// @match        https://vk.com/*
// @grant        none
// @license      dmg_b
// ==/UserScript==

(function() {
    'use strict';

    // эта штука удаляет гирлянду
    function removeUnwantedElement() {
        const unwantedElement = document.querySelector('div[style*="pointer-events: none;"][style*="position: absolute;"]');
        if (unwantedElement) {
            unwantedElement.remove();
            console.log('Новогодняя гирлянда снята со странички');
        }
    }

    // эта штука делает первичную проверку этого элемента
    removeUnwantedElement();

    // эта штука наблюдает за изменениями в DOM
    const observer = new MutationObserver(() => {
        removeUnwantedElement();
    });

    // эта штука наблюдает за изменениями документа
    observer.observe(document.body, { childList: true, subtree: true });
})();