Skip to content

Commit

Permalink
feat(youtube): hide-load-more-button patch (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnconner122 committed May 7, 2023
1 parent 43b007e commit 7da9d44
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
@@ -0,0 +1,13 @@
package app.revanced.integrations.patches;

import android.view.View;

import app.revanced.integrations.adremover.AdRemoverAPI;
import app.revanced.integrations.settings.SettingsEnum;

public class HideLoadMoreButtonPatch {
public static void hideLoadMoreButton(View view){
if(!SettingsEnum.HIDE_LOAD_MORE_BUTTON.getBoolean()) return;
AdRemoverAPI.HideViewWithLayout1dp(view);
}
}
Expand Up @@ -91,6 +91,7 @@ public enum SettingsEnum {
HIDE_FULLSCREEN_PANELS("revanced_hide_fullscreen_panels", BOOLEAN, TRUE),
HIDE_GET_PREMIUM("revanced_hide_get_premium", BOOLEAN, TRUE),
HIDE_INFO_CARDS("revanced_hide_infocards", BOOLEAN, TRUE),
HIDE_LOAD_MORE_BUTTON("revanced_hide_load_more_button", BOOLEAN, TRUE, true),
HIDE_PLAYER_BUTTONS("revanced_hide_player_buttons", BOOLEAN, FALSE),
HIDE_PREVIEW_COMMENT("revanced_hide_preview_comment", BOOLEAN, FALSE, true),
HIDE_SEEKBAR("revanced_hide_seekbar", BOOLEAN, FALSE),
Expand Down Expand Up @@ -429,4 +430,4 @@ public enum ReturnType {
LONG,
FLOAT,
}
}
}

0 comments on commit 7da9d44

Please sign in to comment.