From 10b7895ca8a2c820982d7eb2a61afda14060bca4 Mon Sep 17 00:00:00 2001
From: inotia00 <108592928+inotia00@users.noreply.github.com>
Date: Thu, 25 Apr 2024 02:37:34 +0900
Subject: [PATCH] chore: lint code
---
.../navigation/NavigationBarHookPatch.kt | 3 --
.../youtube/settings/host/values/strings.xml | 28 +++++++++----------
.../youtube/settings/xml/revanced_prefs.xml | 8 +++---
3 files changed, 18 insertions(+), 21 deletions(-)
diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/navigation/NavigationBarHookPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/navigation/NavigationBarHookPatch.kt
index cf792db5b..795a0cd16 100644
--- a/src/main/kotlin/app/revanced/patches/youtube/utils/navigation/NavigationBarHookPatch.kt
+++ b/src/main/kotlin/app/revanced/patches/youtube/utils/navigation/NavigationBarHookPatch.kt
@@ -17,15 +17,12 @@ import app.revanced.patches.youtube.utils.navigation.fingerprints.PivotBarButton
import app.revanced.patches.youtube.utils.navigation.fingerprints.PivotBarConstructorFingerprint
import app.revanced.patches.youtube.utils.playertype.PlayerTypeHookPatch
import app.revanced.patches.youtube.utils.resourceid.SharedResourceIdPatch
-import app.revanced.util.addFieldAndInstructions
import app.revanced.util.getReference
-import app.revanced.util.getTargetIndex
import app.revanced.util.resultOrThrow
import com.android.tools.smali.dexlib2.Opcode
import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction
import com.android.tools.smali.dexlib2.iface.instruction.Instruction
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
-import com.android.tools.smali.dexlib2.iface.instruction.ReferenceInstruction
import com.android.tools.smali.dexlib2.iface.reference.MethodReference
import com.android.tools.smali.dexlib2.util.MethodUtil
diff --git a/src/main/resources/youtube/settings/host/values/strings.xml b/src/main/resources/youtube/settings/host/values/strings.xml
index 368362e91..f207c74bc 100644
--- a/src/main/resources/youtube/settings/host/values/strings.xml
+++ b/src/main/resources/youtube/settings/host/values/strings.xml
@@ -21,9 +21,9 @@
Hide merchandise shelf
Merchandise shelves are hidden.
Merchandise shelves are shown.
- Hide paid promotion banner
- Paid promotion banner is hidden.
- Paid promotion banner is shown.
+ Hide paid promotion label
+ Paid promotion label is hidden.
+ Paid promotion label is shown.
Hide self sponsored cards
Self sponsored cards are hidden.
Self sponsored cards are shown.
@@ -503,21 +503,21 @@ Instead, use the 'Settings → Autoplay → Autoplay next video' setting."Hide comments section in home feed
Comments section is hidden in home feed.
Comments section is shown in home feed.
- Hide create shorts button
- Create shorts button is hidden.
- Create shorts button is shown.
- Hide emoji picker and time stamp
- Emoji picker and time stamp are hidden.
- Emoji picker and time stamp are shown.
Hide preview comment
Preview comment is hidden.
Preview comment is shown.
Hide preview comment type
This does not change the size of the comment section, so it is possible to open the live chat replay in the comment section.
This changes the size of the comment section, so it is impossible to open a live chat replay in the comment section.
- Hide thanks button
- Thanks button is hidden.
- Thanks button is shown.
+ Hide create shorts button
+ Create shorts button is hidden.
+ Create shorts button is shown.
+ Hide thanks button
+ Thanks button is hidden.
+ Thanks button is shown.
+ Hide timestamp and emoji buttons
+ Timestamp and emoji buttons are hidden.
+ Timestamp and emoji buttons are shown.
Flyout menu
@@ -968,10 +968,10 @@ Limitation: Official headers in search results will be hidden."
Dislikes are not shown.
Show dislikes on Shorts
Dislikes shown on Shorts.
- Dislikes hidden on Shorts.
- "Dislikes shown on Shorts.
+ "Dislikes shown on Shorts.
Limitation: Dislikes may not appear in incognito mode."
+ Dislikes hidden on Shorts.
Dislikes as percentage
Dislikes shown as percentage.
Dislikes shown as number.
diff --git a/src/main/resources/youtube/settings/xml/revanced_prefs.xml b/src/main/resources/youtube/settings/xml/revanced_prefs.xml
index 8edd89cd6..0f1cf6350 100644
--- a/src/main/resources/youtube/settings/xml/revanced_prefs.xml
+++ b/src/main/resources/youtube/settings/xml/revanced_prefs.xml
@@ -7,7 +7,7 @@
-
+
@@ -208,11 +208,11 @@
-
-
-
+
+
+
SETTINGS: HIDE_COMMENTS_COMPONENTS -->