Last active
January 22, 2019 23:00
-
-
Save shu8/2bac4ef1a92b47042715 to your computer and use it in GitHub Desktop.
Hide YouTube videos (only listen to the audio)
This file contains 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
// ==UserScript== | |
// @name Youtube Video hider (to only listen to audio) | |
// @namespace http://stackexchange.com/users/4337810/ | |
// @version 1.1 | |
// @description A userscript that hides most of the video content on youtube, so you can listen rather than watch! | |
// @author ᔕᖺᘎᕊ (http://stackexchange.com/users/4337810/) | |
// @match *://*.youtube.com/* | |
// @run-at document-end | |
// @grant none | |
// ==/UserScript== | |
window.onload = function() { | |
document.getElementById('player-api').style.height = '50px'; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perhaps modifying this as follows makes sense for clicks after window is loaded (or playlists):