Skip to content

Instantly share code, notes, and snippets.

@animaone
Created April 23, 2024 00:21
Show Gist options
  • Save animaone/e35ce0e0cd1f8fc634f229c7f8e586bb to your computer and use it in GitHub Desktop.
Save animaone/e35ce0e0cd1f8fc634f229c7f8e586bb to your computer and use it in GitHub Desktop.
change jscad online editor colors and size
// ==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