From cf9d54795a95033092ef6326eb06c7c0d51070a7 Mon Sep 17 00:00:00 2001 From: tdgao Date: Thu, 9 Jul 2026 09:16:54 -0700 Subject: [PATCH 1/2] fix: ads consent close button --- apps/app/src/api/ads-init.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/app/src/api/ads-init.js b/apps/app/src/api/ads-init.js index b8f95bdd46..ea622b0dee 100644 --- a/apps/app/src/api/ads-init.js +++ b/apps/app/src/api/ads-init.js @@ -38,6 +38,10 @@ function installAdsConsentOverlayStyle() { html.modrinth-ads-consent-overlay #modrinth-rail-1 { visibility: hidden !important; } + + .qc-cmp2-close-icon { + background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M.5.5l23 23m0-23l-23 23' fill='none' stroke='%231bd96a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10'/%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3C/svg%3E") 0% 0% / 66% auto no-repeat !important; + } ` document.documentElement.appendChild(style) } @@ -186,6 +190,7 @@ function muteVideos() { } document.addEventListener('DOMContentLoaded', () => { + installAdsConsentOverlayStyle() muteVideos() muteAudioContext() installTcfConsentListener() From 0622eb326b4b085ce160af8eeb7f37f953b30e79 Mon Sep 17 00:00:00 2001 From: tdgao Date: Thu, 9 Jul 2026 09:24:13 -0700 Subject: [PATCH 2/2] update color --- apps/app/src/api/ads-init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app/src/api/ads-init.js b/apps/app/src/api/ads-init.js index ea622b0dee..f75fd9a1ce 100644 --- a/apps/app/src/api/ads-init.js +++ b/apps/app/src/api/ads-init.js @@ -40,7 +40,7 @@ function installAdsConsentOverlayStyle() { } .qc-cmp2-close-icon { - background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M.5.5l23 23m0-23l-23 23' fill='none' stroke='%231bd96a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10'/%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3C/svg%3E") 0% 0% / 66% auto no-repeat !important; + background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M.5.5l23 23m0-23l-23 23' fill='none' stroke='%23b0bac5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10'/%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3C/svg%3E") 0% 0% / 66% auto no-repeat !important; } ` document.documentElement.appendChild(style)