YouTube Date Display Fix

Fix YouTube uploaded date bug on small screens. Can be used on large screens too.

  1. // ==UserScript==
  2. // @name YouTube Date Display Fix
  3. // @name:pt-BR Correção de exibição de data de envio do YouTube
  4. // @namespace André Augusto
  5. // @version 1.1.11.05.2020
  6. // @icon https://i.imgur.com/DjnjsJX.png
  7. // @description Fix YouTube uploaded date bug on small screens. Can be used on large screens too.
  8. // @description:pt-BR Correção da data de envio do vídeo não sendo exibida corretamente em telas pequenas.
  9. // @author André Augusto
  10. // @match *://www.youtube.com/*
  11. // @run-at document-start
  12. // @grant none
  13. // @require http://code.jquery.com/jquery-3.4.1.min.js
  14.  
  15. // ==/UserScript==
  16.  
  17. // Method using jQuery and position after subscribers
  18. window.onload = function() {
  19. $('#date').remove().insertAfter($("#channel-name"));
  20. //$('#date').remove().insertAfter($("#owner-sub-count"));
  21. //$('#dot').remove()
  22. };
  23.  
  24. /*function addGlobalStyle(css) {
  25. var head, style;
  26. head = document.getElementsByTagName('head')[0];
  27. if (!head) { return; }
  28. style = document.createElement('style');
  29. style.type = 'text/css';
  30. style.innerHTML = css;
  31. head.appendChild(style);
  32. }
  33.  
  34. addGlobalStyle('.ytd-watch-flexy { --ytd-watch-flexy-max-player-width: auto; }');
  35. */