YouTube Normal Thumbnails

Restores normal thumbnails size

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

"use strict";
// ==UserScript==
// @name         YouTube Normal Thumbnails
// @namespace    http://greasyfork.org
// @version      0.7.1
// @description  Restores normal thumbnails size
// @author       NeoCortex
// @license      MIT
// @match        *://www.youtube.com/*
// @match        *://youtube.com/*
// @run-at       document-start
// @grant        none
// ==/UserScript==
(function () {
    var styles = "\n    ytd-rich-grid-video-renderer[mini-mode] #video-title.ytd-rich-grid-video-renderer {\n        font-size: 1.4rem;\n        font-weight: 500;\n        line-height: 1.6rem;\n    }\n\n    #avatar-link.ytd-rich-grid-video-renderer {\n        display: none !important;\n    }\n\n    ytd-video-renderer[use-prominent-thumbs] ytd-thumbnail.ytd-video-renderer {\n        min-width: 120px !important;\n        max-width: 240px !important;\n    }\n    ".trim();
    var YoutubeThumbnailsFixer = /** @class */ (function () {
        function YoutubeThumbnailsFixer() {
            var _this = this;
            this.replaceMathMin();
            document.addEventListener("DOMContentLoaded", function () { return _this.installStyle(styles); });
        }
        YoutubeThumbnailsFixer.prototype.replaceMathMin = function () {
            var origMathMin = Math.min;
            function modifiedMathMin() {
                if (/calcElementsPerRow/img.test(Error().stack || '')) {
                    return origMathMin.apply(Math, arguments) + 1;
                }
                return origMathMin.apply(Math, arguments);
            }
            Math.min = modifiedMathMin;
        };
        YoutubeThumbnailsFixer.prototype.installStyle = function (contents) {
            var style = document.createElement('style');
            style.innerHTML = contents;
            document.body.appendChild(style);
        };
        return YoutubeThumbnailsFixer;
    }());
    new YoutubeThumbnailsFixer();
})();