Skip to content

Commit c6579ee

Browse files
committed
2026-03-14
1 parent 360f4a1 commit c6579ee

6 files changed

Lines changed: 307 additions & 202 deletions

userscripts/improved-canvas.user.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
// @namespace Violentmonkey Scripts
44
// @match https://*.instructure.com/*
55
// @grant none
6-
// @version 0.1
6+
// @version 0.2
77
// @author Edwin Kofler
88
// @description 7/20/2025, 10:14:51 AM
99
// ==/UserScript==
10-
document.querySelector("head").append(
11-
document.createRange().createContextualFragment(`
12-
<style>
10+
const sheet = new CSSStyleSheet();
11+
sheet.replaceSync(`
1312
#announcements-link, #syllabus-link {
1413
background-color: lightpink;
1514
}
@@ -25,6 +24,5 @@ document.querySelector("head").append(
2524
.ic-app-course-menu > #sticky-container li > a {
2625
padding-block: 7px !important;
2726
}
28-
</style>
29-
`),
30-
);
27+
`);
28+
document.adoptedStyleSheets.push(sheet);

userscripts/improved-csumb-dashboard.user.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,18 @@
33
// @namespace Violentmonkey Scripts
44
// @match https://my.csumb.edu/dashboard*
55
// @grant none
6-
// @version 0.1
6+
// @version 0.2
77
// @author Edwin Kofler
88
// @description 8/21/2025, 9:40:32 PM
99
// ==/UserScript==
10-
document.querySelector("head").append(
11-
document.createRange().createContextualFragment(`
12-
<style>
10+
const sheet = new CSSStyleSheet();
11+
sheet.replaceSync(`
1312
.dashboard-node .node-leaf {
1413
max-width: 1400px !important;
1514
}
1615
1716
widget-container.dashboard-widgets .card.widget {
1817
margin: 4px !important;
1918
}
20-
</style>
21-
`),
22-
);
19+
`);
20+
document.adoptedStyleSheets.push(sheet);

userscripts/improved-github.user.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,19 @@
33
// @namespace Violentmonkey Scripts
44
// @match https://github.com/*
55
// @grant none
6-
// @version 0.1
6+
// @version 0.2
77
// @author Edwin Kofler
88
// @description 6/27/2025, 6:41:56 PM
99
// @icon https://github.githubassets.com/assets/GitHub-Mark-ea2971cee799.png
1010
// ==/UserScript==
11-
document.querySelector("head").append(
12-
document.createRange().createContextualFragment(`
13-
<style>
11+
const sheet = new CSSStyleSheet();
12+
sheet.replaceSync(`
1413
:root {
1514
--contribution-default-borderColor-0: #adb5bd !important;
1615
}
1716
1817
.ContributionCalendar-day, .ContributionCalendar-day[data-level="0"], .ContributionCalendar-day[data-level="0"] {
1918
border-width: 1px !important;
2019
}
21-
</style>
22-
`),
23-
);
20+
`);
21+
document.adoptedStyleSheets.push(sheet);

userscripts/improved-kattis-create-files.user.js

Lines changed: 0 additions & 174 deletions
This file was deleted.

0 commit comments

Comments
 (0)