squadrats.com - Dark Mode

Dark Theme for Squad Rats

ของเมื่อวันที่ 15-01-2025 ดู เวอร์ชันล่าสุด

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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.

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

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

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

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

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

/* ==UserStyle==
@name           squadrats.com - Dark Mode
@namespace      typpi.online
@version        1.0.2
@description    Dark Theme for Squad Rats
@author         Nick2bad4u
@license        UnLicense
@homepageURL    https://github.com/Nick2bad4u/UserStyles

@var color background-color "Background Color" #000000
@var color text-color "Text Color" #ffffff
@var color input-background-color "Input Background Color" #ddbcff
==/UserStyle== */
@-moz-document domain("squadrats.com") {
	:root {
			--background-color: var(background-color);
			--text-color: var(text-color);
			--input-background-color: var(input-background-color);
	}

	/* Invert colors except images and videos */
	*:not(
					#classification #neighbours,
					img,
					svg,
					.change-email,
					select,
					input,
					.provider-icons
			) {
			background: var(--background-color) !important;
			color: var(--text-color) !important;
	}

	.mapboxgl-canvas.maplibregl-canvas,
	.leader-map,
	.activity-image {
			filter: invert(1) hue-rotate(180deg);
	}

	select,
	input {
			background-position:
					right 0.7em top 50%,
					0 0 !important;
			background-size:
					0.65em auto,
					100% !important;
			background-repeat: no-repeat, repeat !important;
			background-color: var(--input-background-color) !important;
	}
}