Restore the supplied Hop logo while preserving the accepted agent-first homepage

Hop-State: A_06FN57EHWNBVSZ7XVYTR2BG
Hop-Proposal: R_06FN57D4YE5B29F00S71WP8
Hop-Task: T_06FN50V05VH5V9WE9QQF9KR
Hop-Attempt: AT_06FN577KX6C4ZW41DDMW1KR
This commit is contained in:
Hop
2026-07-11 12:18:22 -07:00
parent 661c7c8cab
commit a5c8d51e1e
6 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -144,13 +144,13 @@
const upstreamBrandAsset = /\/img\/(?:avatar_default\.png|logo\.png|logo\.svg)(?:\?.*)?$/;
for (const image of document.querySelectorAll('img[src]')) {
if (!upstreamBrandAsset.test(image.src)) continue;
image.src = image.src.replace(upstreamBrandAsset, '/img/hop.svg?v=3');
image.src = image.src.replace(upstreamBrandAsset, '/img/hop.svg?v=4');
}
}
function applyHopSemantics() {
const brandLogo = document.querySelector('#navbar-logo img');
if (brandLogo) brandLogo.src = brandLogo.src.replace(/\/img\/(?:logo|hop)\.svg(?:\?.*)?$/, '/img/hop.svg?v=3');
if (brandLogo) brandLogo.src = brandLogo.src.replace(/\/img\/(?:logo|hop)\.svg(?:\?.*)?$/, '/img/hop.svg?v=4');
replaceBrandImages();
for (const root of document.querySelectorAll(semanticRoots)) replaceExactText(root);
replaceAccessibleLabels(document);