Created
May 29, 2023 21:16
-
-
Save oscarmarina/8e0d148acbd4507d7aec15f8929c5adc to your computer and use it in GitHub Desktop.
Bookmark - Toggle the YouTube Bar/Controls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function () { | |
var style = document.querySelector('#toggle-ytp'); | |
if (style) { | |
style.remove(); | |
} else { | |
var selector = '.ytp-chrome-top,.ytp-chrome-bottom'; | |
style = document.createElement('style'); | |
style.id = 'toggle-ytp'; | |
style.textContent = selector + '{display:none;}'; | |
document.head.appendChild(style); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment