From eec90ee04cdfcad08f0448c0f2e860e6eb25294f Mon Sep 17 00:00:00 2001 From: 0xrxL <120989892+0xrxl@users.noreply.github.com> Date: Thu, 29 Dec 2022 17:46:21 +0100 Subject: [PATCH 1/2] feat(youtube): `hide-breaking-news-shelf` patch (#258) Signed-off-by: oSumAtrIX --- .../patches/HideBreakingNewsPatch.java | 14 ++++++++++++++ .../integrations/settings/SettingsEnum.java | 1 + 2 files changed, 15 insertions(+) create mode 100644 app/src/main/java/app/revanced/integrations/patches/HideBreakingNewsPatch.java diff --git a/app/src/main/java/app/revanced/integrations/patches/HideBreakingNewsPatch.java b/app/src/main/java/app/revanced/integrations/patches/HideBreakingNewsPatch.java new file mode 100644 index 00000000..b5efae2b --- /dev/null +++ b/app/src/main/java/app/revanced/integrations/patches/HideBreakingNewsPatch.java @@ -0,0 +1,14 @@ +package app.revanced.integrations.patches; + +import android.view.View; + +import app.revanced.integrations.adremover.AdRemoverAPI; +import app.revanced.integrations.settings.SettingsEnum; + +public class HideBreakingNewsPatch { + //Used by app.revanced.patches.youtube.layout.homepage.breakingnews.patch.BreakingNewsPatch + public static void hideBreakingNews(View view) { + if (!SettingsEnum.HIDE_BREAKING_NEWS.getBoolean()) return; + AdRemoverAPI.HideViewWithLayout1dp(view); + } +} diff --git a/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java b/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java index 4ca378f1..ce6423b9 100644 --- a/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java +++ b/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java @@ -83,6 +83,7 @@ public enum SettingsEnum { HIDE_SHORTS_COMMENTS_BUTTON("revanced_hide_shorts_comments_button", false, ReturnType.BOOLEAN), HIDE_TIME_AND_SEEKBAR("revanced_hide_time_and_seekbar", false, ReturnType.BOOLEAN), HIDE_WATCH_IN_VR("revanced_hide_watch_in_vr", false, ReturnType.BOOLEAN, true), + HIDE_BREAKING_NEWS("revanced_hide_breaking_news", true, ReturnType.BOOLEAN, true), // Misc. Settings FIX_PLAYBACK("revanced_fix_playback", false, ReturnType.BOOLEAN, false), From 12ee45bb68575a40c63c3c8472a61822ce1652e7 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 29 Dec 2022 16:52:01 +0000 Subject: [PATCH 2/2] chore(release): 0.88.0-dev.1 [skip ci] # [0.88.0-dev.1](https://github.com/revanced/revanced-integrations/compare/v0.87.0...v0.88.0-dev.1) (2022-12-29) ### Features * **youtube:** `hide-breaking-news-shelf` patch ([#258](https://github.com/revanced/revanced-integrations/issues/258)) ([eec90ee](https://github.com/revanced/revanced-integrations/commit/eec90ee04cdfcad08f0448c0f2e860e6eb25294f)) --- CHANGELOG.md | 7 +++++++ gradle.properties | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77a6d182..4617d917 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [0.88.0-dev.1](https://github.com/revanced/revanced-integrations/compare/v0.87.0...v0.88.0-dev.1) (2022-12-29) + + +### Features + +* **youtube:** `hide-breaking-news-shelf` patch ([#258](https://github.com/revanced/revanced-integrations/issues/258)) ([eec90ee](https://github.com/revanced/revanced-integrations/commit/eec90ee04cdfcad08f0448c0f2e860e6eb25294f)) + # [0.87.0](https://github.com/revanced/revanced-integrations/compare/v0.86.1...v0.87.0) (2022-12-26) diff --git a/gradle.properties b/gradle.properties index d4d17e78..43957da4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ org.gradle.jvmargs = -Xmx2048m android.useAndroidX = true -version = 0.87.0 +version = 0.88.0-dev.1