From 0b02bf46c9fac64287b1fce338927e34b87f4144 Mon Sep 17 00:00:00 2001 From: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Date: Sun, 12 May 2024 22:10:05 -0400 Subject: Rework settings (#884) * Add and remove settings from advanced * Add warning to Text scan length * Move Frequency sorting dictionary under Dictionaries, remove it from advanced, add child element Frequency sorting mode to advanced * Move Result grouping mode to Appearance * Move General above Dictionaries * Rename Popup Appearance to Appearance * Move Reading mode from Text Parsing to Appearance * Make Text scan length warning less scary * Move anki dupe settings back to advanced * Remove scan delay setting from welcome page * Move Recommended Permissions to top of welcome page, add bold, and add warning text * Improve wording of recommended permissions warning * Rename Enable content scanning to Enable Yomitan Co-authored-by: James Maa Signed-off-by: Kuuuube <61125188+Kuuuube@users.noreply.github.com> * Remove Auto-hide search popup option from welcome page * Fix appearance href and id * Add Result Display category * Add success text css * Split off quick start guide from welcome page * Add language selector on welcome page * Add success or danger text if recommended permissions are on or off * Remove unused placeholders in backup category * Rename Popup to Popup Behavior * Move Auto-hide search popup and Hide popup on cursor exit to Popup Behavior * Move Term display style, Reading mode, and Frequency display style to advanced * Move custom css to advanced * Remove unused setting * Add back setting with note and hidden * Remove Auto-hide search popup * Restore Auto-hide search popup * Fix Auto-hide search popup description --------- Signed-off-by: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Co-authored-by: James Maa --- ext/settings.html | 496 +++++++++++++++++++++++++++--------------------------- 1 file changed, 247 insertions(+), 249 deletions(-) (limited to 'ext/settings.html') diff --git a/ext/settings.html b/ext/settings.html index f32b8415..252de038 100644 --- a/ext/settings.html +++ b/ext/settings.html @@ -27,8 +27,9 @@ Dictionaries General Scanning - Popup - Appearance + Popup Behavior + Appearance + Result Display Position & Size Window Audio @@ -112,6 +113,52 @@ + +
+
+ +
+
+
+
+
Enable Yomitan
+
+
+ +
+
+
+
+
+ Language +
+
+ Language of the text that is being looked up. +
+
+
+ +
+
+
+
+
Show the welcome guide on browser startup
+
+
+ +
+
+
+
+
Maximum number of results
+
Adjust the maximum number of results shown for lookups.
+
+
+ +
+
+
+
@@ -158,154 +205,7 @@
-
-
-
-
Persistent storage
-
- Enable to help prevent the browser from unexpectedly clearing the database. - More… -
-
-
- -
-
- -
- - - -
-
- -
-
-
-
-
Enable content scanning
-
-
- -
-
-
-
-
- Language -
-
- Language of the text that is being looked up. -
-
-
- -
-
-
-
-
Show the welcome guide on browser startup
-
-
- -
-
-
-
-
Result grouping mode
-
- Change how related results are grouped. - More… -
-
-
- -
-
- - -
-
Frequency sorting dictionary
@@ -328,7 +228,7 @@ Less…

- -
-
-
-
Auto-hide search popup
-
When no definitions are found after scanning text, the popup will be hidden.
-
-
- -
-
- -
-
-
-
-
Hide popup on cursor exit
-
When the cursor exits the popup, the popup will be hidden.
-
-
- -
-
- -
-
+
Scan delay (in milliseconds)
Change the delay before scanning occurs when no modifier key is required.
@@ -589,6 +465,9 @@
Text scan length
Change how many characters are read when scanning for terms.
+
+ Setting this value too high (100+) may impact performance. +
@@ -640,10 +519,10 @@
- +
@@ -685,6 +564,60 @@
+
+
+
+
Auto-hide search popup
+
When an existing popup is present, upon scanning again, hide the existing popup even if no definitions are found when scanning again.
+
+
+ +
+
+ +
+
+
+
+
Hide popup on cursor exit
+
When the cursor exits the popup, the popup will be hidden.
+
+
+ +
+
+ +
Search terms when clicking text from the results list
@@ -723,10 +656,10 @@
- +
@@ -855,6 +788,21 @@
+
+
+
Reading mode
+
Change what type of furigana is displayed for parsed text.
+
+
+ +
+
Frequency display style
@@ -890,7 +838,7 @@
-
+
@@ -962,7 +910,7 @@
-
+
Configure custom CSS…
@@ -972,6 +920,85 @@
+ + +
+
+
+
+
Result grouping mode
+
+ Change how related results are grouped. + More… +
+
+
+ +
+
+ + +
+
+
@@ -1368,7 +1395,7 @@
-
+
Parse sentences using Yomitan's internal parser
@@ -1435,21 +1462,6 @@
-
-
-
Reading mode
-
Change what type of furigana is displayed for parsed text.
-
-
- -
-
Sentence scanning extent
@@ -1895,7 +1907,7 @@
-
+
Maximum clipboard text search length
Limit the number of characters used when searching clipboard text.
@@ -2039,20 +2051,6 @@
-
-
-
- Placeholder text. -
-
-
-
-
-
- Placeholder text. -
-
-
-- cgit v1.2.3