Skip to content

Instantly share code, notes, and snippets.

@psenough
Created September 16, 2024 22:27
Show Gist options
  • Save psenough/f1d26f962d8b878946f3f070765dfd79 to your computer and use it in GitHub Desktop.
Save psenough/f1d26f962d8b878946f3f070765dfd79 to your computer and use it in GitHub Desktop.
Demozoo night mode userscript
// ==UserScript==
// @name Demozoo night mode
// @namespace http://tampermonkey.net/
// @version 2024-09-16
// @description try to take over the world!
// @author ps
// @match https://demozoo.org/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=demozoo.org
// @grant GM_addStyle
// ==/UserScript==
(function() {
'use strict';
GM_addStyle(' \
:root { --bg: #333; --txt: #ddd; --atxt: #22cece; --vis: #77eeee; } \
html, *, html *, .competition__heading, .comments_panel { color: var(--txt); background-color: var(--bg); } \
input { color: var(--bg); background-color: var(--txt); } \
input[type="submit" i] { color: var(--txt); background-color: var(--bg); } \
a, .homepage .now_serving ul li a, .show_group .last_edited_by a.user, .show_scener ul.memberships li a, .show_group ul.memberships li a, \
.show_group .parties_organised_panel .parties a, .show_production .last_edited_by a.user, .show_bbs ul.affiliations li a, \
.downloads_panel ul.download_links li.download_link .primary a, \
.downloads_panel ul.download_links li.download_link .secondary a { color: var(--atxt); background-color: transparent; } \
a:visited { color: var(--vis); } \
a:hover { background-color: transparent; } \
.party_calendar a { color: var(--txt); } \
.site__footer { border: 0px; } \
.homepage .new_releases ul li a:hover, .homepage .new_additions ul li a:hover { background-color: transparent; } \
.homepage .new_releases ul li .title, .homepage .new_additions ul li .title { color:var(--txt); } \
.party_calendar table { border-top: 10px solid transparent; } \
.production_listing_filters { background-color: transparent; } \
#lightbox_outer, #lightbox_middle { background-color: rgba(0,0,0,.5); } \
#lightbox { background-color: var(--bg); } \
a.action_button { background-color: transparent; } \
.list--results .list__item:nth-child(odd) { background-color: var(--bg); } \
.downloads_panel ul.download_links li.download_link .primary, .downloads_panel ul.download_links li.download_link .secondary { background-color: transparent; } \
.platform-overview .panel { margin-top: 0px; } \
.list--groups { clear:both; } \
.platform-overview .panel { padding: 0px; } \
');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment