@@ -2902,7 +2902,7 @@ <h3>Status</h3>
29022902 var width = parseNumericValue ( widthValue ) ;
29032903 var color = colorValue || "#000000" ;
29042904 var shadow = buildOutlineShadow ( width === null ? 2 : width , color ) ;
2905- document . documentElement . style . setProperty ( "--text-shadow" , shadow ) ;
2905+ setTextShadow ( shadow ) ;
29062906 }
29072907
29082908 function resolveGlowColor ( colorValue ) {
@@ -2938,6 +2938,11 @@ <h3>Status</h3>
29382938 var glowShadow = buildGlowShadow ( widthValue , colorValue ) ;
29392939 document . documentElement . style . setProperty ( "--text-glow" , glowShadow ) ;
29402940 }
2941+
2942+ function setTextShadow ( shadowValue ) {
2943+ document . documentElement . style . setProperty ( "--text-shadow" , shadowValue ) ;
2944+ document . body . style . setProperty ( "--text-shadow" , shadowValue ) ;
2945+ }
29412946
29422947 var tainted = false ;
29432948
@@ -4840,7 +4845,7 @@ <h3>Status</h3>
48404845 }
48414846
48424847 if ( urlParams . has ( "nooutline" ) ) {
4843- document . documentElement . style . setProperty ( "--text-shadow" , "0 0 #0000" ) ;
4848+ setTextShadow ( "0 0 #0000" ) ;
48444849 if ( ! darkmode ) {
48454850 document . getElementById ( "topbar" ) . style . color = "white" ;
48464851 document . getElementById ( "topbar" ) . style . fontWeight = "700" ;
@@ -4849,10 +4854,10 @@ <h3>Status</h3>
48494854 applyTextOutline ( customOutlineWidthParam , customOutlineColorParam || customStrokeColorParam ) ;
48504855 } else if ( urlParams . has ( "bolder" ) ) {
48514856 var bolderShadow = "-3px -3px #000000, -3px -1.5px #000000, -3px 0px #000000, -3px 1.5px #000000, -3px 3px #000000, -1.5px -3px #000000, -1.5px -1.5px #000000, -1.5px 0px #000000, -1.5px 1.5px #000000, -1.5px 3px #000000, 0px -3px #000000, 0px -1.5px #000000, 0px 0px #000000, 0px 1.5px #000000, 0px 3px #000000, 1.5px -3px #000000, 1.5px -1.5px #000000, 1.5px 0px #000000, 1.5px 1.5px #000000, 1.5px 3px #000000, 3px -3px #000000, 3px -1.5px #000000, 3px 0px #000000, 3px 1.5px #000000, 3px 3px #000000" ;
4852- document . documentElement . style . setProperty ( "--text-shadow" , bolderShadow ) ;
4857+ setTextShadow ( bolderShadow ) ;
48534858 } else if ( urlParams . has ( "thinner" ) ) {
48544859 var thinnerShadow = "-1.5px -1.5px #000000, -1.5px -0.75px #000000, -1.5px 0px #000000, -1.5px 0.75px #000000, -1.5px 1.5px #000000, -0.75px -1.5px #000000, -0.75px -0.75px #000000, -0.75px 0px #000000, -0.75px 0.75px #000000, -0.75px 1.5px #000000, 0px -1.5px #000000, 0px -0.75px #000000, 0px 0px #000000, 0px 0.75px #000000, 0px 1.5px #000000, 0.75px -1.5px #000000, 0.75px -0.75px #000000, 0.75px 0px #000000, 0.75px 0.75px #000000, 0.75px 1.5px #000000, 1.5px -1.5px #000000, 1.5px -0.75px #000000, 1.5px 0px #000000, 1.5px 0.75px #000000, 1.5px 1.5px #000000" ;
4855- document . documentElement . style . setProperty ( "--text-shadow" , thinnerShadow ) ;
4860+ setTextShadow ( thinnerShadow ) ;
48564861 }
48574862
48584863 if ( hasTextGlow ) {
0 commit comments