feat(YouTube Music/Hide general ads): remove Close interstitial ads settings

This commit is contained in:
inotia00 2023-12-23 16:36:25 +09:00
parent 26c23e137c
commit 7dc0108859
2 changed files with 3 additions and 11 deletions

View File

@ -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;"
}

View File

@ -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>