darkSnap/script.user.js

32 lines
No EOL
793 B
JavaScript

// ==UserScript==
// @name DarkSnap
// @namespace http://tampermonkey.net/
// @match https://snap.berkeley.edu/*
// @exclude *://snap.berkeley.edu/snap/*
// @grant none
// @version 3
// @author Swee
// @description Fork of https://forum.snap.berkeley.edu/t/18272
// @run-at document-body
// ==/UserScript==
//
document.documentElement.setAttribute('data-bs-theme', 'dark');
document.documentElement.classList.add("text-white");
const noBoostrapStyle = document.createElement('style');
noBoostrapStyle.innerHTML = `
body {
background: #212529;
color: white;
}
.notes {
background: #2D3142 !important;
}
.trapezoid {
color: #2D3142;
}
.trapezoid-footer {
color: #212529;
}
`;
document.head.appendChild(noBoostrapStyle);