Compare commits

...
Author SHA1 Message Date
Truman Gao 9ad4f424eb Merge branch 'main' into truman/fix-ads-consent-close-btn 2026-07-09 10:25:01 -06:00
tdgao 0622eb326b update color 2026-07-09 09:24:13 -07:00
tdgao cf9d54795a fix: ads consent close button 2026-07-09 09:16:54 -07:00
+5
View File
@@ -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='%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)
}
@@ -186,6 +190,7 @@ function muteVideos() {
}
document.addEventListener('DOMContentLoaded', () => {
installAdsConsentOverlayStyle()
muteVideos()
muteAudioContext()
installTcfConsentListener()