Zoom

Make more the page visible and make icons bigger

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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!)

// ==UserScript==
// @name          Zoom
// @description   Make more the page visible and make icons bigger
// @author        Tirion
// @namespace     http://userstyles.org
// @include       *.horsereality.com/horses*
// @run-at        document-start
// @version       0.5
// @license       MIT
// ==/UserScript==

(function() {
    'use strict';
    setInterval(function () {
        try {
            var horses = document.querySelector('#horses');

            horses.style = "width: 960px; zoom: 40%;"; //zoom: 35%;
            horses.querySelector('.tabdetails').style = "max-width: 10000vw;";
            var contentShadowRoot = document.querySelector('horsereality-horse').shadowRoot;
            var divider = contentShadowRoot.querySelector('#content').querySelector('hr-divider-container').shadowRoot;
            divider.querySelector('ul').style="height: 150px;";
            var svgs = divider.querySelectorAll('svg');
            for (var i = 0; i < svgs.length; i++){
                svgs[i].style = "height: 5em !important;";
            }
        var arrows = contentShadowRoot.querySelectorAll('hr-button-icon');
        arrows[0].shadowRoot.querySelector('hr-int-button').shadowRoot.querySelector('a').querySelector('svg').style = "height: 8em !important; width: 8em !important;";
        arrows[1].shadowRoot.querySelector('hr-int-button').shadowRoot.querySelector('a').querySelector('svg').style = "height: 8em !important; width: 8em !important;";

        } catch (e) {};
    }, 1000);
})();