feat: block channel-guidelines. Fixes #84 (#85)

This commit is contained in:
TheJeterLP 2022-07-17 16:42:05 +02:00 committed by GitHub
parent 5dff1c09ba
commit 1c095f3003
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View File

@ -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.

View File

@ -104,6 +104,9 @@ public class GeneralBytecodeAdsPatch {
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",

View File

@ -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),