CSS: youtube.com

Corrections to UI of youtube.com: progress bar

Versión del día 22/04/2022. Echa un vistazo a la versión más reciente.

// ==UserScript==
// @name          CSS: youtube.com
// @description   Corrections to UI of youtube.com: progress bar
// @author        MK
// @namespace     max44
// @homepage      https://greasyforks.org/en/users/309172-max44
// @match         https://www.youtube.com/*
// @match         https://m.youtube.com/*
// @icon          https://icons.duckduckgo.com/ip2/youtube.com.ico
// @version       1.0
// @license       MIT
// ==/UserScript==

(function() {
  var css = `
  ytd-thumbnail-overlay-resume-playback-renderer:not(.foo) {
    display: block !important;
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0) !important;
    transition: all 0s ease 0s !important;
  }
  ytd-thumbnail-overlay-resume-playback-renderer:hover:not(.foo) {
    height: inherit !important;
    opacity: 1 !important;
  }
  #progress.ytd-thumbnail-overlay-resume-playback-renderer:not(.foo) {
    display: block !important;
    background-color: red !important;
    opacity: 1 !important;
  }
  ytd-app ytd-thumbnail-overlay-time-status-renderer:not(.foo) {
    font-size: 12px !important;
    height: 12px !important;
    line-height: 12px !important;
    opacity: 1 !important;
    padding: 3px 4px !important;
  }
  `;

  if (typeof GM_addStyle != 'undefined') {
    GM_addStyle(css);
  } else if (typeof PRO_addStyle != 'undefined') {
    PRO_addStyle(css);
  } else if (typeof addStyle != 'undefined') {
    addStyle(css);
  } else {
    var node = document.createElement('style');
    node.type = 'text/css';
    node.appendChild(document.createTextNode(css));
    document.documentElement.appendChild(node);
  }
})();
长期地址
遇到问题?请前往 GitHub 提 Issues。