From 5784318de537ac7a88e0e10c488c783d9bc0c020 Mon Sep 17 00:00:00 2001 From: Ashley Date: Mon, 15 May 2023 16:30:02 +0000 Subject: [PATCH] remove useless code --- css/custom-css.js | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/css/custom-css.js b/css/custom-css.js index 06148bf6..ba16af00 100644 --- a/css/custom-css.js +++ b/css/custom-css.js @@ -45,31 +45,5 @@ if (window.location.hostname === "poketube.fun" && config.plausible_enabled == t } } -const setFont = () => { - const poketubeFlexFont = 'Poketube Flex'; - const gintoNordFont = 'Ginto Nord'; - const gintoNordWidth = '1000px'; - - const elements = document.getElementsByTagName('*'); - - for (let i = 0; i < elements.length; i++) { - const style = window.getComputedStyle(elements[i]); - const font = style.getPropertyValue('font-family'); - const width = style.getPropertyValue('width'); - - if (font === poketubeFlexFont && width === gintoNordWidth) { - elements[i].style.fontFamily = gintoNordFont; - } - } -}; - -const userAgent = window.navigator.userAgent; -const isWindows10OrNewer = /Windows NT 10/.test(userAgent); -const isOlderWindows = /Windows NT [6-8]\./.test(userAgent); - -if (isOlderWindows && !isWindows10OrNewer) { - setFont(); -} - -// @license-end +// @license-end \ No newline at end of file