Created
April 23, 2024 00:21
-
-
Save animaone/e35ce0e0cd1f8fc634f229c7f8e586bb to your computer and use it in GitHub Desktop.
change jscad online editor colors and size
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Change jscad online editor colors and size | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description this change the text editor a bit to allow focusing in the code editor | |
// @author github.com/animaone | |
// @match https://openjscad.xyz/ | |
// @grant GM_addStyle | |
// ==/UserScript== | |
console.log("I am here! Changing jscad ui style"); | |
GM_addStyle ( ` | |
#renderTarget{ | |
width:25%; | |
} | |
#editor{ | |
width:75%; | |
} | |
.CodeMirror{ | |
background: black; | |
color: beige; | |
font-size: 12pt; | |
} | |
.CodeMirror-cursor { | |
border-left: 5px solid #d94e4e; | |
} | |
` ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment