PythonAnyDark/script.user.js
2024-11-30 21:05:34 -08:00

44 lines
No EOL
928 B
JavaScript

// ==UserScript==
// @name PythonAnyDark
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Darkmode for PythonAnywhere dashboard
// @author Swee
// @match *://www.pythonanywhere.com/*
// @grant none
// @run-at document-body
// ==/UserScript==
const style = document.createElement("style");
style.innerHTML = `
body, .primary-navbar .active a, .navbar, .ui-dialog, ui-widget-content {
background: #0f161c !important;
color: white;
}
.ui-dialog-titlebar-close {
background: red;
radius: 100%;
color: white;
}
.ui-widget-header {
background: none;
border: none;
}
.btn, .btn-default {
color: #0f161c !important;
}
.well {
background: black !important;
}
.alert-warning {
background: #2b1500;
}
tr.hoverable:hover {
background: #013e6d !important;
}
.pale, i.pale, .directory_listing_table {
color: white !important;
opacity: 1;
}
`;
document.body.appendChild(style);