Skip to content

Commit 7780564

Browse files
committed
Code-colors: Update selectors
1 parent af1d51d commit 7780564

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

github-code-colors.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name GitHub Code Colors
3-
// @version 2.0.5
3+
// @version 2.0.6
44
// @description A userscript that adds a color swatch next to the code color definition
55
// @license MIT
66
// @author Rob Garrison
@@ -17,7 +17,7 @@
1717
// @downloadURL https://raw.githubusercontent.com/Mottie/GitHub-userscripts/master/github-code-colors.user.js
1818
// @supportURL https://github.com/Mottie/GitHub-userscripts/issues
1919
// ==/UserScript==
20-
/* global GM Color */
20+
/* global Color */
2121
(() => {
2222
"use strict";
2323

@@ -256,7 +256,7 @@
256256
if (document.querySelector(".highlight")) {
257257
let status;
258258
// .pl-c1 targets css hex colors, "rgb" and "hsl"
259-
const els = [...document.querySelectorAll(".pl-c1, .pl-s")];
259+
const els = [...document.querySelectorAll(".pl-c1, .pl-s, .pl-en, .pl-pds")];
260260
const iter = addBlock(els);
261261
const loop = () => {
262262
for (let i = 0; i < 40; i++) {

0 commit comments

Comments
 (0)