Skip to content

Clean DU by egezenn

Screenshot of Clean DU

Details

Authoregezenn

LicenseMIT

Categoryduzce.edu.tr

Created

Updated

Size7.1 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Clean utility websites, quickfixes for some stuff and theme consistency.

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         Clean DU
@version      2024-11-16_0035
@namespace    https://userstyles.world/user/egezenn
@description  Clean utility websites, quickfixes for some stuff and theme consistency.
@author       egezenn
@license      MIT
@preprocessor stylus
@var checkbox force-dark-mode "force dark mode" 0
@var checkbox force-light-mode "force light mode" 0
@var checkbox obs-clutter-removal "clutter removal for obs login page. breaks announcements, use with caution" 0
@var checkbox show-announcement-images "show unnecessarily big & incomprehensible images in announcement pages" 0
==/UserStyle== */
i = !important

handle-mode()
	if (force-dark-mode)
		dark-style()

	else if (force-light-mode)
		light-style()

	else
		@media (prefers-color-scheme dark)
			dark-style()

		@media (prefers-color-scheme light)
			light-style()

@-moz-document url-prefix("https://akademik.duzce.edu.tr")
	/* util - akademik */
	.orta-panel > img,
	.orta-panel > h3,
	.stats-container,
	.footer
		display none i

	.orta-panel
		height 100px i

	.img-container
		border none i/* idk why this doesn't work */

	a > .profil,
	.k-ad,
	.k-birim,
	.k-unvan
		text-decoration none i

	.k-ad
		font-size 1.2rem i

	.k-birim
		font-size 1rem i

@-moz-document url-prefix("https://kablosuzerisim.duzce.edu.tr")
	/* util - wireless network auth */
	/* yoinked */
	.portalButton,
	.formValue > input
		width 100px i
		height 100px i
		scale 1 i

	#regLoginTable,
	.formDiv
		margin-top 15% i
		scale 3 i

	#copyright
		color rgba(220, 220, 220, 1) i

	#footerBar
		background rgba(20, 20, 20, 1) i

	#menubars,
	.topContent > p,
	#footer,
	iframe,
	.bottomContent > br,
	.submitMessageDiv,
	.requiredField
		display none i

@-moz-document url-prefix("https://obs.duzce.edu.tr/account")
	/* obs login */
	.d-flex.flex-column.flex-lg-row-fluid.py-10
		background-image none i

	.d-flex.flex-column.flex-lg-row-fluid.py-10
		padding 0 i

	if (obs-clutter-removal)
		/* this also disables announcements on the left ¯\_(ツ)_/¯ */
		.d-flex.flex-column.flex-lg-row-auto.w-xl-400px.positon-xl-relative,
		.d-flex.flex-center.flex-wrap.fs-6.p-5.pb-0
			display none i

@-moz-document url-prefix("https://obs.duzce.edu.tr/student")
	/* obs pages */
	/* https://obs.duzce.edu.tr/student */
	/* info about the student */
	.dropdown-menu.scroller.active-dept
		width 30vw i

	.dropdown-menu.scroller.active-dept > li.selected-dept > a > .row > *
		font-size 1.5rem i

	/* no */
	.dropdown.dropdown-user.dropdown-dark > .dropdown-toggle > img
		display none i

	/* readable exam results */
	#confirmationReport-list > .row > div > .portlet > .portlet-title > .caption > .caption-helper > span
		font-size 1.5rem i
		color #7090a6

	#confirmationReport-list > .row > div > .portlet > .portlet-title > .caption > .caption-helper > span > b
		color #3598DC

	.portlet-body > div > table > tbody > tr > td
		font-size 1.5rem i

