Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
英辞郎 + MouseDictionary
/* ==UserStyle==
@name MouseDictionary
@namespace akouryy.net/stylus
@version 1.0.0
@description userstyle for MouseDictionary
@author akouryy
==/UserStyle== */
@-moz-document regexp(".*") {
.net-akouryy-mouse_dictionary-custom {
bottom: 5px !important;
height: 100px !important;
max-width: 95vw !important;
overflow-y: scroll !important;
top: auto !important;
width: 1200px !important;
}
.net-akouryy-mouse_dictionary-custom > div > div > br {
display: none;
}
.net-akouryy-mouse_dictionary-custom > div > div > span > br {
content: "";
}
.net-akouryy-mouse_dictionary-custom > div > div > span > br::after {
color: #fc9;
content: " / ";
}
/* (◆.+) → <span class="net-akouryy-mouse_dictionary-gsub_diamond_line">$1</span> */
/* (■.+) */
.net-akouryy-mouse_dictionary-gsub_diamond_line, .net-akouryy-mouse_dictionary-gsub_square_line {
color: #004000;
padding: 0 0.5em;
}
/* (【@】[ァ-ヺㇰ-ㇿー、]+) */
.net-akouryy-mouse_dictionary-gsub_katakana {
font-size: 0.1em;
opacity: 0.3;
}
/* (【発音】[^\r\n、]+) */
.net-akouryy-mouse_dictionary-gsub_ipa {
font-family: arial, sans-serif !important;
}
/* (【.+?】) */
.net-akouryy-mouse_dictionary-gsub_lenticular_brackets {
color: #808000;
}
/* ({.+?}) */
.net-akouryy-mouse_dictionary-gsub_braces {
color: #e06000;
}
/* (《.+?》) */
/* (〈.+?〉) */
/* (〔.+?〕) */
.net-akouryy-mouse_dictionary-gsub_double_angle_brackets, .net-akouryy-mouse_dictionary-gsub_angle_brackets, .net-akouryy-mouse_dictionary-gsub_tortoise_shell_brackets {
color: #008000;
}
/*:root:has(.net-akouryy-mouse_dictionary-custom) {
padding-bottom: 100px !important;
}*/
}
(◆.+)
<span class="net-akouryy-mouse_dictionary-gsub_diamond_line">$1</span>
(■.+)
<span class="net-akouryy-mouse_dictionary-gsub_square_line">$1</span>
(【@】[ァ-ヺㇰ-ㇿー、]+)
<span class="net-akouryy-mouse_dictionary-gsub_katakana">$1</span>
(【発音】[^\r\n、]+)
<span class="net-akouryy-mouse_dictionary-gsub_ipa">$1</span>
(【.+?】)
<span class="net-akouryy-mouse_dictionary-gsub_lenticular_brackets">$1</span>
({.+?})
<span class="net-akouryy-mouse_dictionary-gsub_braces">$1</span>
(《.+?》)
<span class="net-akouryy-mouse_dictionary-gsub_double_angle_brackets">$1</span>
(〈.+?〉)
<span class="net-akouryy-mouse_dictionary-gsub_angle_brackets">$1</span>
(〔.+?〕)
<span class="net-akouryy-mouse_dictionary-gsub_tortoise_shell_brackets">$1</span>
\n
<br/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment