Skip to content

Instantly share code, notes, and snippets.

@yujiym
Last active August 10, 2025 08:23
Show Gist options
  • Save yujiym/f83381c696a3c8b3ea25dc60a3249819 to your computer and use it in GitHub Desktop.
Save yujiym/f83381c696a3c8b3ea25dc60a3249819 to your computer and use it in GitHub Desktop.
Mouse Dictionary Settings (dracula theme & spacing adjustment)
{
"shortWordLength": 2,
"cutShortWordDescription": 30,
"parseWordsLimit": 8,
"lookupWithCapitalized": false,
"initialPosition": "right",
"scroll": "scroll",
"skipPdfConfirmation": false,
"pdfUrl": "",
"backgroundColor": "#282a36",
"headFontColor": "#ff79c6",
"descFontColor": "#f8f8f2",
"headFontSize": "large",
"descFontSize": "small",
"width": 350,
"height": 500,
"replaceRules": [
{
"search": "(■.+|◆.+)",
"replace": "<span style=\"{{cssReset}};color:#bd93f9;font-size:100%;\">$1</span>"
},
{
"search": "({.+?}|\\[.+?\\]|\\(.+?\\))",
"replace": "<span style=\"{{cssReset}};color:#bd93f9;font-size:100%;\">$1</span>"
},
{
"search": "(【.+?】|《.+?》|〈.+?〉|〔.+?〕)",
"replace": "<span style=\"{{cssReset}};color:#bd93f9;font-size:100%;\">$1</span>"
},
{
"search": "\\n|\\\\n",
"replace": "<br/>"
}
],
"normalDialogStyles": "{\n \"opacity\": 0.95,\n \"zIndex\": 2147483647\n}",
"movingDialogStyles": "{\n \"opacity\": 0.5\n}",
"hiddenDialogStyles": "{\n \"opacity\": 0.0,\n \"zIndex\": -1\n}",
"contentWrapperTemplate": "<div style=\"margin:0;padding:0;border:0;vertical-align:baseline;text-align:left;\">\n</div>",
"dialogTemplate": "<div class=\"notranslate\"\n style=\"all:initial;\n {{systemStyles}}\n width: {{width}}px;\n height: {{height}}px;\n position: fixed;\n overflow-x: hidden;\n overflow-y: {{scroll}};\n top: 5px;\n background-color: {{backgroundColor}};\n z-index: 2147483646;\n padding: 16px;\n border-radius: 8px;\n box-shadow: 0 0 16px #ddd;\">\n</div>",
"contentTemplate": "<div style=\"{{cssReset}};font-family:-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;\">\n {{#words}}\n {{^isShort}}\n <span style=\"{{cssReset}};font-size:{{headFontSize}};color:{{headFontColor}};font-weight:bolder;display:inline-block;padding-bottom:4px;\">\n {{head}}\n </span>\n <br/>\n <span style=\"{{cssReset}};font-size:{{descFontSize}};color:{{descFontColor}};\">\n {{{desc}}}\n </span>\n {{/isShort}}\n {{#isShort}}\n <span style=\"{{cssReset}};font-size:{{headFontSize}};color:{{headFontColor}};font-weight:bold;\">\n {{head}}\n </span>\n <span style=\"{{cssReset}};color:#50fa7b;font-size:x-small;\">\n {{shortDesc}}\n </span>\n {{/isShort}}\n {{^isLast}}\n <br/><hr style=\"border:0;border-top:1px solid #8BE9FD;margin-top:8px;margin-bottom:8px;height:1px;width:100%;\" />\n {{/isLast}}\n {{/words}}\n</div>"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment