YouTube Normal Thumbnails

Restores normal thumbnails size

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

"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();
})();