Skip to content

Commit 12b7f81

Browse files
authoredAug 1, 2020
Update ColourPicker.js
1 parent 10ce9d9 commit 12b7f81

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed
 

‎Userscripts/Desmos/ColourPicker.js

-10
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,6 @@ If having trouble getting it to load correctly, try changing the `0` at the bott
2929
setTimeout(function() {
3030
'use strict';
3131

32-
function rgb2hex(rgb) {
33-
if (/^#[0-9A-F]{6}$/i.test(rgb)) return rgb;
34-
35-
rgb = rgb.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
36-
function hex(x) {
37-
return ("0" + parseInt(x).toString(16)).slice(-2);
38-
}
39-
return "#" + hex(rgb[1]) + hex(rgb[2]) + hex(rgb[3]);
40-
}
41-
4232
var target = document.getElementsByClassName("dcg-header-desktop")[0];
4333
var hold = document.createElement ('span');
4434
target.insertBefore(hold, target.childNodes[2])

0 commit comments

Comments
 (0)
Please sign in to comment.