We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7707aa1 commit b4ef863Copy full SHA for b4ef863
github-code-colors.user.js
@@ -1,6 +1,6 @@
1
// ==UserScript==
2
// @name GitHub Code Colors
3
-// @version 1.2.0
+// @version 1.2.1
4
// @description A userscript that adds a color swatch next to the code color definition
5
// @license MIT
6
// @author Rob Garrison
@@ -134,7 +134,7 @@
134
while (els.length) {
135
let el = els.shift();
136
let txt = el.textContent;
137
- if (el.parentNode.classList.contains("pl-c1")) {
+ if (el.parentNode && el.parentNode.classList.contains("pl-c1")) {
138
// Ignore nested pl-c1 (see https://git.io/vFx8y)
139
} else if (!el.querySelector(".ghcc-block")) {
140
if (el.classList.contains("pl-s")) {
0 commit comments