Skip to content

feat(YouTube - Hide player components): Hide related video overlay in fullscreen #4938

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 14, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix name
  • Loading branch information
MarcaDian committed May 10, 2025
commit 14981b604e3b823bb452eb9b73ccd6463212207a
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public class Settings extends BaseSettings {
public static final BooleanSetting HIDE_EMERGENCY_BOX = new BooleanSetting("revanced_hide_emergency_box", TRUE);
public static final BooleanSetting HIDE_ENDSCREEN_CARDS = new BooleanSetting("revanced_hide_endscreen_cards", FALSE);
public static final BooleanSetting HIDE_END_SCREEN_SUGGESTED_VIDEO = new BooleanSetting("revanced_end_screen_suggested_video", FALSE, true);
public static final BooleanSetting HIDE_RELATED_VIDEO_OVERLAY = new BooleanSetting("revanced_related_video_overlay", FALSE, true);
public static final BooleanSetting HIDE_RELATED_VIDEO_OVERLAY = new BooleanSetting("revanced_hide_related_video_overlay", FALSE, true);
public static final BooleanSetting HIDE_HIDE_CHANNEL_GUIDELINES = new BooleanSetting("revanced_hide_channel_guidelines", TRUE);
public static final BooleanSetting HIDE_INFO_PANELS = new BooleanSetting("revanced_hide_info_panels", TRUE);
public static final BooleanSetting HIDE_INFO_CARDS = new BooleanSetting("revanced_hide_info_cards", FALSE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ val hideRelatedVideoOverlayPatch = bytecodePatch(
addResources("youtube", "layout.hide.relatedvideooverlay.hideRelatedVideoOverlayPatch")

PreferenceScreen.PLAYER.addPreferences(
SwitchPreference("revanced_related_video_overlay")
SwitchPreference("revanced_hide_related_video_overlay")
)

relatedEndScreenResultsFingerprint.classDef.methods.find { method ->
Expand Down
6 changes: 3 additions & 3 deletions patches/src/main/resources/addresources/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -856,9 +856,9 @@ Settings → Playback → Autoplay next video"</string>
<string name="revanced_end_screen_suggested_video_summary_off">End screen suggested video is shown</string>
</patch>
<patch id="layout.hide.relatedvideooverlay.hideRelatedVideoOverlayPatch">
<string name="revanced_related_video_overlay_title">Hide related video overlay in fullscreen</string>
<string name="revanced_related_video_overlay_summary_on">Related video overlay is hidden</string>
<string name="revanced_related_video_overlay_summary_off">Related video overlay is shown</string>
<string name="revanced_hide_related_video_overlay_title">Hide related video overlay in fullscreen</string>
<string name="revanced_hide_related_video_overlay_summary_on">Related video overlay is hidden</string>
<string name="revanced_hide_related_video_overlay_summary_off">Related video overlay is shown</string>
</patch>
<patch id="layout.hide.time.hideTimestampPatch">
<string name="revanced_hide_timestamp_title">Hide video timestamp</string>
Expand Down