Skip to content

Commit

Permalink
Merge pull request #394 from InterstellarNetwork/revert-393-patch-1
Browse files Browse the repository at this point in the history
Revert "Fix Now.GG alignment issue"
  • Loading branch information
xbubbo authored Jan 22, 2024
2 parents cf6423c + 45e12d0 commit a5c148f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions static/assets/scripts/now.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;')

Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand All @@ -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)
Expand Down

0 comments on commit a5c148f

Please sign in to comment.