From 0bbec3a70833edceebf90859e95e31f34204f294 Mon Sep 17 00:00:00 2001 From: tophf Date: Mon, 30 Sep 2024 20:54:09 +0300 Subject: [PATCH] show box-shadow only when loaded --- script.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script.user.js b/script.user.js index ab27f2f..fb0d3bb 100644 --- a/script.user.js +++ b/script.user.js @@ -25,7 +25,7 @@ // @grant GM.setValue // @grant GM.xmlHttpRequest // -// @version 1.4.3 +// @version 1.4.4 // @author tophf // // @original-version 2017.9.29 @@ -3995,6 +3995,7 @@ function createGlobalStyle() { #\mpiv-popup { display: none; cursor: none; + box-shadow: none; ${cfg.uiFadein ? String.raw` animation: .2s \mpiv-fadein both; transition: box-shadow .25s, background-color .25s; @@ -4020,7 +4021,6 @@ ${App.popupStyleBase = ` ${cfg.uiBorder ? `border: ${cfg.uiBorder}px solid ${Util.color('Border')};` : ''} ${cfg.uiPadding ? `padding: ${cfg.uiPadding}px;` : ''} ${cfg.uiMargin ? `margin: ${cfg.uiMargin}px;` : ''} - box-shadow: ${cfg.uiShadow ? `2px 4px ${cfg.uiShadow}px 4px transparent` : 'none'}; } #\mpiv-popup.\mpiv-show[loaded] { background-color: ${Util.color('Background')};