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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user