flyink13 / VK FullScreen Dialog

// ==UserScript==
// @name         VK FullScreen Dialog
// @namespace    http://tampermonkey.net/
// @version      1.3
// @description  Нажмите Alt+F в диалоге ВКонтакте и его развернет на всю страницу
// @author       Flyink13
// @match        https://vk.com/*
// @updateURL https://openuserjs.org/meta/flyink13/VK_FullScreen_Dialog.meta.js
// @copyright 2017, flyink13 (https://openuserjs.org/users/flyink13)
// @license MIT
// @grant        none
// ==/UserScript==

window.addEventListener("load", function(e){
    document.head.appendChild(document.createElement("style")).innerHTML = style;
});

window.addEventListener("keydown", function(e){
    if(!e.altKey || e.keyCode !== 70) return;
    document.body.classList.toggle("fullscreen");
    return false;
});

var style = ".fullscreen .im-page--history.page_block._im_page_history{"+
    "    position: fixed;top: 0;bottom: 0;left: 0;right: 0;width: 100%; height: 100%;margin: 0;z-index: 200;}"+
    ".fullscreen .im-chat-input .im-chat-input--textarea{width: calc(100% - 100px);}"+
    ".fullscreen .im-page .im-page--chat-body-abs{right: 0;left: 0; margin: auto;max-width:600px}"+
    ".fullscreen .im-page .im-page--top-date-bar-wrap{width: 100%;}"+
    ".fullscreen{overflow: hidden;}"+
    ".fullscreen ._im_chat_input_parent{"+
    "   max-width: 600px; margin: 0px auto;"+
    "   box-shadow:rgb(250, 251, 252) 0px 1001px 0px 1000px, rgb(228, 230, 233) 0px 1000px 0px 1000px"+
    "}"+
    // Список диалогов
    ".fullscreen .im-page .im-page--dialogs{"+
    "    position: fixed;z-index: 201;left: 0px;top: 50%;margin-top: calc(-315px / 2);width: 77px;"+
    "    overflow: hidden;padding: 0px;height: 315px;box-shadow: none;}"+
    "body.fullscreen li.nim-dialog, body.fullscreen li.nim-dialog._im_dialog_selected{"+
    "background: transparent !important;border-color: transparent !important;   opacity: 0.8;}"+
    "body.fullscreen li.nim-dialog._im_dialog_selected{	opacity: 1;   box-shadow: inset 2px 0px 0px 0px #517297;}"+
    ".fullscreen ._im_dialogs_search, .fullscreen ._im_dialogs_settings, .fullscreen .nim-dialog--cw > *{display: none;}"+
    ".fullscreen .nim-dialog_unread .nim-dialog--unread._im_dialog_unread_ct{"+
    "	display: block;position: absolute;left: -30px;   right: auto;   top: 50px;   background: #7192b7;"+
    "   color: #fff;    border: 1px solid #fff;}"+
    // Плеер
    ".fullscreen #audio_layer_tt {top: 50px !important;border-top: 1px solid #c5d0dc;" +
    "    border-radius: 3px;box-shadow: 0 10px 40px 0 rgba(0,0,0,.3);}" + 
    ".fullscreen #chat_onl_wrap{    display: none;    z-index: -1;}"+
    ".fullscreen #page_header_cont{z-index: 202;top: -50px;}"+
    ".fullscreen .head_nav_item_player{overflow: visible;}"+
    ".fullscreen .top_audio_player:hover{background: none;}"+
    ".fullscreen .top_audio_player_enabled{z-index: 202; top: 54px; left: 50px}"+
    ".fullscreen .top_audio_player_title{color: #000 !important;opacity: 0.6;}"+
    ".fullscreen .top_audio_player_btn{filter: invert();opacity: 0.6;}";