diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-01-29 16:46:15 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-01-29 16:46:15 +0100 |
commit | 34ea3829e7cb435a4357b43fcfff514fdd39083e (patch) | |
tree | 8293b7f4a9e5d9e45341609595c754ff115a2771 /yomichan/settings.html.diff | |
parent | ae34a31fd4beb438118f6129e867b6f3cf2ba602 (diff) |
separate yomichan into user.js patch and sentence-export plugin
Diffstat (limited to 'yomichan/settings.html.diff')
-rw-r--r-- | yomichan/settings.html.diff | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/yomichan/settings.html.diff b/yomichan/settings.html.diff new file mode 100644 index 0000000..2644ab3 --- /dev/null +++ b/yomichan/settings.html.diff @@ -0,0 +1,69 @@ +--- yomichan-original/settings.html 2022-10-30 12:39:42.000000000 +0100 ++++ yomichan/settings.html 2023-01-29 15:42:10.643564451 +0100 +@@ -14,6 +14,8 @@ + <link rel="stylesheet" type="text/css" href="/css/material.css"> + <link rel="stylesheet" type="text/css" href="/css/settings.css"> + <link rel="stylesheet" type="text/css" href="/css/display-pronunciation.css"> ++ <link rel="stylesheet" type="text/css" href="/css/icons.css"> ++ <link rel="stylesheet" type="text/css" href="/css/userscript-settings.css"> + </head> + <body> + +@@ -39,6 +41,7 @@ + <a href="#!backup" class="button outline-item"><span class="outline-item-left"><span class="outline-item-icon icon" data-icon="backup"></span></span><span class="outline-item-label">Backup</span></a> + <a href="#!accessibility" class="button outline-item"><span class="outline-item-left"><span class="outline-item-icon icon" data-icon="accessibility"></span></span><span class="outline-item-label">Accessibility</span></a> + <a href="#!security" class="button outline-item advanced-only"><span class="outline-item-left"><span class="outline-item-icon icon" data-icon="lock"></span></span><span class="outline-item-label">Security</span></a> ++ <a href="#!userscript" class="button outline-item advanced-only"><span class="outline-item-left"><span class="outline-item-icon icon" data-icon="script"></span></span><span class="outline-item-label">User script</span></a> + </div> + <div class="sidebar-bottom"> + <label class="button outline-item"><span class="outline-item-left"> +@@ -2152,6 +2155,19 @@ + </div> + </div> + ++ <div class="heading-container advanced-only"> ++ <div class="heading-container-icon"><span class="icon" data-icon="script"></span></div> ++ <div class="heading-container-left"><h2 id="userscript"><a href="#!userscript">User script</a></h2></div> ++ </div> ++ <div class="settings-group advanced-only"> ++ <div class="settings-item settings-item-button" data-modal-action="show,user-script"><div class="settings-item-inner"> ++ <div class="settings-item-left"><div class="settings-item-label">Configure user.js…</div></div> ++ <div class="settings-item-right open-panel-button-container"> ++ <button class="icon-button"><span class="icon-button-inner"><span class="icon" data-icon="material-right-arrow"></span></span></button> ++ </div> ++ </div></div> ++ </div> ++ + <div class="footer-padding"></div> + + </div> +@@ -3802,6 +3818,29 @@ + </div></template> + + ++<div id="user-script-modal" class="modal modal-left" tabindex="-1" role="dialog" hidden><div class="modal-content-container1"> ++ <div class="modal-content-container2 modal-content-dimmer"><div class="modal-content"> ++ <div class="modal-header"> ++ <div class="modal-title">User script</div> ++ <div class="modal-header-button-container"> ++ <div class="modal-header-button-group"> ++ <button class="icon-button modal-header-button" data-modal-action="expand"><span class="icon-button-inner"><span class="icon" data-icon="expand"></span></span></button> ++ <button class="icon-button modal-header-button" data-modal-action="collapse"><span class="icon-button-inner"><span class="icon" data-icon="collapse"></span></span></button> ++ </div> ++ </div> ++ </div> ++ <div class="modal-body" id="user-script-container"> ++ <div class="user-script-header">user.js (runs on search page and in popup frame)</div> ++ <textarea class="no-wrap" autocomplete="off" spellcheck="false" id="user-script-editor" data-setting="general.userScript" data-tab-action="indent,4"></textarea> ++ </div> ++ <div class="modal-footer"> ++ <button data-modal-action="hide">Close</button> ++ </div> ++ </div></div> ++ <div class="modal-content-container1-fade"></div> ++</div></div> ++ ++ + <!-- Scripts --> + <script src="/lib/wanakana.min.js"></script> + |