блюру.нет

убирает блюр с превью вк видео

// ==UserScript==
// @name         блюру.нет
// @namespace    awaw https://lolz.live/andrey
// @version      1.2
// @description  убирает блюр с превью вк видео
// @author       YourName
// @match        *://vkvideo.ru/*
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    var style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = `
        div {
            unicode-bidi: unset !important;
        }
        img, .image-class {
            filter: none !important;
            -webkit-filter: none !important;
        }
    `;
    document.head.appendChild(style);

    var elements = document.querySelectorAll('div');
    for (var i = 0; i < elements.length; i++) {
        elements[i].style.filter = '';
        elements[i].style.webkitFilter = '';
        elements[i].style.unicodeBidi = 'unset';
    }

    new MutationObserver(function(mutations) {
        mutations.forEach(function(mutation) {
            Array.from(mutation.addedNodes).forEach(function(node) {
                if (node instanceof HTMLElement && node.tagName === 'DIV') {
                    node.style.filter = '';
                    node.style.webkitFilter = '';
                    node.style.unicodeBidi = 'unset';
                }
            });
        });
    }).observe(document.body, { childList: true, subtree: true });

})();