Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit 1c095f3

Browse files
authored
feat: block channel-guidelines. Fixes #84 (#85)
1 parent 5dff1c0 commit 1c095f3

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
- Usage on Linux: ```adb logcat | grep --line-buffered "ReVanced" > log.txt```
88

99
This will write the log to a file called log.txt which you can view then.
10+

app/src/main/java/app/revanced/integrations/patches/GeneralBytecodeAdsPatch.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ private static boolean containsLithoAd(String value, ByteBuffer buffer) {
104104
if (SettingsEnum.ADREMOVER_HIDE_LATEST_POSTS.getBoolean()) {
105105
blockList.add("post_shelf");
106106
}
107+
if (SettingsEnum.ADREMOVER_HIDE_CHANNEL_GUIDELINES.getBoolean()) {
108+
blockList.add("channel_guidelines_entry_banner");
109+
}
107110

108111
if (containsAny(value,
109112
"home_video_with_context",

app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public enum SettingsEnum {
4545
ADREMOVER_SUGGESTED_FOR_YOU_REMOVAL("revanced_adremover_suggested", true, ReturnType.BOOLEAN),
4646
ADREMOVER_HIDE_SUGGESTIONS("revanced_adremover_hide_suggestions", true, ReturnType.BOOLEAN),
4747
ADREMOVER_HIDE_LATEST_POSTS("revanced_adremover_hide_latest_posts", true, ReturnType.BOOLEAN),
48+
ADREMOVER_HIDE_CHANNEL_GUIDELINES("revanced_adremover_hide_channel_guidelines", true, ReturnType.BOOLEAN),
4849

4950
//Layout settings
5051
REEL_BUTTON_SHOWN("revanced_reel_button_enabled", false, ReturnType.BOOLEAN),

0 commit comments

Comments
 (0)