mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-06-12 05:07:37 +02:00
fix(youtube/general-ads): hide bytecode home ad view
This commit is contained in:
@ -136,4 +136,14 @@ public final class GeneralAdsPatch extends Filter {
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Hide the specific view, which shows ads in the homepage.
|
||||
*
|
||||
* @param view The view, which shows ads.
|
||||
*/
|
||||
public static void hideAdAttributionView(View view) {
|
||||
if (!SettingsEnum.ADREMOVER_GENERAL_ADS_REMOVAL.getBoolean()) return;
|
||||
AdRemoverAPI.HideViewWithLayout1dp(view);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user