commit d499be7fedae35059bc2175b6fcedaa9fad6d0cb Author: Er2 Date: Fri Aug 20 18:10:37 2021 +0300 Initial commit diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e241737 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Zlib License + +Copyright (c) 2021 Er2 + +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. diff --git a/btfl.css b/btfl.css new file mode 100644 index 0000000..5ebfb0b --- /dev/null +++ b/btfl.css @@ -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; +} diff --git a/ext.png b/ext.png new file mode 100644 index 0000000..ca0720d Binary files /dev/null and b/ext.png differ diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..ab5054d --- /dev/null +++ b/manifest.json @@ -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"] + } + ] + +} diff --git a/readme.org b/readme.org new file mode 100644 index 0000000..e5055dd --- /dev/null +++ b/readme.org @@ -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. +