Skip to content

Instantly share code, notes, and snippets.

@themisir
Last active October 25, 2020 18:37
Show Gist options
  • Save themisir/9535a70afd6ed2b24bf1a2d49a98c356 to your computer and use it in GitHub Desktop.
Save themisir/9535a70afd6ed2b24bf1a2d49a98c356 to your computer and use it in GitHub Desktop.
Telegram web full width

Telegram Web Tweak Script

This script makes sure telegram web to use full screen width by replacing styles. The script works with scripting utilities like TamperMonkey.

Click this link to install user script.

// ==UserScript==
// @name Telegram Web Full Width
// @namespace http://tampermonkey.net/
// @version 0.1.2
// @description try to take over the world!
// @author Misir Jafarov
// @match https://web.telegram.org/*
// @grant GM_addStyle
// @updateURL https://gist.github.com/TheMisir/9535a70afd6ed2b24bf1a2d49a98c356/raw/bef2dedfcd8f1b7d160d63c46e4a3a2209bf3111/telegram.user.js
// @downloadURL https://gist.github.com/TheMisir/9535a70afd6ed2b24bf1a2d49a98c356/raw/bef2dedfcd8f1b7d160d63c46e4a3a2209bf3111/telegram.user.js
// ==/UserScript==
(function() {
'use strict';
const selectors = ['.im_page_wrap.clearfix', '.tg_head_split', '.im_message_wrap', '.im_send_panel_wrap', '.im_send_form'];
const noMaxWidth = '{max-width: none !important}';
GM_addStyle(selectors.join(',') + noMaxWidth);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment