PythonAnyDark/script.user.js
2024-11-30 21:22:27 -08:00

55 lines
No EOL
1.2 KiB
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 {
background: #0f161c !important;
color: white !important;
}
.ui-widget-content, ui-dialog-title, .dashboard-panel__headline a {
color: white;
}
input, .form-control {
background: black;
color: white;
}
.ui-dialog-titlebar-close {
background: red !important;
border-radius: 100%;
border-width: 0px;
color: white;
}
.ui-icon-closethick {
display: none;
}
.ui-widget-header {
background: none;
border: none;
}
.btn, .btn-default, table, .table-striped>tbody>tr:nth-of-type(odd) {
background: #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);