From 60239d120b269a629939c086281f1fd597044f03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Andreas=20Nilsen?= Date: Wed, 21 Aug 2024 13:45:36 +0200 Subject: [PATCH] topdesk - message will be on top instead of bottom of screen. Shorter time before the message fades out. --- topdesk.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/topdesk.user.js b/topdesk.user.js index 93737c0..bec42c2 100644 --- a/topdesk.user.js +++ b/topdesk.user.js @@ -28,7 +28,7 @@ const messageBox = document.createElement('div'); messageBox.textContent = message; messageBox.style.position = 'fixed'; - messageBox.style.bottom = '20px'; + messageBox.style.top = '20px'; messageBox.style.left = '50%'; messageBox.style.transform = 'translateX(-50%)'; messageBox.style.backgroundColor = '#333'; @@ -37,7 +37,7 @@ messageBox.style.borderRadius = '5px'; messageBox.style.zIndex = '10000'; messageBox.style.opacity = '1'; - messageBox.style.transition = 'opacity 2s ease-out'; + messageBox.style.transition = 'opacity 1s ease-out'; document.body.appendChild(messageBox); setTimeout(() => {