From e1481146d331a032f73f2cb27d53c1a338c7eb03 Mon Sep 17 00:00:00 2001 From: bubbo <85169821+xbubbo@users.noreply.github.com> Date: Sun, 21 Jan 2024 20:17:36 -0500 Subject: [PATCH] Revert "Fix Now.GG alignment issue" --- static/assets/scripts/now.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/static/assets/scripts/now.js b/static/assets/scripts/now.js index 88bbdf1c8..94aa4f2f9 100644 --- a/static/assets/scripts/now.js +++ b/static/assets/scripts/now.js @@ -25,8 +25,7 @@ function adjustElements() { var fullscreen = innerDoc.getElementById('ng-fs') || innerDoc.querySelector('.sc-kOcGyv.dkAhwC') if (roblox && controlBar) { - roblox.style.top = null - roblox.style.marginTop = '110%' + roblox.style.top = '415px' controlBar.style.top = '91%' console.log('%cSuccessfully adjusted Now.GG.', 'font-size: 15px; color: green;') @@ -81,7 +80,7 @@ function adjust() { var customClassElement = innerDoc.querySelector('.sc-rUGft.hLgqJJ') if (roblox) { - checkAndAdjustStyles(roblox, 'marginTop', ['110%']) + checkAndAdjustStyles(roblox, 'top', ['415px']) } if (controlBar) { @@ -128,7 +127,7 @@ function fullscreenClickHandler(event) { console.log('%cFullscreen button clicked.', 'font-size: 15px; color: orange;') - console.log('%cAdjusting height to 110%...', 'font-size: 15px; color: orange;') + console.log('%cAdjusting height to 415px...', 'font-size: 15px; color: orange;') var iframe = top.document.getElementById('iframeId') if (iframe) { @@ -137,9 +136,8 @@ function fullscreenClickHandler(event) { setTimeout(function () { if (roblox) { - roblox.style.top = null - roblox.style.marginTop = '110%' - console.log('%cHeight adjusted to 110%.', 'font-size: 15px; color: green;') + roblox.style.top = '415px' + console.log('%cHeight adjusted to 415px.', 'font-size: 15px; color: green;') heightAdjusted = true } }, 3000)