NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Dark Telegram
// @namespace http://tampermonkey.net/
// @version 20190128.6
// @description Make TG dark
// @license MIT
// @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
{
background-color: black;
color:white !important;
}
.im_message_body
{
background-color: #1f1f1f;
color:white !important;
padding: 0.5em !important;
border-radius: 0.5em
}
.im_dialog_peer
{
color: #ddd !important;
}
.badge
{
color: #ddd !important;
background-color: #444 !important;
}
.im_dialogs_col_wrap
{
border-right: 2px solid #888 !important;
}
.im_dialogs_scrollable_wrap a.im_dialog:hover, .im_dialogs_scrollable_wrap a.im_dialog_selected
{
background: darkgrey !important;
}
`);
})();