1
0

Update gelbooru-disable-nyudachi.user.css

This commit is contained in:
Akamaru
2025-10-25 13:47:43 +02:00
parent 40d41345ab
commit 55bfaedc14

View File

@@ -1,7 +1,7 @@
/* ==UserStyle== /* ==UserStyle==
@name Gelbooru - Disable Nyudachi Design @name Gelbooru - Disable Nyudachi Design
@namespace https://git.ponywave.de/Akamaru/Userscripts @namespace https://git.ponywave.de/Akamaru/Userscripts
@version 0.1 @version 0.2
@description Blockiert das Nyudachi Design auf Gelbooru und zeigt das normale Design @description Blockiert das Nyudachi Design auf Gelbooru und zeigt das normale Design
@author Akamaru @author Akamaru
@homepageURL https://git.ponywave.de/Akamaru/Userscripts @homepageURL https://git.ponywave.de/Akamaru/Userscripts
@@ -11,44 +11,68 @@
/* Dieses UserCSS befindet sich noch in der Testphase */ /* Dieses UserCSS befindet sich noch in der Testphase */
@-moz-document regexp("https?:\\/\\/gelbooru\\.com\\/index\\.php$") { @-moz-document regexp("https?:\\/\\/gelbooru\\.com\\/index\\.php$") {
/* Entferne Nyudachi Hintergrund vom body */ /* Verstecke AdBlock-Nachricht generell */
body[style*="nyuBar.png"] { div[style*="text-align: center"][style*="color: #5a5a5a"]:has(a[onclick*="addEngine"]) {
background: #ffffff !important; display: none !important;
} }
/* Verstecke das animierte Nyudachi Logo */ /* Verstecke "Original concept by Danbooru" generell */
img[src*="nyudachi/AnimatedLogoGIF.gif"] { #static-index small[style*="color: #aaa"] {
display: none !important; display: none !important;
} }
/* Alle folgenden Regeln greifen nur, wenn Nyudachi Design aktiv ist */
/* Stelle normalen Hintergrund wieder her */
body[style*="nyuBar.png"] {
background: url('layout/index_back.png') repeat-x !important;
}
/* Verstecke das animierte Nyudachi Logo und zeige Text stattdessen */
body[style*="nyuBar.png"] #static-index h1 img[src*="nyudachi/AnimatedLogoGIF.gif"] {
display: none !important;
}
body[style*="nyuBar.png"] #static-index h1 a[href*="index.php?page=post&s=list&tags=all"]::after {
content: "Gelbooru";
color: inherit;
}
/* Verstecke alle Nyudachi Grafiken */ /* Verstecke alle Nyudachi Grafiken */
img[src*="nyuSniffa.png"], body[style*="nyuBar.png"] img[src*="nyuSniffa.png"],
div[style*="nyuBar2.png"] { body[style*="nyuBar.png"] div[style*="nyuBar2.png"] {
display: none !important; display: none !important;
} }
/* Verstecke den Nyudachi Werbetext */ /* Verstecke den Nyudachi Werbetext nach dem großen div */
div[style*="nyuBar2.png"] ~ b { body[style*="nyuBar.png"] div[style*="nyuBar2.png"] ~ b {
display: none !important; display: none !important;
} }
/* Setze Link-Farben auf Standardwerte zurück (Gelbooru Blau) */ /* Verstecke den "Plap plap plap" Footer-Text */
div#static-index > * > a, body[style*="nyuBar.png"] div[style*="text-align: center"][style*="color: #5a5a5a"] {
a { display: none !important;
color: #0073ff !important;
} }
div#static-index > * > a:hover, /* Entferne rosa Link-Farben und stelle Standard wieder her - nur wenn Nyudachi aktiv */
a:hover { body[style*="nyuBar.png"] div#static-index > * > a {
color: #3291ff !important; color: #006ffa !important;
} }
/* Setze Search-Button auf Standardfarbe zurück */ body[style*="nyuBar.png"] div#static-index > * > a:hover {
.secondary_search { color: #006ffa !important;
background: #0073ff !important;
} }
.secondary_search:hover { body[style*="nyuBar.png"] a {
background: #3291ff !important; color: #006ffa !important;
}
/* Setze Search-Button auf Standardfarbe zurück - nur wenn Nyudachi aktiv */
body[style*="nyuBar.png"] .secondary_search {
background: #006ffa !important;
}
body[style*="nyuBar.png"] .secondary_search:hover {
background: #006ffa !important;
} }
} }