darkSnap/script.user.js

32 lines
793 B
JavaScript
Raw Normal View History

2024-11-30 17:00:33 -08:00
// ==UserScript==
// @name DarkSnap
2024-11-30 17:03:10 -08:00
// @namespace http://tampermonkey.net/
2024-11-30 17:00:33 -08:00
// @match https://snap.berkeley.edu/*
2024-11-30 17:03:10 -08:00
// @exclude *://snap.berkeley.edu/snap/*
2024-11-30 17:00:33 -08:00
// @grant none
2024-11-30 17:33:57 -08:00
// @version 4
2024-11-30 17:03:10 -08:00
// @author Swee
// @description Fork of https://forum.snap.berkeley.edu/t/18272
// @run-at document-body
2024-11-30 17:00:33 -08:00
// ==/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);