aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/options.js2
-rw-r--r--ext/bg/settings.html11
-rw-r--r--ext/bg/settings2.html9
3 files changed, 13 insertions, 9 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index 5299ecd2..deb20b00 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -667,7 +667,9 @@ class OptionsUtil {
// Added anki.suspendNewCards.
// Added popupWindow.
// Updated handlebars templates to include "stroke-count" definition.
+ // Updated global.useSettingsV2 to be true (opt-out).
await this._addFieldTemplatesToOptions(options, '/bg/data/anki-field-templates-upgrade-v8.handlebars');
+ options.global.useSettingsV2 = true;
for (const profile of options.profiles) {
profile.options.translation.textReplacements = {
searchOriginal: true,
diff --git a/ext/bg/settings.html b/ext/bg/settings.html
index d206d697..e413c5ff 100644
--- a/ext/bg/settings.html
+++ b/ext/bg/settings.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1" />
- <title>Yomichan Options</title>
+ <title>Yomichan Options (Old)</title>
<link rel="icon" type="image/png" href="/mixed/img/icon16.png" sizes="16x16">
<link rel="icon" type="image/png" href="/mixed/img/icon19.png" sizes="19x19">
<link rel="icon" type="image/png" href="/mixed/img/icon32.png" sizes="32x32">
@@ -21,10 +21,11 @@
<h1>Yomichan Options</h1>
</div>
- <div class="alert alert-info">
- <a style="text-decoration: underline;" href="/bg/settings2.html">
- An updated version of the settings page is available for testing and feedback.
- </a>
+ <div class="alert alert-warning">
+ This is the old version of the settings page, which is currently deprecated and does not include all options.
+ Please use <a href="/bg/settings2.html">the new settings page</a>,
+ and if you have any feedback, feel free to share
+ <a href="https://github.com/FooSoft/yomichan/issues/1000" target="_blank" rel="noopener noreferrer">on Github</a>.
</div>
<div class="profile-form ignore-form-changes">
diff --git a/ext/bg/settings2.html b/ext/bg/settings2.html
index 1927686f..738120bb 100644
--- a/ext/bg/settings2.html
+++ b/ext/bg/settings2.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <title>Yomichan Settings v2</title>
+ <title>Yomichan Settings</title>
<link rel="icon" type="image/png" href="/mixed/img/icon16.png" sizes="16x16">
<link rel="icon" type="image/png" href="/mixed/img/icon19.png" sizes="19x19">
<link rel="icon" type="image/png" href="/mixed/img/icon32.png" sizes="32x32">
@@ -65,15 +65,16 @@
<div class="settings-item-left">
<div class="settings-item-label">
<strong>Notice:</strong>
- This new settings page is currently in beta. Questions, comments, and other feedback
- is welcome and can be shared
+ This settings page is planned to replace
+ <a href="/bg/settings.html">the old settings page</a>.<br>
+ Questions, comments, and other feedback is welcome and can be shared
<a href="https://github.com/FooSoft/yomichan/issues/1000" target="_blank" rel="noopener noreferrer">on Github</a>.
</div>
</div>
</div></div>
<div class="settings-item"><div class="settings-item-inner">
<div class="settings-item-left">
- <div class="settings-item-label">Use the v2 settings page by default</div>
+ <div class="settings-item-label">Use this new settings page by default</div>
</div>
<div class="settings-item-right">
<label class="toggle"><input type="checkbox" data-setting="global.useSettingsV2" data-scope="global"><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label>