Skip to content

Commit

Permalink
feat: block channel-guidelines. Fixes #84 (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJeterLP committed Jul 17, 2022
1 parent 5dff1c0 commit 1c095f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
- Usage on Linux: ```adb logcat | grep --line-buffered "ReVanced" > log.txt```

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

Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ private static boolean containsLithoAd(String value, ByteBuffer buffer) {
if (SettingsEnum.ADREMOVER_HIDE_LATEST_POSTS.getBoolean()) {
blockList.add("post_shelf");
}
if (SettingsEnum.ADREMOVER_HIDE_CHANNEL_GUIDELINES.getBoolean()) {
blockList.add("channel_guidelines_entry_banner");
}

if (containsAny(value,
"home_video_with_context",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public enum SettingsEnum {
ADREMOVER_SUGGESTED_FOR_YOU_REMOVAL("revanced_adremover_suggested", true, ReturnType.BOOLEAN),
ADREMOVER_HIDE_SUGGESTIONS("revanced_adremover_hide_suggestions", true, ReturnType.BOOLEAN),
ADREMOVER_HIDE_LATEST_POSTS("revanced_adremover_hide_latest_posts", true, ReturnType.BOOLEAN),
ADREMOVER_HIDE_CHANNEL_GUIDELINES("revanced_adremover_hide_channel_guidelines", true, ReturnType.BOOLEAN),

//Layout settings
REEL_BUTTON_SHOWN("revanced_reel_button_enabled", false, ReturnType.BOOLEAN),
Expand Down

0 comments on commit 1c095f3

Please sign in to comment.