Youtube - toggle related button

Creates a button on the top header to show/hide related section

Author
barn852
Daily installs
0
Total installs
78
Ratings
2 0 0
Version
3.0.1
Created
2021-07-14
Updated
2021-12-30
License
MIT
Applies to

Hides related section on watch page and creates a button on the right of the search box to show/hide it.
Thanks @nightlancerx and @ev-haus for their contribution.

If you want to toggle the related videos with the description, see my other script: https://greasyfork.org/en/scripts/437821-youtube-right-side-description-with-toggle-button

Or just without any toggle button: https://greasyfork.org/en/scripts/438747-youtube-description-on-the-right-side-above-related-videos

UPDATE: A new mod is available, it toggles the description/comments/related vids: https://greasyfork.org/en/scripts/449600-youtube-right-side-description-comments-related-vids-with-toggle-button