YT Queue fix

Reduces the Queue's miniplayer size

目前为 2019-12-04 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name YT Queue fix
  3. // @version 0.1
  4. // @description Reduces the Queue's miniplayer size
  5. // @author n0thing
  6. // @match https://www.youtube.com/*
  7. // @grant none
  8. // @namespace https://greasyfork.org/users/90770
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. window.addEventListener('load', function () { //wait until page fully loaded before messing with it
  14.  
  15. var newstyle = document.createElement("style");
  16. newstyle.setAttribute("type","text/css");
  17. newstyle.setAttribute("id","cssoverride");
  18. newstyle.innerHTML = "ytd-miniplayer.style-scope.ytd-app{height:413px !important;}";
  19. newstyle.innerHTML += "#player-container.style-scope.ytd-miniplayer{height:64px !important;}";
  20. newstyle.innerHTML += ".video.style-scope.ytd-miniplayer{height:64px !important;}";
  21. document.body.appendChild(newstyle);
  22. }, false);
  23. })();