mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-24 10:52:10 +02:00
feat(YouTube Music/Hide general ads): remove Close interstitial ads
settings
This commit is contained in:
parent
26c23e137c
commit
7dc0108859
@ -47,6 +47,9 @@ object GeneralAdsPatch : BytecodePatch(
|
|||||||
NotifierShelfFingerprint
|
NotifierShelfFingerprint
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
|
private const val FILTER_CLASS_DESCRIPTOR =
|
||||||
|
"$COMPONENTS_PATH/AdsFilter;"
|
||||||
|
|
||||||
override fun execute(context: BytecodeContext) {
|
override fun execute(context: BytecodeContext) {
|
||||||
LithoFilterPatch.addFilter(FILTER_CLASS_DESCRIPTOR)
|
LithoFilterPatch.addFilter(FILTER_CLASS_DESCRIPTOR)
|
||||||
|
|
||||||
@ -117,11 +120,6 @@ object GeneralAdsPatch : BytecodePatch(
|
|||||||
}
|
}
|
||||||
} ?: throw NotifierShelfFingerprint.exception
|
} ?: throw NotifierShelfFingerprint.exception
|
||||||
|
|
||||||
SettingsPatch.addMusicPreference(
|
|
||||||
CategoryType.ADS,
|
|
||||||
"revanced_close_interstitial_ads",
|
|
||||||
"true"
|
|
||||||
)
|
|
||||||
SettingsPatch.addMusicPreference(
|
SettingsPatch.addMusicPreference(
|
||||||
CategoryType.ADS,
|
CategoryType.ADS,
|
||||||
"revanced_hide_interstitial_ads",
|
"revanced_hide_interstitial_ads",
|
||||||
@ -148,7 +146,4 @@ object GeneralAdsPatch : BytecodePatch(
|
|||||||
"true"
|
"true"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
private const val FILTER_CLASS_DESCRIPTOR =
|
|
||||||
"$COMPONENTS_PATH/AdsFilter;"
|
|
||||||
}
|
}
|
||||||
|
@ -22,9 +22,6 @@
|
|||||||
<string name="revanced_change_start_page_entry_subscription">Subscription</string>
|
<string name="revanced_change_start_page_entry_subscription">Subscription</string>
|
||||||
<string name="revanced_change_start_page_summary">Changes the start page of the app.</string>
|
<string name="revanced_change_start_page_summary">Changes the start page of the app.</string>
|
||||||
<string name="revanced_change_start_page_title">Change start page</string>
|
<string name="revanced_change_start_page_title">Change start page</string>
|
||||||
<string name="revanced_close_interstitial_ads_summary">Automatically closes interstitial ads that cannot be hidden by \"Hide interstitial ads\".</string>
|
|
||||||
<string name="revanced_close_interstitial_ads_title">Close interstitial ads</string>
|
|
||||||
<string name="revanced_close_interstitial_ads_toast">Closing interstitial ads.</string>
|
|
||||||
<string name="revanced_custom_filter_strings_summary">Filter component names by line-seperated.</string>
|
<string name="revanced_custom_filter_strings_summary">Filter component names by line-seperated.</string>
|
||||||
<string name="revanced_custom_filter_strings_title">Edit custom filter</string>
|
<string name="revanced_custom_filter_strings_title">Edit custom filter</string>
|
||||||
<string name="revanced_custom_filter_strings_warning">Invalid custom filter, resetting to default.</string>
|
<string name="revanced_custom_filter_strings_warning">Invalid custom filter, resetting to default.</string>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user