Initial commit

This commit is contained in:
Er2 2021-08-20 18:10:37 +03:00
commit d499be7fed
5 changed files with 126 additions and 0 deletions

19
LICENSE Normal file
View file

@ -0,0 +1,19 @@
Zlib License
Copyright (c) 2021 Er2 <er2@dismail.de>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgement in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.

75
btfl.css Normal file
View file

@ -0,0 +1,75 @@
/** DisKort
* (c) Er2 2021
*/
/* to hide */
[class^="username-"],
[class^="discrimBase-"],
[class*="banner-"],
[class^="usernameInnerRow-"],
[class^="membersGroup-"],
[class^="searchBar-"],
[class^="nowPlaying"],
div[class*="member"][class*="offline"],
div[class^="button"] button[class^="button-"],
svg[class^="slider"],
h2[class^="privateChannelsHeaderContainer"],
#gif-picker-tab, #private-channels-0,
#private-channels-1,
#private-channels-2
{
all: unset;
display: none;
width: 0;
height: 0;
}
div[aria-label="Servers"] ~ div
{
position: absolute;
bottom: 0;
display: none;
}
/* to show */
div[class^="scroller-"] div[class^="tutorialContainer-"]
{
display: unset;
}
/* rounder */
div[class^="markup-"] pre code
{
border-radius: 16px;
}
/* sharper */
[class^="avatar-"]
{
border-radius: 5px;
}
/* no banners */
/* user popup */
div[class^="userPopout-"] div[class^="headerTop-"] { padding-top: 120px; }
div[class^="userPopout-"] div[class^="avatarWrapper"] { top: 16px; }
/* profile */
header div[class^="nameTagWithCustomStatus-"] {
margin-bottom: 48px;
margin-left: 160px;
}
/* member list */
div[class^="membersWrap-"]
{
min-width: 48px;
width: 0;
}
div[class^="members-"],
div[class^="member-"]
{
padding: 0;
flex: 0 0 100%;
margin-left: 0;
}

BIN
ext.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 544 B

19
manifest.json Normal file
View file

@ -0,0 +1,19 @@
{
"manifest_version": 2,
"name": "DisKort",
"version": "1.0",
"description": "Custom theme for Discord",
"icons": {
"48": "ext.png"
},
"content_scripts": [
{
"matches": ["https://discord.com/*"],
"css": ["btfl.css"]
}
]
}

13
readme.org Normal file
View file

@ -0,0 +1,13 @@
*DisKort* - extension for browser which decreases Discord elements.
Currently it's in alpha.
* Installation
Instruction for Firefox (may be working on Chrome).
1. Download *zip* archive ([[https://gitdab.com/er2/diskort/archive/main.zip][main branch]]).
2. Press *Ctrl+Shift+A*.
3. Drag and drop extension.