VanderCat / VK Connect Hide

// ==UserScript==
// @name         VK Connect Hide
// @namespace    http://dauncorp.cc/
// @version      0.2
// @description  Hide VK Connect banner if you not want to accept (p.s. Messages freezes when selecting dialog. To fix this you need to copy url and paste in new tab)
// @author       VanderCat
// @match        https://vk.com/*
// @grant        none
// @run-at       document-end
// @license      MIT
// @updateURL    https://openuserjs.org/meta/VanderCat/VK_Connect_Hide.meta.js
// @downloadURL  https://openuserjs.org/install/VanderCat/VK_Connect_Hide.user.js
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
      var style = document.createElement('style');
        style.innerHTML = `
        .vk_connect_policy {
        display: none !important;
        }
        #box_layer_wrap {
            z-index: -1 !important;
        }
        `;
    document.head.appendChild(style);
    document
        .getElementById('box_layer_bg') //get black transparent background
        .remove();
    document
        .body
        .style
        .overflow = "auto"; //set page able to scroll
})();