This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# built-in imports should be at the top | |
# but sys is not even needed! See last block. | |
# import sys | |
# Module imports are preferred! Unneeded items should not be imported | |
from PySide2 import QtCore, QtWidgets | |
# numbers that are used multiple times or are key to the functionality | |
# should be in 1 place so one doesn't need to dig for the settings. | |
SIZE_SMALL = 70 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Telegram dark theme / night mode | |
// @namespace https://github.com/digitalheir/ | |
// @version 1.0 | |
// @description Dark theme / night mode for Telegram Web | |
// @author Maarten Trompper <[email protected]> | |
// @match https://web.telegram.org/* | |
// ==/UserScript== | |
// Since GM removed it (https://wiki.greasespot.net/GM_addStyle) |