@-moz-document regexp("https?://(haber\\.)?duzce\\.edu\\.tr/tum-duyurular(/.*)?"), regexp("https?://(haber\\.)?duzce\\.edu\\.tr/duyuru/.*/.*")
	/* announcement pages */
	dark-style()
		body
			background-color #000000 i

		.box-content-inner.clearfix,
		.widget-main
			background-color #202020 i

	light-style()
		body
			background-color #FFFFFF i

		.box-content-inner.clearfix,
		.widget-main
			background-color #EFEFEF i

	handle-mode()/* fix overflow, corners */

	.head-bar
		width auto

	.head-menu
		border-radius 0px 0px 30px 30px i

	/* a bit messy on mobile */
	.head-menu,
	.head-menu > ul,
	.head-logo
		width 70vw i

	.head-menu > ul
		display flex i
		justify-content space-evenly i

	/* corner fix */
	.box-content-inner.clearfix,
	.widget-main
		border-radius 30px i

	/* fix for content page amount listing thingy */
	div.container > div.row:nth-of-type(2) > div.col-md-8 > div.text-center > ul > li
		display inline i

	/* properly centering content */
	body > .out-container
		margin 0 auto
		width 70vw

	/* useless elements */
	.out-container > .container > .page-title.clearfix,
	.widget-main-title,
	.view-details
		display none i

	/* spreading of categories */
	.widget-inner > .blog-categories > .row > ul
		padding 0 40px i
		display flex
		justify-content space-evenly i

	.widget-inner > .blog-categories > .row > ul > li
		display inline-block i
		text-align center i

	if (show-announcement-images)
		div.list-event-thumb > a > img
			max-height 120px i
			max-width 210px i

	else
		div.list-event-thumb,
		div.list-event-thumb > a > img
			display none i

@-moz-document regexp("https://w3\\.api\\.duzce\\.edu\\.tr/akademik/(fakulte|merkez)/(.*/)?tum-duyurular/?"), regexp("https://w3\\.api\\.duzce\\.edu\\.tr/akademik/(fakulte|merkez)/(.*/)?duyurular/.*"), regexp("https://w3\\.api\\.duzce\\.edu\\.tr/idari/.*/tum-duyurular/?"), regexp("https://w3\\.api\\.duzce\\.edu\\.tr/idari(/.*)*/duyuru/.*"), regexp("https://w3\\.api\\.duzce\\.edu\\.tr/tum-duyurular/?"), regexp("https://w3\\.api\\.duzce\\.edu\\.tr/duyuru/.*")
	/* old announcement pages */
	dark-style()
		.du-header > .bar,
		.top-bar .nav > li a
			background #181A1B i

	light-style()
		.du-header > .bar,
		.top-bar .nav > li a
			background #FFFFFF i
			color #000000 i

	handle-mode()/* fix for overflowing announcement categories */

	nav.dn
		display flow i

	nav > .event-nav
		display flex i
		flex-wrap wrap i
		justify-content space-evenly i
		width 75vw i

	.events > .wrapper.flex.container > .content
		width 75vw i

	/* better filtration inputs */
	#filter
		width 30% i
		display inline-flex i

	.pull-right
		width 10% i
		display inline-flex i

	.bar-headline
		display none i

@-moz-document url-prefix("https://duzce.edu.tr")
	/* homepage */
	body
		margin 0 i

	.out-container
		border 0px i

	.head-bar.gb-lr
		display none i

@-moz-document regexp("https?://duzce\\.edu\\.tr/?(.*)?"), url-prefix("https://haber.duzce.edu.tr/")
	/* useless search filter inputs */
	.search
		display none i

@-moz-document url-prefix("https://akademik.duzce.edu.tr"), url-prefix("https://kablosuzerisim.duzce.edu.tr")
	/* background replacement */
	dark-style()
		html,
		body
			background black i

	light-style()
		html,
		body
			background white i

	handle-mode()

@-moz-document url-prefix("https://ogr.duzce.edu.tr")
	/* student mail bg rm */
	.cont
		background-image none i

@-moz-document url-prefix("https://ebs.duzce.edu.tr/")
	/* ebs bg rm */
	body
		background-image none i

@-moz-document regexp("https?://(.*\\.)?duzce\\.edu\\.tr/?(.*)?")
	/* scrollbar(s) */
	dark-style()
		html,
		body
			scrollbar-width thin i
			scrollbar-color #33CCCC #2C2C2C i

		/* for non-mozilla */
		/* not tested, fingers crossed */
		::-webkit-scrollbar
			width 6px i

		::-webkit-scrollbar-track
			background #2C2C2C i

		::-webkit-scrollbar-thumb
			background #33CCCC i

		::-webkit-scrollbar-thumb:hover
			background #0FA6A6 i

	light-style()
		html,
		body
			scrollbar-width thin i
			scrollbar-color #33CCCC lightgray i

		::-webkit-scrollbar
			width 6px i

		::-webkit-scrollbar-track
			background lightgray i

		::-webkit-scrollbar-thumb
			background #33CCCC i

		::-webkit-scrollbar-thumb:hover
			background #0FA6A6 i

	handle-mode()

Reviews

No reviews yet.