Youtube Music Videoplayer Remover

Prevents the videoplayer from displaying. This does not stop video playback requests from happening and thus not save you data.

  1. // ==UserScript==
  2. // @name Youtube Music Videoplayer Remover
  3. // @namespace https://gist.github.com/stef1904berg/6fb39fc40f6a3cb0655aa1fb7141c81a
  4. // @license MIT
  5. // @version 1.5
  6. // @description Prevents the videoplayer from displaying. This does not stop video playback requests from happening and thus not save you data.
  7. // @author stef1904berg
  8. // @match https://music.youtube.com/*
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
  10. // @run-at document-end
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. window.addEventListener('load', function () {
  15. document.getElementById("main-panel").remove()
  16. let playingElement = document.getElementsByClassName("side-panel modular style-scope ytmusic-player-page")[0]
  17. playingElement.classList.remove("side-panel");
  18. playingElement.style.width = "100%";
  19. })
  20. })();