mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-23 18:37:14 +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
|
||||
)
|
||||
) {
|
||||
private const val FILTER_CLASS_DESCRIPTOR =
|
||||
"$COMPONENTS_PATH/AdsFilter;"
|
||||
|
||||
override fun execute(context: BytecodeContext) {
|
||||
LithoFilterPatch.addFilter(FILTER_CLASS_DESCRIPTOR)
|
||||
|
||||
@ -117,11 +120,6 @@ object GeneralAdsPatch : BytecodePatch(
|
||||
}
|
||||
} ?: throw NotifierShelfFingerprint.exception
|
||||
|
||||
SettingsPatch.addMusicPreference(
|
||||
CategoryType.ADS,
|
||||
"revanced_close_interstitial_ads",
|
||||
"true"
|
||||
)
|
||||
SettingsPatch.addMusicPreference(
|
||||
CategoryType.ADS,
|
||||
"revanced_hide_interstitial_ads",
|
||||
@ -148,7 +146,4 @@ object GeneralAdsPatch : BytecodePatch(
|
||||
"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_summary">Changes the start page of the app.</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_title">Edit custom filter</string>
|
||||
<string name="revanced_custom_filter_strings_warning">Invalid custom filter, resetting to default.</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user