mirror of
https://github.com/revanced/revanced-patches
synced 2024-12-02 21:12:57 +01:00
feat(YouTube): Hide player shopping shelf in playlists (#3806)
This commit is contained in:
parent
99851dd032
commit
a553a13c03
@ -31,6 +31,7 @@ object HideAdsResourcePatch : ResourcePatch() {
|
|||||||
SwitchPreference("revanced_hide_fullscreen_ads"),
|
SwitchPreference("revanced_hide_fullscreen_ads"),
|
||||||
SwitchPreference("revanced_hide_buttoned_ads"),
|
SwitchPreference("revanced_hide_buttoned_ads"),
|
||||||
SwitchPreference("revanced_hide_paid_promotion_label"),
|
SwitchPreference("revanced_hide_paid_promotion_label"),
|
||||||
|
SwitchPreference("revanced_hide_player_store_shelf"),
|
||||||
SwitchPreference("revanced_hide_self_sponsor_ads"),
|
SwitchPreference("revanced_hide_self_sponsor_ads"),
|
||||||
SwitchPreference("revanced_hide_products_banner"),
|
SwitchPreference("revanced_hide_products_banner"),
|
||||||
SwitchPreference("revanced_hide_shopping_links"),
|
SwitchPreference("revanced_hide_shopping_links"),
|
||||||
|
@ -91,10 +91,6 @@ object HideLayoutComponentsPatch : BytecodePatch(
|
|||||||
override fun execute(context: BytecodeContext) {
|
override fun execute(context: BytecodeContext) {
|
||||||
AddResourcesPatch(this::class)
|
AddResourcesPatch(this::class)
|
||||||
|
|
||||||
SettingsPatch.PreferenceScreen.ADS.addPreferences(
|
|
||||||
SwitchPreference("revanced_hide_player_store_shelf"),
|
|
||||||
)
|
|
||||||
|
|
||||||
SettingsPatch.PreferenceScreen.PLAYER.addPreferences(
|
SettingsPatch.PreferenceScreen.PLAYER.addPreferences(
|
||||||
PreferenceScreen(
|
PreferenceScreen(
|
||||||
key = "revanced_hide_description_components_screen",
|
key = "revanced_hide_description_components_screen",
|
||||||
|
@ -107,9 +107,6 @@ This is because Crowdin requires temporarily flattening this file and removing t
|
|||||||
<string name="revanced_disable_like_subscribe_glow_title">Disable like / subscribe button glow</string>
|
<string name="revanced_disable_like_subscribe_glow_title">Disable like / subscribe button glow</string>
|
||||||
<string name="revanced_disable_like_subscribe_glow_summary_on">Like and subscribe button will not glow when mentioned</string>
|
<string name="revanced_disable_like_subscribe_glow_summary_on">Like and subscribe button will not glow when mentioned</string>
|
||||||
<string name="revanced_disable_like_subscribe_glow_summary_off">Like and subscribe button will glow when mentioned</string>
|
<string name="revanced_disable_like_subscribe_glow_summary_off">Like and subscribe button will glow when mentioned</string>
|
||||||
<string name="revanced_hide_player_store_shelf_title">Hide player shopping shelf</string>
|
|
||||||
<string name="revanced_hide_player_store_shelf_summary_on">Shopping shelf is hidden</string>
|
|
||||||
<string name="revanced_hide_player_store_shelf_summary_off">Shopping shelf is shown</string>
|
|
||||||
<string name="revanced_hide_album_cards_title">Hide album cards</string>
|
<string name="revanced_hide_album_cards_title">Hide album cards</string>
|
||||||
<string name="revanced_hide_album_cards_summary_on">Album cards are hidden</string>
|
<string name="revanced_hide_album_cards_summary_on">Album cards are hidden</string>
|
||||||
<string name="revanced_hide_album_cards_summary_off">Album cards are shown</string>
|
<string name="revanced_hide_album_cards_summary_off">Album cards are shown</string>
|
||||||
@ -339,6 +336,9 @@ This is because Crowdin requires temporarily flattening this file and removing t
|
|||||||
<string name="revanced_hide_products_banner_title">Hide banner to view products</string>
|
<string name="revanced_hide_products_banner_title">Hide banner to view products</string>
|
||||||
<string name="revanced_hide_products_banner_summary_on">Banner is hidden</string>
|
<string name="revanced_hide_products_banner_summary_on">Banner is hidden</string>
|
||||||
<string name="revanced_hide_products_banner_summary_off">Banner is shown</string>
|
<string name="revanced_hide_products_banner_summary_off">Banner is shown</string>
|
||||||
|
<string name="revanced_hide_player_store_shelf_title">Hide player shopping shelf</string>
|
||||||
|
<string name="revanced_hide_player_store_shelf_summary_on">Shopping shelf is hidden</string>
|
||||||
|
<string name="revanced_hide_player_store_shelf_summary_off">Shopping shelf is shown</string>
|
||||||
<string name="revanced_hide_shopping_links_title">Hide shopping links in video description</string>
|
<string name="revanced_hide_shopping_links_title">Hide shopping links in video description</string>
|
||||||
<string name="revanced_hide_shopping_links_summary_on">Shopping links are hidden</string>
|
<string name="revanced_hide_shopping_links_summary_on">Shopping links are hidden</string>
|
||||||
<string name="revanced_hide_shopping_links_summary_off">Shopping links are shown</string>
|
<string name="revanced_hide_shopping_links_summary_off">Shopping links are shown</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user