Твики для сайта EntHub
EntHub Tweaks by thejenja

Details
Authorthejenja
LicenseNo License
Categoryenthub
Created
Updated
Code size2.8 kB
Code checksum8db42799
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Что уже есть
- AMOLED тема
- Скрытие правых разделов
- Расположение репутации слева
Source code
/* ==UserStyle==
@name enthub.it tweaks
@namespace github.com/openstyles/stylus
@version 1.2.0
@description A new userstyle
@author thejenja
@preprocessor stylus
@var select label1 "Помеченные ❌ - тестируются или работают некорректно" ["_"]
@var checkbox --removePopularTopics "Убрать 'Популярные теги'" 0
@var checkbox --removeTopPosts "Убрать 'Лучшие истории'" 0
@var checkbox --removeLastComments "Убрать 'Последние комментарии'" 0
@var checkbox --amoledTheme "Чёрная тема" 0
@var checkbox --hideLeftBottomLinks "Скрыть 'О нас', 'Политика'..." 0
@var checkbox --hideThemeChanger "Скрыть переключатель темы" 0
@var checkbox --hideSocials "Скрыть соц.сети слева" 0
==/UserStyle== */
@-moz-document url-prefix("https://enthub.it/") {
if --removePopularTopics
{
div .flex.flex-col.gap-1:nth-child(2) > a:not([href="https://enthub.it/communities"]){
display: none !important;
}
}
if --removeTopPosts
{
div[class="flex flex-col gap-4 min-h-0 px-[10px]"]{
display: none;
}
}
if --removeLastComments
{
section.max-w-md.rounded-lg.bg-background.p-4{
display: none;
}
}
if --amoledTheme
{
html{
color-scheme: dark;
scrollbar-color: rgba(255, 255, 255, .2) transparent
}
.bg-slate-100, header {
background-color: rgba(0, 0, 0, .8) !important;
}
header {
backdrop-filter: blur(6px);
}
.bg-white {
background-color: #202020 !important;
}
input[name="searchField"]{
background-color: rgb(30, 30, 30) !important;
}
:is(.dark .cdx-block), :is(.dark .ce-header), :is(.dark .inlineToolButton), :is(.dark .ce-toolbar__plus), :is(.dark .ce-toolbar__settings-btn), :is(.dark .ce-popover__search), textarea {
background-color: #202020 !important;
}
.bg-slate-300 {
--tw-bg-opacity: 1;
background-color: #2f2f2f;
}
:is(.dark .dark\:hover\:bg-slate-800:hover) {
background-color: rgb(32, 32, 32);
}
}
if --hideLeftBottomLinks
{
nav[class="flex flex-wrap gap-1.5 text-[13px] text-endpoint"]{
display: none;
}
}
if --hideThemeChanger
{
.darkModeToggle{
display: none;
}
}
if --hideSocials
{
.flex.flex-wrap.items-center.gap-1{
display: none;
}
}
}