YouTube Fix Pink Playback Bar

Fixes Pink Playback Bar Back To Red.

  1. // ==UserScript==
  2. // @name YouTube Fix Pink Playback Bar
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Fixes Pink Playback Bar Back To Red.
  6. // @author F02x
  7. // @match https://www.youtube.com/*
  8. // @license WTFPL
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. // Create a <style> element to hold the CSS
  16. const style = document.createElement('style');
  17.  
  18. // Add the CSS rules from the Stylebot code
  19. style.textContent = `
  20. /* Video player progress bars */
  21. .html5-play-progress, .ytp-play-progress {
  22. background: #FF0000 !important;
  23. }
  24.  
  25. /* Scrubber button in the video player */
  26. div.ytp-scrubber-button.ytp-swatch-background-color {
  27. background: #FF0000 !important;
  28. }
  29.  
  30. /* Additional progress bar element */
  31. div.YtProgressBarLineProgressBarPlayed.YtProgressBarLineProgressBarPlayedRefresh {
  32. background: #FF0000 !important;
  33. }
  34.  
  35. /* Progress bar on video thumbnails */
  36. div.style-scope.ytd-thumbnail-overlay-resume-playback-renderer {
  37. background: #FF0000 !important;
  38. }
  39. `;
  40.  
  41. // Append the style element to the document's <head>
  42. document.head.appendChild(style);
  43. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址