mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 13:17:46 +02:00
feat(YouTube Music/Hide general ads): remove Close interstitial ads
settings
This commit is contained in:
@ -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;"
|
||||
}
|
||||
|
Reference in New Issue
Block a user