mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-06 09:34:37 +02:00
feat(YouTube): remove Spoof player parameters
patch
This commit is contained in:
parent
1a0d125734
commit
b5d699c5f4
@ -25,8 +25,9 @@ import app.revanced.util.resultOrThrow
|
||||
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Suppress("unused")
|
||||
@Deprecated("This patch will be removed in the future.")
|
||||
object SpoofPlayerParameterPatch : BaseBytecodePatch(
|
||||
name = "Spoof player parameters",
|
||||
// name = "Spoof player parameters",
|
||||
description = "Adds options to spoof player parameters to prevent playback issues.",
|
||||
dependencies = setOf(
|
||||
PlayerTypeHookPatch::class,
|
||||
@ -172,6 +173,7 @@ object SpoofPlayerParameterPatch : BaseBytecodePatch(
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE_CATEGORY: MISC_EXPERIMENTAL_FLAGS",
|
||||
"SETTINGS: SPOOF_PLAYER_PARAMETER"
|
||||
)
|
||||
)
|
||||
|
@ -548,6 +548,9 @@
|
||||
<!-- SETTINGS: SANITIZE_SHARING_LINKS
|
||||
<SwitchPreference android:title="@string/revanced_sanitize_sharing_links_title" android:key="revanced_sanitize_sharing_links" android:defaultValue="true" android:summary="@string/revanced_sanitize_sharing_links_summary" />SETTINGS: SANITIZE_SHARING_LINKS -->
|
||||
|
||||
<!-- PREFERENCE_CATEGORY: MISC_EXPERIMENTAL_FLAGS
|
||||
<PreferenceCategory android:title="@string/revanced_preference_category_experimental_flag" android:layout="@layout/revanced_settings_preferences_category"/>PREFERENCE_CATEGORY: MISC_EXPERIMENTAL_FLAGS -->
|
||||
|
||||
<!-- SETTINGS: SPOOF_PLAYER_PARAMETER
|
||||
<SwitchPreference android:title="@string/revanced_spoof_player_parameter_title" android:key="revanced_spoof_player_parameter" android:defaultValue="false" android:summary="@string/revanced_spoof_player_parameter_summary" />
|
||||
<SwitchPreference android:title="@string/revanced_spoof_player_parameter_in_feed_title" android:key="revanced_spoof_player_parameter_in_feed" android:defaultValue="false" android:summaryOn="@string/revanced_spoof_player_parameter_in_feed_summary_on" android:summaryOff="@string/revanced_spoof_player_parameter_in_feed_summary_off" android:dependency="revanced_spoof_player_parameter" />SETTINGS: SPOOF_PLAYER_PARAMETER -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user