css changes

css for telgram web

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         css changes
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  css for telgram web
// @author       You
// @match        https://web.telegram.org/
// @grant        GM_addStyle
// @run-at   document-start
// ==/UserScript==

GM_addStyle ( `
body.non_osx {
    font-family: Segoe UI,Helvetica Neue,Helvetica,Lucida Grande,Arial,Ubuntu,Cantarell,Fira Sans,sans-serif;
    font-size: 15px;
}
.im_content_message_wrap.im_message_in{
float: right;
border-radius: 10px;
padding: 10px;
background-color:white;
max-width: 70%;
}
.im_content_message_wrap.im_message_in:after  {
	content: '';
	position: absolute;
	right: 0;
	top: 20px;
	width: 0;
	height: 0;
	border: 13px solid transparent;
	border-left-color: white;
	border-right: 0;
	border-top: 0;
	margin-top: -6.5px;
	margin-right: 18px;
}
.im_content_message_wrap.im_message_out{
float: left;
border-radius: 10px;
padding: 10px;
background-color:#DCF8C6;
margin-right:10px;
max-width: 70%;
}
.im_content_message_wrap.im_message_out:after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 13px;
	width: 0;
	height: 0;
	border: 13px solid transparent;
	border-right-color: #DCF8C6;
	border-left: 0;
	border-bottom: 0;
	margin-top: -6.5px;
	margin-left: 22px;
}
.im_history_col_wrap.noselect.im_history_loaded{
background-image:url("https://external-preview.redd.it/rEwFriCkfAtjOb5b-23b4tGGVcuvfaBqamYNJrgxnLM.png?auto=webp&s=f3bf0b5c90e4c5fda12ff2139781c854554fd198");
background-color:#E5DDD5;
}
.im_bottom_panel_wrap{
background-color:#eae1da;
border-top:1px solid #f2f2f2;
}
.im_page_wrap,.tg_head_split{
max-width: 90% !important;
}

.im_dialog_wrap{
border-bottom:1px solid #f2f2f2;
}

.composer_rich_textarea{
font-family: Segoe UI,Helvetica Neue,Helvetica,Lucida Grande,Arial,Ubuntu,Cantarell,Fira Sans,sans-serif;
font-size: 15px;
background-color:white;
}
.im_message_wrap {
    max-width: 90% !important;
}
.im_message_reply {
    background-color: #eaede8;
    padding: 5px;
    border-radius: 5px;
    font-size:12px;
}
.im_message_date_split_text{
color:#7c8284;
background-color:#E0F1FB;
padding:4px;
border-radius:5px;
}
` );