marcin348gmail.com / Resize Telegram

// ==UserScript==
// @name         Resize Telegram
// @namespace    http://tampermonkey.net/
// @version      20170817.3
// @description  Make TG resizable
// @author       Marcin Juszkiewicz
// @match        https://web.telegram.org/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    function addCss(css) {
        var head, style;
        head = document.getElementsByTagName('head')[0];
        if (!head) { return; }
        style = document.createElement('style');
        style.type = 'text/css';
        style.innerHTML = css;
        head.appendChild(style);
    }

    addCss ('.tg_head_split, .tg_head_peer_title, .im_page_wrap, .im_message_wrap, .im_send_panel_wrap, .im_send_form { max-width: none !important;}');
    addCss ('html#ng-app body.non_osx.non_msie.is_1x div.composer_emoji_tooltip.noselect.composer_emoji_tooltip_tabs_stickers_active, html#ng-app body.non_osx.non_msie.is_1x div.composer_emoji_tooltip.noselect { left: 85% !important;}');
})();