YouTube Date Display Fix

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

09.03.2020 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         YouTube Date Display Fix
// @name:pt-BR   Correção de exibição de data de envio do YouTube
// @namespace    André Augusto
// @version      1.0 09.03.2020
// @description  Fix YouTube uploaded date bug on small screens. Can be used on large screens too.
// @description:pt-BR  Correção da data de envio do vídeo não sendo exibida corretamente em telas pequenas.
// @author       André Augusto
// @match        *://www.youtube.com/*
// @run-at       document-start
// @grant        none
// @require http://code.jquery.com/jquery-3.4.1.min.js

// ==/UserScript==

// Method using jQuery and position after subscribers
//window.onload = function() {
//    $('#date').remove().insertAfter($("#owner-sub-count"));
//    $('#dot').remove();
//};

function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

addGlobalStyle('.ytd-watch-flexy { --ytd-watch-flexy-max-player-width: auto; }');