misc: drop homescreen shortcut button

this feature is no longer needed since you can add shortcut from webui-x manager.
This commit is contained in:
KOWX712
2025-07-03 20:53:55 +08:00
parent e4f1c7fcc8
commit b58397da61
5 changed files with 0 additions and 14 deletions

View File

@@ -82,7 +82,6 @@
<li class="ripple-element" id="customkb" data-i18n="menu_set_custom_keybox"></li> <li class="ripple-element" id="customkb" data-i18n="menu_set_custom_keybox"></li>
<li class="ripple-element" id="boot-hash" data-i18n="menu_set_verified_boot_hash"></li> <li class="ripple-element" id="boot-hash" data-i18n="menu_set_verified_boot_hash"></li>
<li class="ripple-element" id="security-patch" data-i18n="menu_set_security_patch"></li> <li class="ripple-element" id="security-patch" data-i18n="menu_set_security_patch"></li>
<li class="ripple-element" id="shortcut" data-i18n="menu_shortcut"></li>
<li class="ripple-element" id="about" data-i18n="menu_about"></li> <li class="ripple-element" id="about" data-i18n="menu_about"></li>
</ul> </ul>
</div> </div>

View File

@@ -53,7 +53,6 @@
<string name="menu_set_verified_boot_hash">Set Verified Boot Hash</string> <string name="menu_set_verified_boot_hash">Set Verified Boot Hash</string>
<string name="menu_set_security_patch">Set Security Patch</string> <string name="menu_set_security_patch">Set Security Patch</string>
<string name="menu_about">About</string> <string name="menu_about">About</string>
<string name="menu_shortcut">Create home screen shortcut</string>
<!-- Boot Hash --> <!-- Boot Hash -->
<string name="boot_hash_title">Boot Hash</string> <string name="boot_hash_title">Boot Hash</string>
<string name="boot_hash_input_placeholder">Paste your verified Boot Hash here</string> <string name="boot_hash_input_placeholder">Paste your verified Boot Hash here</string>
@@ -95,7 +94,6 @@
<string name="prompt_no_file_selected">No file selected</string> <string name="prompt_no_file_selected">No file selected</string>
<string name="prompt_system_app_not_found">System app not found</string> <string name="prompt_system_app_not_found">System app not found</string>
<string name="prompt_system_app_error">Failed to add system app</string> <string name="prompt_system_app_error">Failed to add system app</string>
<string name="prompt_shortcut_created">Home screen shortcut created</string>
<!-- Security Patch --> <!-- Security Patch -->
<string name="security_patch_title">Security Patch</string> <string name="security_patch_title">Security Patch</string>
<string name="security_patch_advanced_mode">Advanced</string> <string name="security_patch_advanced_mode">Advanced</string>

View File

@@ -53,7 +53,6 @@
<string name="menu_set_verified_boot_hash">Set Verified Boot Hash</string> <string name="menu_set_verified_boot_hash">Set Verified Boot Hash</string>
<string name="menu_set_security_patch">Set Security Patch</string> <string name="menu_set_security_patch">Set Security Patch</string>
<string name="menu_about">About</string> <string name="menu_about">About</string>
<string name="menu_shortcut">Create home screen shortcut</string>
<!-- Boot Hash --> <!-- Boot Hash -->
<string name="boot_hash_title">Boot Hash</string> <string name="boot_hash_title">Boot Hash</string>
<string name="boot_hash_input_placeholder">Paste your verified Boot Hash here</string> <string name="boot_hash_input_placeholder">Paste your verified Boot Hash here</string>
@@ -95,7 +94,6 @@
<string name="prompt_no_file_selected">No file selected</string> <string name="prompt_no_file_selected">No file selected</string>
<string name="prompt_system_app_not_found">System app not found</string> <string name="prompt_system_app_not_found">System app not found</string>
<string name="prompt_system_app_error">Failed to add system app</string> <string name="prompt_system_app_error">Failed to add system app</string>
<string name="prompt_shortcut_created">Home screen shortcut created</string>
<!-- Security Patch --> <!-- Security Patch -->
<string name="security_patch_title">Security Patch</string> <string name="security_patch_title">Security Patch</string>
<string name="security_patch_advanced_mode">Advanced</string> <string name="security_patch_advanced_mode">Advanced</string>

View File

@@ -205,14 +205,6 @@ function checkMMRL() {
if (window.$tricky_store && Object.keys($tricky_store).length > 0) { if (window.$tricky_store && Object.keys($tricky_store).length > 0) {
// Set status bars theme based on device theme // Set status bars theme based on device theme
$tricky_store.setLightStatusBars(!window.matchMedia('(prefers-color-scheme: dark)').matches) $tricky_store.setLightStatusBars(!window.matchMedia('(prefers-color-scheme: dark)').matches)
// Create home screen shortcut
const shortcutButton = document.getElementById('shortcut');
shortcutButton.style.display = 'flex';
shortcutButton.addEventListener('click', () => {
$tricky_store.createShortcut();
showPrompt("prompt_shortcut_created", true);
});
} }
} }

View File

@@ -113,7 +113,6 @@
user-select: none; user-select: none;
} }
#shortcut,
#select-denylist, #select-denylist,
#security-patch { #security-patch {
display: none; display: none;