zwifthacks.com - Dark Mode

Dark mode for ZwiftHacks.com

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

/* ==UserStyle==
@name           zwifthacks.com - Dark Mode
@namespace      typpi.online
@version        1.0.3
@description    Dark mode for ZwiftHacks.com
@author         Nick2bad4u
@license        UnLicense
@homepageURL    https://github.com/Nick2bad4u/UserStyles
@supportURL     https://github.com/Nick2bad4u/UserStyles/issues

@var color background-color "Background Color" #d5d5d5
@var color hover-background-color "Hover Background Color" #eb732f
@var color border-color "Border Color" #eb732f
@var color text-color "Text Color" #000000
==/UserStyle== */
@-moz-document domain("zwifthacks.com") {
	:root {
		--background-color: var(background-color);
		--hover-background-color: var(hover-background-color);
		--border-color: var(border-color);
		--text-color: var(text-color);
	}

	/* Invert colors except images and videos */
	:is(
		html:not([stylus-iframe]),
		img,
		svg,
		video,
		.footer-wrap,
		.comments-header,
		.comment-reply-title,
		.widget-header,
		.page-header
	),
	.main-navigation-menu
		> .menu-item-has-children
		> a::after,
	.main-navigation-menu
		ul
		.menu-item-has-children
		> a::after {
		filter: invert(1) hue-rotate(180deg) !important;
	}

	.site-branding .custom-logo,
	#title > a > img {
		filter: unset !important;
	}

	.primary-navigation,
	.main-navigation-menu a:link,
	.main-navigation-menu a:visited {
		background: var(--background-color);
		color: var(--text-color) !important;
	}

	.main-navigation-menu a:link:hover,
	.main-navigation-menu a:visited:hover {
		background: var(--hover-background-color);
		color: var(--text-color) !important;
	}

	.main-navigation-menu ul {
		border-top: 1px solid var(--border-color);
	}

	input[type='search'i],
	input[type='search'i]:focus {
		color: var(--hover-background-color);
	}

	input[type='text']:focus,
	input[type='email']:focus,
	input[type='url']:focus,
	input[type='password']:focus,
	input[type='search']:focus,
	textarea:focus {
		border: 1px solid var(--border-color);
		color: var(--hover-background-color);
	}

	:focus-visible {
		outline: var(--hover-background-color) auto 1px;
	}

	.main-navigation-menu
		li.menu-item-has-children:hover
		> ul,
	.main-navigation-menu
		li.page_item_has_children:hover
		> ul,
	.main-navigation-menu
		li.menu-item-has-children[aria-expanded='true']
		> ul {
		display: block;
	}
}